diff options
author | Dor Laor <dor.laor@qumranet.com> | 2007-11-07 09:20:06 -0500 |
---|---|---|
committer | Avi Kivity <avi@qumranet.com> | 2008-01-30 10:53:00 -0500 |
commit | 12264760e46077a65c1240ac0b27dfa34b402158 (patch) | |
tree | 010fe8271c5d123aa4b334ff91ff0728248586a0 | |
parent | b6c7a5dccf9471f4891df722dbd0700ce56eb2e2 (diff) |
KVM: Add make_page_dirty() to kvm_clear_guest_page()
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>
-rw-r--r-- | drivers/kvm/kvm_main.c | 1 |
1 files changed, 1 insertions, 0 deletions
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) | |||
706 | 706 | ||
707 | kunmap_atomic(page_virt, KM_USER0); | 707 | kunmap_atomic(page_virt, KM_USER0); |
708 | kvm_release_page(page); | 708 | kvm_release_page(page); |
709 | mark_page_dirty(kvm, gfn); | ||
709 | return 0; | 710 | return 0; |
710 | } | 711 | } |
711 | EXPORT_SYMBOL_GPL(kvm_clear_guest_page); | 712 | EXPORT_SYMBOL_GPL(kvm_clear_guest_page); |