]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: x86/mmu: Move kvm_mmu_(get|put)_root to TDP MMU
authorBen Gardon <bgardon@google.com>
Thu, 1 Apr 2021 23:37:25 +0000 (16:37 -0700)
committerPaolo Bonzini <pbonzini@redhat.com>
Mon, 19 Apr 2021 13:05:24 +0000 (09:05 -0400)
commit3b20677e4dad6822ec10a008adf1f610f7dc4794
tree962dd9d62d2075353888d6983d340085c8b6a8c9
parentd99c07dbca1e6f42627e91046df0bdcce7db0044
KVM: x86/mmu: Move kvm_mmu_(get|put)_root to TDP MMU

The TDP MMU is almost the only user of kvm_mmu_get_root and
kvm_mmu_put_root. There is only one use of put_root in mmu.c for the
legacy / shadow MMU. Open code that one use and move the get / put
functions to the TDP MMU so they can be extended in future commits.

No functional change intended.

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