OSDN Git Service

KVM: x86/mmu: Replace open coded usage of tdp_mmu_page with is_tdp_mmu_page()
authorSean Christopherson <seanjc@google.com>
Wed, 12 Oct 2022 18:17:00 +0000 (18:17 +0000)
committerPaolo Bonzini <pbonzini@redhat.com>
Thu, 29 Dec 2022 20:33:25 +0000 (15:33 -0500)
commitde0322f575be9e7fb598d14d58f5a7c7d8394e2b
tree330bdd321c6a798b55fa1d32e849aed88d07b755
parent6c882ef4fc7bd99b67ad152e75428b669281c521
KVM: x86/mmu: Replace open coded usage of tdp_mmu_page with is_tdp_mmu_page()

Use is_tdp_mmu_page() instead of querying sp->tdp_mmu_page directly so
that all users benefit if KVM ever finds a way to optimize the logic.

No functional change intended.

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