]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commita1d0a86bb4880b2530cbf86b54bbf8ed31d0077e
tree7ff77e919158c3e133e7923237dd109bcae0577a
parent317e2cf4a0620a20616df5c3b4d2857f464dc44b
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