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>
Tue, 27 Dec 2022 11:03:01 +0000 (06:03 -0500)
commitaeb568a1a6041e3d69def54046747bbd989bc4ed
tree47677c175d2eef2a96e1b0b0ef061d9f23c063ac
parent362871d74ff67f23534a5ecb448967b0507d0848
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