]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
KVM: Remove write access permissions when dirty-page-logging is enabled
authorUri Lublin <uril@qumranet.com>
Thu, 22 Feb 2007 15:37:32 +0000 (17:37 +0200)
committerAvi Kivity <avi@qumranet.com>
Sun, 4 Mar 2007 09:12:43 +0000 (11:12 +0200)
commitff990d5952712c2e163b355946c39278da8407a8
tree73766d7c8435ded99d8a107b4471a8020164d800
parent02b27c1f802bfb60cc2cb5b763dde1b6b3479a7e
KVM: Remove write access permissions when dirty-page-logging is enabled

Enabling dirty page logging is done using KVM_SET_MEMORY_REGION ioctl.
If the memory region already exists, we need to remove write accesses,
so writes will be caught, and dirty pages will be logged.

Signed-off-by: Uri Lublin <uril@qumranet.com>
Signed-off-by: Avi Kivity <avi@qumranet.com>
drivers/kvm/kvm_main.c