KVM: x86/mmu: simplify and/or inline computation of shadow MMU roles
authorPaolo Bonzini <pbonzini@redhat.com>
Thu, 10 Feb 2022 12:39:50 +0000 (07:39 -0500)
committerPaolo Bonzini <pbonzini@redhat.com>
Fri, 29 Apr 2022 16:49:57 +0000 (12:49 -0400)
commit56b321f9e332082b9c5f7519495f068b147fe2c0
treef42968dbeb74ece28354f6237752b41f6001dac5
parentfaf729621c9609367a0714f5383df67fdd8d021c
KVM: x86/mmu: simplify and/or inline computation of shadow MMU roles

Shadow MMUs compute their role from cpu_role.base, simply by adjusting
the root level.  It's one line of code, so do not place it in a separate
function.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/mmu/mmu.c