]> www.infradead.org Git - users/dwmw2/linux.git/commit
KVM: MMU: Atomically check for accessed bit when dropping an spte
authorAvi Kivity <avi@redhat.com>
Sun, 6 Jun 2010 11:48:06 +0000 (14:48 +0300)
committerAvi Kivity <avi@redhat.com>
Mon, 5 Jul 2010 12:34:13 +0000 (15:34 +0300)
commit53383eaad08db771945025b51bf044e3fa6d89c6
treefc173ef864dbdca2c513fc020c8ab45aa7cb3e0b
parentc995e027f4398ad90274062fff91b49a1735039c
KVM: MMU: Atomically check for accessed bit when dropping an spte

Currently, in the window between the check for the accessed bit, and actually
dropping the spte, a vcpu can access the page through the spte and set the bit,
which will be ignored by the mmu.

Fix by using an exchange operation to atmoically fetch the spte and drop it.

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