]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit273e4d482a5bb9b7467c0a3730e3f3848bbaf079
treef42968dbeb74ece28354f6237752b41f6001dac5
parentae56ea19f722ce314d256ad12c9421fdd778ee4a
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