]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: MMU: Set the accessed bit on non-speculative shadow ptes
authorAvi Kivity <avi@qumranet.com>
Tue, 18 Mar 2008 09:05:52 +0000 (11:05 +0200)
committerAvi Kivity <avi@qumranet.com>
Sun, 27 Apr 2008 09:00:33 +0000 (12:00 +0300)
commit6f748e71c47ff2b054b566dd4934a1a0d5caed4e
tree32db5b7e97b5df34ada31ac9de8f3250b90dfd55
parentc2c0c3d6ebca9ad83c3ba5be24b67c9b297ff671
KVM: MMU: Set the accessed bit on non-speculative shadow ptes

If we populate a shadow pte due to a fault (and not speculatively due to a
pte write) then we can set the accessed bit on it, as we know it will be
set immediately on the next guest instruction.  This saves a read-modify-write
operation.

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