]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: MMU: Fix dirty page setting for pages removed from rmap
authorIzik Eidus <izike@qumranet.com>
Sat, 12 Jan 2008 21:49:09 +0000 (23:49 +0200)
committerAvi Kivity <avi@qumranet.com>
Wed, 30 Jan 2008 16:01:22 +0000 (18:01 +0200)
commite65da525d84e6934e1788fbca74a1fe712c3e309
treed211007d0d2923d5f831f0d9d90f48f3298e559d
parentcdbb52a0b5e7dce04034241d4f2276ddd182afba
KVM: MMU: Fix dirty page setting for pages removed from rmap

Right now rmap_remove won't set the page as dirty if the shadow pte
pointed to this page had write access and then it became readonly.
This patches fixes that, by setting the page as dirty for spte changes from
write to readonly access.

Signed-off-by: Izik Eidus <izike@qumranet.com>
Signed-off-by: Avi Kivity <avi@qumranet.com>
arch/x86/kvm/mmu.c