]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
KVM: Add make_page_dirty() to kvm_clear_guest_page()
authorDor Laor <dor.laor@qumranet.com>
Wed, 7 Nov 2007 14:20:06 +0000 (16:20 +0200)
committerAvi Kivity <avi@qumranet.com>
Wed, 30 Jan 2008 15:53:00 +0000 (17:53 +0200)
Every write access to guest pages should be tracked.

Signed-off-by: Dor Laor <dor.laor@qumranet.com>
Signed-off-by: Izik Eidus <izike@qumranet.com>
Signed-off-by: Avi Kivity <avi@qumranet.com>
drivers/kvm/kvm_main.c

index 8665531d92876698a211cb6a48505e04ad5a7f0d..8d6e55f95fbb3c165ae0f21c38f44eaf99aa2009 100644 (file)
@@ -706,6 +706,7 @@ int kvm_clear_guest_page(struct kvm *kvm, gfn_t gfn, int offset, int len)
 
        kunmap_atomic(page_virt, KM_USER0);
        kvm_release_page(page);
+       mark_page_dirty(kvm, gfn);
        return 0;
 }
 EXPORT_SYMBOL_GPL(kvm_clear_guest_page);