]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: x86/mmu: Use common TDP MMU zap helper for MMU notifier unmap hook
authorSean Christopherson <seanjc@google.com>
Wed, 15 Dec 2021 01:15:54 +0000 (01:15 +0000)
committerPaolo Bonzini <pbonzini@redhat.com>
Thu, 10 Feb 2022 18:47:06 +0000 (13:47 -0500)
commit51fafa6bfb4cac196797c1ed5093090a143d5bbc
tree93ad28ceb3f36a38a0f702ca23c44704c1aa5b15
parent5947812d908e7649c531a95b4ece7cf1cb53e93f
KVM: x86/mmu: Use common TDP MMU zap helper for MMU notifier unmap hook

Use the common TDP MMU zap helper when handling an MMU notifier unmap
event, the two flows are semantically identical.  Consolidate the code in
preparation for a future bug fix, as both kvm_tdp_mmu_unmap_gfn_range()
and __kvm_tdp_mmu_zap_gfn_range() are guilty of not zapping SPTEs in
invalid roots.

No functional change intended.

Cc: stable@vger.kernel.org
Signed-off-by: Sean Christopherson <seanjc@google.com>
Message-Id: <20211215011557.399940-2-seanjc@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/mmu/tdp_mmu.c