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)
commit947da53830690cbd77d7f2b625d0df1f161ffd54
tree32db5b7e97b5df34ada31ac9de8f3250b90dfd55
parent97646202bc3f190dfcb48a3d506ea2445717d392
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