KVM: x86/mmu: Merge TDP MMU put and free root
authorBen Gardon <bgardon@google.com>
Thu, 1 Apr 2021 23:37:27 +0000 (16:37 -0700)
committerPaolo Bonzini <pbonzini@redhat.com>
Mon, 19 Apr 2021 13:05:24 +0000 (09:05 -0400)
commit2bdb3d84cebca2e3b482788615ff1559bc8cedb5
tree3c426d2a505829316bf5f3a749769797abdfc16b
parent4bba36d72bf95038727d091a64dcb524dccc5da1
KVM: x86/mmu: Merge TDP MMU put and free root

kvm_tdp_mmu_put_root and kvm_tdp_mmu_free_root are always called
together, so merge the functions to simplify TDP MMU root refcounting /
freeing.

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