]> git.hungrycats.org Git - linux/commit
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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 17 May 2023 11:58:54 +0000 (13:58 +0200)
commit7e8a9bee3a4cd8ab1c31c59e18ae4fad8598d0b6
tree1a3f75658f67f805edf73005c788d93f34f08f4c
parent60726cf2e56e4123e1dd92ad15ec4082a0dbfa28
KVM: x86/mmu: Replace open coded usage of tdp_mmu_page with is_tdp_mmu_page()

[ Upstream commit aeb568a1a6041e3d69def54046747bbd989bc4ed ]

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>
Stable-dep-of: edbdb43fc96b ("KVM: x86: Preserve TDP MMU roots until they are explicitly invalidated")
Signed-off-by: Sasha Levin <sashal@kernel.org>
arch/x86/kvm/mmu/mmu.c
arch/x86/kvm/mmu/tdp_mmu.c