]> 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)
commit68f1d177aaca02e85f9f8e83a81554ac5709ac6f
tree46cf6d49f9fbfde1fba9d64c6fbacf1661cc4fd4
parentcdca649ff90d038aada100a04bd1d2c80abfd658
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