Skip to content

Commit

Permalink
KVM: Add make_page_dirty() to kvm_clear_guest_page()
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Dor Laor authored and Avi Kivity committed Jan 30, 2008
1 parent b6c7a5d commit 1226476
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/kvm/kvm_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 1226476

Please sign in to comment.