KVM: MMU: set spte accessed bit properly
authorXiao Guangrong <xiaoguangrong@cn.fujitsu.com>
Fri, 4 Mar 2011 10:58:02 +0000 (18:58 +0800)
committerMarcelo Tosatti <mtosatti@redhat.com>
Thu, 17 Mar 2011 16:08:32 +0000 (13:08 -0300)
commit1b7fd45c32fcc170246bf10ba8d33871840319b8
tree73b4b7a80ff48f47afdd2d08794bf14d13335131
parentda8dc75f0c4663a568a0ed4e744c6d55d428d8b6
KVM: MMU: set spte accessed bit properly

Set spte accessed bit only if guest_initiated == 1 that means the really
accessed

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