KVM: MMU: Fix is_dirty_pte()
commit439e218a6f4716da484314fc5a1f0a59b0212c01
authorAvi Kivity <avi@redhat.com>
Wed, 10 Jun 2009 09:56:54 +0000 (10 12:56 +0300)
committerAvi Kivity <avi@redhat.com>
Thu, 10 Sep 2009 05:32:50 +0000 (10 08:32 +0300)
treeb582edacc647f74f514417525f28e5f4c7f218f0
parent7ffd92c53c5ebd0ad5a68ac3ca033c3a06374d19
KVM: MMU: Fix is_dirty_pte()

is_dirty_pte() is used on guest ptes, not shadow ptes, so it needs to avoid
shadow_dirty_mask and use PT_DIRTY_MASK instead.

Misdetecting dirty pages could lead to unnecessarily setting the dirty bit
under EPT.

Signed-off-by: Avi Kivity <avi@redhat.com>
arch/x86/kvm/mmu.c