Skip to content
Commit 19b5dcc3 authored by Paolo Bonzini's avatar Paolo Bonzini
Browse files

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: default avatarPaolo Bonzini <pbonzini@redhat.com>
parent ec283cb1
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment