KVM: x86/mmu: remove kvm_calc_shadow_root_page_role_common
authorPaolo Bonzini <pbonzini@redhat.com>
Thu, 10 Feb 2022 12:33:01 +0000 (07:33 -0500)
committerPaolo Bonzini <pbonzini@redhat.com>
Fri, 29 Apr 2022 16:49:54 +0000 (12:49 -0400)
commit19b5dcc3be2efe93760372f444dec44e77f67146
treec7caaccefa7b13873441a921c9c91a5a7e578559
parentec283cb1dcb934d1a861e5e25ce843e033ee4ab7
KVM: x86/mmu: remove kvm_calc_shadow_root_page_role_common

kvm_calc_shadow_root_page_role_common is the same as
kvm_calc_cpu_role except for the level, which is overwritten
afterwards in kvm_calc_shadow_mmu_root_page_role
and kvm_calc_shadow_npt_root_page_role.

role.base.direct is already set correctly for the CPU role,
and CR0.PG=1 is required for VMRUN so it will also be
correct for nested NPT.

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