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)
commit66d73e12f2786497424cb611b359e3580978cad7
tree94b7661ba7d4984e06b2b5f5a1fae2368566b4c2
parentc63e45635bfabc6c01324bd79bc75aa183c828ad
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