OSDN Git Service

KVM: x86/mmu: Move flushing for "slot" handlers to caller for legacy MMU
authorSean Christopherson <seanjc@google.com>
Fri, 26 Mar 2021 02:19:41 +0000 (19:19 -0700)
committerPaolo Bonzini <pbonzini@redhat.com>
Sat, 17 Apr 2021 12:30:53 +0000 (08:30 -0400)
commit302695a5747e82267c344d177cdd4866cbccee8e
treeabfe00fd5c321e785570e164a6193e04d9390aeb
parentaf95b53e56e34a4df343cec32b3a3276d9d06ad3
KVM: x86/mmu: Move flushing for "slot" handlers to caller for legacy MMU

Place the onus on the caller of slot_handle_*() to flush the TLB, rather
than handling the flush in the helper, and rename parameters accordingly.
This will allow future patches to coalesce flushes between address spaces
and between the legacy and TDP MMUs.

No functional change intended.

Signed-off-by: Sean Christopherson <seanjc@google.com>
Message-Id: <20210326021957.1424875-3-seanjc@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/mmu/mmu.c