]> git.baikalelectronics.ru Git - kernel.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>
Tue, 8 Mar 2022 14:31:36 +0000 (09:31 -0500)
commit14f209241b4e02c362e60fd04be4aee0b70ca4e1
tree46cf6d49f9fbfde1fba9d64c6fbacf1661cc4fd4
parent6ab1b37478d5f9dfdd5fb9d89ab87143b4115108
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