]> www.infradead.org Git - users/dwmw2/linux.git/commit
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>
Wed, 2 Mar 2022 14:15:56 +0000 (09:15 -0500)
commitf0ef0845bfbb0f8040c440f0e9af6f34daf92bdc
tree9f858c21d28e299f1912e717aa524241177870fa
parent4bd563feca119338a4801fba6ef7c5240729c44f
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