OSDN Git Service

KVM: x86/mmu: use tdp_mmu_free_sp to free roots
authorBen Gardon <bgardon@google.com>
Thu, 1 Apr 2021 23:37:26 +0000 (16:37 -0700)
committerPaolo Bonzini <pbonzini@redhat.com>
Mon, 19 Apr 2021 13:05:24 +0000 (09:05 -0400)
commit4bba36d72bf95038727d091a64dcb524dccc5da1
tree70ecdc3ebfb1a3ed573192d832b6ee14f3f9548e
parent76eb54e7e717455b4c5b82cec5c879ea017610f5
KVM: x86/mmu: use tdp_mmu_free_sp to free roots

Minor cleanup to deduplicate the code used to free a struct kvm_mmu_page
in the TDP MMU.

No functional change intended.

Signed-off-by: Ben Gardon <bgardon@google.com>
Message-Id: <20210401233736.638171-4-bgardon@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/mmu/tdp_mmu.c