mirror_ubuntu-kernels/arch/x86/kvm/vmx
Paolo Bonzini a972e29c1d KVM: x86/mmu: replace shadow_root_level with root_role.level
root_role.level is always the same value as shadow_level:

- it's kvm_mmu_get_tdp_level(vcpu) when going through init_kvm_tdp_mmu

- it's the level argument when going through kvm_init_shadow_ept_mmu

- it's assigned directly from new_role.base.level when going
  through shadow_mmu_init_context

Remove the duplication and get the level directly from the role.

Reviewed-by: Sean Christopherson <seanjc@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
2022-04-29 12:49:58 -04:00
..
capabilities.h KVM: VMX: Remove vmcs_config.order 2022-01-26 12:14:58 -05:00
evmcs.c KVM: nVMX: Implement evmcs_field_offset() suitable for handle_vmread() 2022-01-28 07:38:26 -05:00
evmcs.h KVM: nVMX: Allow VMREAD when Enlightened VMCS is in use 2022-01-28 07:38:26 -05:00
nested.c KVM: x86: Clean up and document nested #PF workaround 2022-04-29 12:49:49 -04:00
nested.h KVM: nVMX: Refactor PMU refresh to avoid referencing kvm_x86_ops.pmu_ops 2022-02-10 13:47:19 -05:00
pmu_intel.c KVM: x86: Move .pmu_ops to kvm_x86_init_ops and tag as __initdata 2022-04-13 13:37:45 -04:00
posted_intr.c KVM: VMX: Rename VMX functions to conform to kvm_x86_ops names 2022-02-10 13:47:20 -05:00
posted_intr.h KVM: VMX: Rename VMX functions to conform to kvm_x86_ops names 2022-02-10 13:47:20 -05:00
sgx.c KVM: x86: SGX must obey the KVM_INTERNAL_ERROR_EMULATION protocol 2021-10-25 06:48:25 -04:00
sgx.h KVM: VMX: Enable SGX virtualization for SGX1, SGX2 and LC 2021-04-20 04:18:56 -04:00
vmcs12.c KVM: nVMX: Rename vmcs_to_field_offset{,_table} 2022-01-28 07:38:26 -05:00
vmcs12.h KVM: nVMX: Rename vmcs_to_field_offset{,_table} 2022-01-28 07:38:26 -05:00
vmcs_shadow_fields.h KVM: Fix some out-dated function names in comment 2020-01-21 13:57:27 +01:00
vmcs.h KVM: nVMX: Clear IDT vectoring on nested VM-Exit for double/triple fault 2022-04-13 13:37:46 -04:00
vmenter.S x86: Prepare asm files for straight-line-speculation 2021-12-08 12:25:37 +01:00
vmx_ops.h RISCV: 2022-01-16 16:15:14 +02:00
vmx.c KVM: x86/mmu: replace shadow_root_level with root_role.level 2022-04-29 12:49:58 -04:00
vmx.h Revert "KVM: VMX: Save HOST_CR3 in vmx_set_host_fs_gs()" 2022-02-25 04:02:18 -05:00