linux/arch/x86/kvm/vmx
Dongli Zhang bab22040d7 KVM: VMX: return early if msr_bitmap is not supported
The vmx_msr_filter_changed() may directly/indirectly calls only
vmx_enable_intercept_for_msr() or vmx_disable_intercept_for_msr(). Those
two functions may exit immediately if !cpu_has_vmx_msr_bitmap().

vmx_msr_filter_changed()
-> vmx_disable_intercept_for_msr()
-> pt_update_intercept_for_msr()
   -> vmx_set_intercept_for_msr()
      -> vmx_enable_intercept_for_msr()
      -> vmx_disable_intercept_for_msr()

Therefore, we exit early if !cpu_has_vmx_msr_bitmap().

Signed-off-by: Dongli Zhang <dongli.zhang@oracle.com>
Link: https://lore.kernel.org/r/20240223202104.3330974-3-seanjc@google.com
Signed-off-by: Sean Christopherson <seanjc@google.com>
2024-02-27 09:36:48 -08:00
..
capabilities.h KVM: VMX: Rename XSAVES control to follow KVM's preferred "ENABLE_XYZ" 2023-08-17 11:38:28 -07:00
hyperv_evmcs.c KVM: VMX: Split off hyperv_evmcs.{ch} 2023-12-07 09:34:19 -08:00
hyperv_evmcs.h KVM: VMX: Split off hyperv_evmcs.{ch} 2023-12-07 09:34:19 -08:00
hyperv.c KVM: VMX: Split off hyperv_evmcs.{ch} 2023-12-07 09:34:19 -08:00
hyperv.h KVM: nVMX: Introduce accessor to get Hyper-V eVMCS pointer 2023-12-07 09:35:08 -08:00
nested.c Generic: 2024-01-17 13:03:37 -08:00
nested.h KVM: nVMX: Introduce helpers to check if Hyper-V evmptr12 is valid/set 2023-12-07 09:35:03 -08:00
pmu_intel.c KVM: x86/pmu: Update sample period in pmc_write_counter() 2023-11-30 12:52:55 -08:00
posted_intr.c x86/apic: Wrap IPI calls into helper functions 2023-08-09 12:00:55 -07:00
posted_intr.h KVM: VMX: enable IPI virtualization 2022-06-08 04:47:37 -04:00
run_flags.h KVM: VMX: Prevent guest RSB poisoning attacks with eIBRS 2022-06-27 10:34:00 +02:00
sgx.c KVM: x86: Untag addresses for LAM emulation where applicable 2023-11-28 17:54:07 -08:00
sgx.h KVM: VMX: Enable SGX virtualization for SGX1, SGX2 and LC 2021-04-20 04:18:56 -04:00
vmcs12.c KVM: x86: Unify pr_fmt to use module name for all KVM modules 2022-12-29 15:47:35 -05:00
vmcs12.h bug: introduce ASSERT_STRUCT_OFFSET 2022-11-09 12:31:16 -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: VMX: Handle NMI VM-Exits in noinstr region 2023-01-24 10:36:41 -08:00
vmenter.S KVM: SVM,VMX: Use %rip-relative addressing to access kvm_rebooting 2023-11-30 12:51:54 -08:00
vmx_onhyperv.c KVM: VMX: Split off vmx_onhyperv.{ch} from hyperv.{ch} 2023-12-07 09:34:06 -08:00
vmx_onhyperv.h KVM: VMX: Split off hyperv_evmcs.{ch} 2023-12-07 09:34:19 -08:00
vmx_ops.h KVM: VMX: Split off vmx_onhyperv.{ch} from hyperv.{ch} 2023-12-07 09:34:06 -08:00
vmx.c KVM: VMX: return early if msr_bitmap is not supported 2024-02-27 09:36:48 -08:00
vmx.h KVM x86 support for virtualizing Linear Address Masking (LAM) 2024-01-08 08:10:12 -05:00