* [PATCH] KVM: Re-fix vmx hardware_enable() on macbooks
@ 2006-12-12 14:52 Avi Kivity
0 siblings, 0 replies; only message in thread
From: Avi Kivity @ 2006-12-12 14:52 UTC (permalink / raw)
To: kvm-devel; +Cc: linux-kernel, akpm, mingo
This incremental patch fixes the macbook issue for real.
Signed-off-by: Avi Kivity <avi@qumranet.com>
Tested-by: Alex Larsson (sometimes testing helps)
------------------------------------------------------------------------
Index: linux-2.6/drivers/kvm/vmx.c
===================================================================
--- linux-2.6.orig/drivers/kvm/vmx.c
+++ 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 */
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2006-12-12 14:53 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-12-12 14:52 [PATCH] KVM: Re-fix vmx hardware_enable() on macbooks Avi Kivity
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®