Commit 1eb46908 authored by Guenter Roeck's avatar Guenter Roeck Committed by Linus Torvalds
Browse files

x86/l1tf: Fix build error seen if CONFIG_KVM_INTEL is disabled

allmodconfig+CONFIG_INTEL_KVM=n results in the following build error.

  ERROR: "l1tf_vmx_mitigation" [arch/x86/kvm/kvm.ko] undefined!

Fixes: 5b76a3cf

 ("KVM: VMX: Tell the nested hypervisor to skip L1D flush on vmentry")
Reported-by: default avatarMeelis Roos <>
Cc: Meelis Roos <>
Cc: Paolo Bonzini <>
Cc: Thomas Gleixner <>
Signed-off-by: default avatarGuenter Roeck <>
Signed-off-by: default avatarLinus Torvalds <>
parent 3529b970
......@@ -664,10 +664,9 @@ void x86_spec_ctrl_setup_ap(void)
enum l1tf_mitigations l1tf_mitigation __ro_after_init = L1TF_MITIGATION_FLUSH;
enum vmx_l1d_flush_state l1tf_vmx_mitigation = VMENTER_L1D_FLUSH_AUTO;
static void __init l1tf_select_mitigation(void)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment