]> err.no Git - linux-2.6/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)
commit75e68e607896c84310dee37c783c45220e56ce8c
treed211007d0d2923d5f831f0d9d90f48f3298e559d
parent6f723c7911e7827091586ae63f4040874eeb75e5
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