]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: x86/mmu: Don't bottom out on leafs when zapping collapsible SPTEs
authorSean Christopherson <seanjc@google.com>
Fri, 15 Jul 2022 23:21:06 +0000 (23:21 +0000)
committerPaolo Bonzini <pbonzini@redhat.com>
Thu, 28 Jul 2022 17:22:24 +0000 (13:22 -0400)
commitdd2340818c7eaaeccce225bf838701bdd92d68e4
tree1652f3af20024115e3e5ea2c655256fd96e45ef6
parent7a62352d300fe265bb0a7737777db9e837039127
KVM: x86/mmu: Don't bottom out on leafs when zapping collapsible SPTEs

When zapping collapsible SPTEs in the TDP MMU, don't bottom out on a leaf
SPTE now that KVM doesn't require a PFN to compute the host mapping level,
i.e. now that there's no need to first find a leaf SPTE and then step
back up.

Drop the now unused tdp_iter_step_up(), as it is not the safest of
helpers (using any of the low level iterators requires some understanding
of the various side effects).

Signed-off-by: Sean Christopherson <seanjc@google.com>
Message-Id: <20220715232107.3775620-4-seanjc@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/mmu/tdp_iter.c
arch/x86/kvm/mmu/tdp_iter.h
arch/x86/kvm/mmu/tdp_mmu.c