OSDN Git Service

KVM: x86/mmu: Consolidate open coded variants of memslot TLB flushes
authorSean Christopherson <sean.j.christopherson@intel.com>
Tue, 18 Feb 2020 21:07:36 +0000 (13:07 -0800)
committerPaolo Bonzini <pbonzini@redhat.com>
Mon, 16 Mar 2020 16:57:29 +0000 (17:57 +0100)
commit7f42aa76d4a5587939ee98d541ea1b97b382f408
treef3273cfc8f1e72471ab694eb51379da750fb9b52
parentcec37648f40b0ef7e6260ffa588c51fd3754262b
KVM: x86/mmu: Consolidate open coded variants of memslot TLB flushes

Replace open coded instances of kvm_arch_flush_remote_tlbs_memslot()'s
functionality with calls to the aforementioned function.  Update the
comment in kvm_arch_flush_remote_tlbs_memslot() to elaborate on how it
is used and why it asserts that slots_lock is held.

No functional change intended.

Signed-off-by: Sean Christopherson <sean.j.christopherson@intel.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/mmu/mmu.c