projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3529b97
)
x86/l1tf: Fix build error seen if CONFIG_KVM_INTEL is disabled
author
Guenter Roeck
<
[email protected]
>
Wed, 15 Aug 2018 15:38:33 +0000
(08:38 -0700)
committer
Linus Torvalds
<
[email protected]
>
Wed, 15 Aug 2018 16:44:38 +0000
(09:44 -0700)
allmodconfig+CONFIG_INTEL_KVM=n results in the following build error.
ERROR: "l1tf_vmx_mitigation" [arch/x86/kvm/kvm.ko] undefined!
Fixes: 5b76a3cff011 ("KVM: VMX: Tell the nested hypervisor to skip L1D flush on vmentry")
Reported-by: Meelis Roos <
[email protected]
>
Cc: Meelis Roos <
[email protected]
>
Cc: Paolo Bonzini <
[email protected]
>
Cc: Thomas Gleixner <
[email protected]
>
Signed-off-by: Guenter Roeck <
[email protected]
>
Signed-off-by: Linus Torvalds <
[email protected]
>
arch/x86/kernel/cpu/bugs.c
patch
|
blob
|
history
diff --git
a/arch/x86/kernel/cpu/bugs.c
b/arch/x86/kernel/cpu/bugs.c
index 27830880e7a792766c94c261fa3edc8cd17ed07f..cb4a16292aa7cb84c21d175844f3122db016a0a0 100644
(file)
--- a/
arch/x86/kernel/cpu/bugs.c
+++ b/
arch/x86/kernel/cpu/bugs.c
@@
-664,10
+664,9
@@
void x86_spec_ctrl_setup_ap(void)
enum l1tf_mitigations l1tf_mitigation __ro_after_init = L1TF_MITIGATION_FLUSH;
#if IS_ENABLED(CONFIG_KVM_INTEL)
EXPORT_SYMBOL_GPL(l1tf_mitigation);
-
+#endif
enum vmx_l1d_flush_state l1tf_vmx_mitigation = VMENTER_L1D_FLUSH_AUTO;
EXPORT_SYMBOL_GPL(l1tf_vmx_mitigation);
-#endif
static void __init l1tf_select_mitigation(void)
{