]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: X86: MMU: no mmu_notifier_seq++ in kvm_age_hva
authorPeter Feiner <pfeiner@google.com>
Mon, 26 Sep 2016 17:45:34 +0000 (10:45 -0700)
committerPaolo Bonzini <pbonzini@redhat.com>
Wed, 2 Nov 2016 20:32:17 +0000 (21:32 +0100)
commitadcbad3f7699cc00412226fdd1b4e02d8373027d
tree94b7661ba7d4984e06b2b5f5a1fae2368566b4c2
parent85c514f930dd7ff12c875b4001eeda1ce16606a2
KVM: X86: MMU: no mmu_notifier_seq++ in kvm_age_hva

The MMU notifier sequence number keeps GPA->HPA mappings in sync when
GPA->HPA lookups are done outside of the MMU lock (e.g., in
tdp_page_fault). Since kvm_age_hva doesn't change GPA->HPA, it's
unnecessary to increment the sequence number.

Signed-off-by: Peter Feiner <pfeiner@google.com>
Reviewed-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Radim Krčmář <rkrcmar@redhat.com>
arch/x86/kvm/mmu.c