kvm: x86: mmu: Introduce a no-tracking version of mmu_spte_update
authorJunaid Shahid <junaids@google.com>
Wed, 7 Dec 2016 00:46:14 +0000 (16:46 -0800)
committerRadim Krčmář <rkrcmar@redhat.com>
Mon, 9 Jan 2017 13:46:09 +0000 (14:46 +0100)
commitf39a058d0ea2f58b9c69cfcf7c93184f33302c98
treed0c4c29051d64f1999d0caced137136ce8a92ef7
parent83ef6c8155c0ecb4c1a7e6bfbe425c85f7cb676d
kvm: x86: mmu: Introduce a no-tracking version of mmu_spte_update

mmu_spte_update() tracks changes in the accessed/dirty state of
the SPTE being updated and calls kvm_set_pfn_accessed/dirty
appropriately. However, in some cases (e.g. when aging the SPTE),
this shouldn't be done. mmu_spte_update_no_track() is introduced
for use in such cases.

Signed-off-by: Junaid Shahid <junaids@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/mmu.c