Commit 12264760 authored by Dor Laor's avatar Dor Laor Committed by Avi Kivity

KVM: Add make_page_dirty() to kvm_clear_guest_page()

Every write access to guest pages should be tracked.
Signed-off-by: default avatarDor Laor <dor.laor@qumranet.com>
Signed-off-by: default avatarIzik Eidus <izike@qumranet.com>
Signed-off-by: default avatarAvi Kivity <avi@qumranet.com>
parent b6c7a5dc
...@@ -706,6 +706,7 @@ int kvm_clear_guest_page(struct kvm *kvm, gfn_t gfn, int offset, int len) ...@@ -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); kunmap_atomic(page_virt, KM_USER0);
kvm_release_page(page); kvm_release_page(page);
mark_page_dirty(kvm, gfn);
return 0; return 0;
} }
EXPORT_SYMBOL_GPL(kvm_clear_guest_page); EXPORT_SYMBOL_GPL(kvm_clear_guest_page);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment