KVM: nVMX: Consolidate VM-Enter/VM-Exit TLB flush and MMU sync logic
authorSean Christopherson <seanjc@google.com>
Wed, 9 Jun 2021 23:42:28 +0000 (16:42 -0700)
committerPaolo Bonzini <pbonzini@redhat.com>
Thu, 17 Jun 2021 17:09:53 +0000 (13:09 -0400)
commit50a417962a80525da54fa74105bcf17b479cd4bc
tree78e8f6f47d3fc0de763f863abf5b0dad1f62f14f
parentb5129100398ac3b6364cfa6dbd55abfd36cf7202
KVM: nVMX: Consolidate VM-Enter/VM-Exit TLB flush and MMU sync logic

Drop the dedicated nested_vmx_transition_mmu_sync() now that the MMU sync
is handled via KVM_REQ_TLB_FLUSH_GUEST, and fold that flush into the
all-encompassing nested_vmx_transition_tlb_flush().

Opportunistically add a comment explaning why nested EPT never needs to
sync the MMU on VM-Enter.

Signed-off-by: Sean Christopherson <seanjc@google.com>
Message-Id: <20210609234235.1244004-9-seanjc@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/vmx/nested.c