KVM: x86/mmu: Document that zapping invalidated roots doesn't need to flush
authorSean Christopherson <seanjc@google.com>
Sat, 26 Feb 2022 00:15:23 +0000 (00:15 +0000)
committerPaolo Bonzini <pbonzini@redhat.com>
Tue, 8 Mar 2022 14:31:36 +0000 (09:31 -0500)
commit7ae5840e6f3325b52ee46437d46ba0465016584d
tree46cf6d49f9fbfde1fba9d64c6fbacf1661cc4fd4
parentdb01416b22d98b8c8474a418a97cdacfd947469d
KVM: x86/mmu: Document that zapping invalidated roots doesn't need to flush

Remove the misleading flush "handling" when zapping invalidated TDP MMU
roots, and document that flushing is unnecessary for all flavors of MMUs
when zapping invalid/obsolete roots/pages.  The "handling" in the TDP MMU
is dead code, as zap_gfn_range() is called with shared=true, in which
case it will never return true due to the flushing being handled by
tdp_mmu_zap_spte_atomic().

No functional change intended.

Signed-off-by: Sean Christopherson <seanjc@google.com>
Reviewed-by: Ben Gardon <bgardon@google.com>
Message-Id: <20220226001546.360188-6-seanjc@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/mmu/mmu.c
arch/x86/kvm/mmu/tdp_mmu.c