]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: x86/mmu: Add a helper to calculate root from role_regs
authorSean Christopherson <seanjc@google.com>
Tue, 22 Jun 2021 17:57:29 +0000 (10:57 -0700)
committerPaolo Bonzini <pbonzini@redhat.com>
Thu, 24 Jun 2021 22:00:45 +0000 (18:00 -0400)
commit7a5f3819dd5f315cf017a910005e0e3842105fec
treee521ceb655f9b275ad3eb3f5d9fa2a54337f0aeb
parent295412c0c52e963673c518ef00116c17207a36cd
KVM: x86/mmu: Add a helper to calculate root from role_regs

Add a helper to calculate the level for non-EPT page tables from the
MMU's role_regs.

No functional change intended.

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