diff mbox

KVM: VMX: Inform user about INTEL_TXT dependency

Message ID 1289965217-14270-1-git-send-email-shane.wang@intel.com (mailing list archive)
State New, archived
Headers show

Commit Message

Wang, Shane Nov. 17, 2010, 3:40 a.m. UTC
None
diff mbox

Patch

diff -r b1a2deff4c64 arch/x86/kvm/vmx.c
--- a/arch/x86/kvm/vmx.c	Wed Nov 17 12:47:42 2010 -0500
+++ b/arch/x86/kvm/vmx.c	Wed Nov 17 12:49:52 2010 -0500
@@ -1306,8 +1306,11 @@ 
 			&& tboot_enabled())
 			return 1;
 		if (!(msr & FEATURE_CONTROL_VMXON_ENABLED_OUTSIDE_SMX)
-			&& !tboot_enabled())
+			&& !tboot_enabled()) {
+			printk(KERN_WARNING "kvm: disable TXT in the BIOS or "
+				" activate TXT before enabling KVM\n");
 			return 1;
+		}
 	}
 
 	return 0;