]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: x86/mmu: Refactor is_tdp_mmu_root into is_tdp_mmu
authorDavid Matlack <dmatlack@google.com>
Thu, 17 Jun 2021 23:19:47 +0000 (23:19 +0000)
committerPaolo Bonzini <pbonzini@redhat.com>
Fri, 18 Jun 2021 10:45:46 +0000 (06:45 -0400)
commit579934503a7addb42683942ba68cebcb70455344
treebe51c631aceac5c3a996be1ebe4de5de73a6a563
parented8f928c6715cec0420e19b7f3cd12f21bdf3cc3
KVM: x86/mmu: Refactor is_tdp_mmu_root into is_tdp_mmu

This change simplifies the call sites slightly and also abstracts away
the implementation detail of looking at root_hpa as the mechanism for
determining if the mmu is the TDP MMU.

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