x86/l1tf: Fix build error seen if CONFIG_KVM_INTEL is disabled
Subsystems (3)
PATCH 1/1 x86/l1tf: Fix build error seen if CONFIG_KVM_INTEL is disabled
commit 1eb46908b35dfbac0ec1848d4b1e39667e0187e9 upstream
allmodconfig+CONFIG_INTEL_KVM=n results in the following build error.
ERROR: "l1tf_vmx_mitigation" [arch/x86/kvm/kvm.ko] undefined!
--- arch/x86/kernel/cpu/bugs.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)
arch/x86/kernel/cpu/bugs.c +1 -2
@@ -647,10 +647,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 ) {
Signature · 1 line
2.7.4
Greg Kroah-Hartman
maintainerQuoted 14 lines · Guenter Roeck
commit
1eb46908b35dfbac0ec1848d4b1e39667e0187e9upstreamallmodconfig+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]>Signed-off-by Guenter Roeck <[email protected]>
Quoted 3 lines
--- arch/x86/kernel/cpu/bugs.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)
Already queued up, Linus pointed me at it before you did :)
thanks,
greg k-h
Quoted 20 lines · Greg Kroah-Hartman
Quoted 14 lines · Guenter Roeck
commit
1eb46908b35dfbac0ec1848d4b1e39667e0187e9upstreamallmodconfig+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]>Signed-off-by Guenter Roeck <[email protected]>Quoted 3 lines
--- arch/x86/kernel/cpu/bugs.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)
Quoted 2 lines
Already queued up, Linus pointed me at it before you did :)
Yes, I noticed after I sent it. Sorry for the noise.
Guenter