]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commita374f5ba73b37ecb17f7df0073dba9a9c7b6f9f5
treec7caaccefa7b13873441a921c9c91a5a7e578559
parent9da5b4ffa53eb5168b30d2d0ff8919787ae7c202
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