From: Dor Laor Date: Wed, 7 Nov 2007 14:20:06 +0000 (+0200) Subject: KVM: Add make_page_dirty() to kvm_clear_guest_page() X-Git-Tag: v2.6.25-rc1~1138^2~163 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=12264760e46077a65c1240ac0b27dfa34b402158;p=linux-2.6-omap-h63xx.git KVM: Add make_page_dirty() to kvm_clear_guest_page() Every write access to guest pages should be tracked. Signed-off-by: Dor Laor Signed-off-by: Izik Eidus Signed-off-by: Avi Kivity --- diff --git a/drivers/kvm/kvm_main.c b/drivers/kvm/kvm_main.c index 8665531d928..8d6e55f95fb 100644 --- a/drivers/kvm/kvm_main.c +++ b/drivers/kvm/kvm_main.c @@ -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);