From 12264760e46077a65c1240ac0b27dfa34b402158 Mon Sep 17 00:00:00 2001 From: Dor Laor Date: Wed, 7 Nov 2007 16:20:06 +0200 Subject: [PATCH] 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 --- drivers/kvm/kvm_main.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/kvm/kvm_main.c b/drivers/kvm/kvm_main.c index 8665531d9287..8d6e55f95fbb 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); -- 2.30.2