Skip to contentSkip to conversation

KVM: Re-fix vmx hardware_enable() on macbooks

PATCH New Avi Kivity 1 participant 1 message Dec 12, 2006 KVM

lore
Share & tools
lore

Avi Kivity

author
#0 lore raw

PATCH 1/1 KVM: Re-fix vmx hardware_enable() on macbooks

This incremental patch fixes the macbook issue for real.

Tested-by Alex Larsson (sometimes testing helps)

------------------------------------------------------------------------

drivers/kvm/vmx.c +1 -1
Index: linux-2.6/drivers/kvm/vmx.c
===================================================================
@@ -534,7 +534,7 @@ static __init void hardware_enable(void 
 	u64 old;
 
 	rdmsrl(MSR_IA32_FEATURE_CONTROL, old);
-	if ((old & 4) == 0)
+	if ((old & 5) != 5)
 		/* enable and lock */
 		wrmsrl(MSR_IA32_FEATURE_CONTROL, old | 5);
 	write_cr4(read_cr4() | CR4_VMXE); /* FIXME: not cpu hotplug safe */

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV