]> 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)
commit719d61957c43388e2ffe0a34b74dd3066ab99da4
treee521ceb655f9b275ad3eb3f5d9fa2a54337f0aeb
parentd0a9f79bb34659bd1d45b6f8d11b1316adf01629
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