KVM: Re-fix vmx hardware_enable() on macbooks
PATCH 1/1 KVM: Re-fix vmx hardware_enable() on macbooks
This incremental patch fixes the macbook issue for real.
Signed-off-by Avi Kivity <avi-atKUWr5tajBWk0Htik3J/[email protected]>
Tested-by Alex Larsson (sometimes testing helps)
------------------------------------------------------------------------
drivers/kvm/vmx.c +1 -1
@@ -534,7 +534,7 @@ static __init void hardware_enable(voidu64 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