]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: MMU: Don't drop accessed bit while updating an spte
authorAvi Kivity <avi@redhat.com>
Sun, 6 Jun 2010 12:46:44 +0000 (15:46 +0300)
committerAvi Kivity <avi@redhat.com>
Mon, 2 Aug 2010 03:40:21 +0000 (06:40 +0300)
commitd2b8c1f069daec34ebc0c2ffbe8bf0a70895ab24
tree0ca735431e67c58ff4b69578dc56bdd6e875eebb
parent2dfd4f012f024d17a3a611da89ad768aeb27ef99
KVM: MMU: Don't drop accessed bit while updating an spte

__set_spte() will happily replace an spte with the accessed bit set with
one that has the accessed bit clear.  Add a helper update_spte() which checks
for this condition and updates the page flag if needed.

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