KVM: x86/mmu: Use MMU's role to determine PTTYPE
authorSean Christopherson <seanjc@google.com>
Tue, 22 Jun 2021 17:57:31 +0000 (10:57 -0700)
committerPaolo Bonzini <pbonzini@redhat.com>
Thu, 24 Jun 2021 22:00:46 +0000 (18:00 -0400)
commit36f267871edceafbfbbc5d570c34c089a2afa1c1
tree7ff77e919158c3e133e7923237dd109bcae0577a
parentfe660f7244d7e237ab7726813dc9aec8e94900d6
KVM: x86/mmu: Use MMU's role to determine PTTYPE

Use the MMU's role instead of vCPU state or role_regs to determine the
PTTYPE, i.e. which helpers to wire up.

No functional change intended.

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