I'd like to note that the patch originally referenced in the description
of this bug by Chris is indeed in the 2.6.27 based Intrepid kernel.

[EMAIL PROTECTED]:~/ubuntu-intrepid$ git log -p 
e693d71b46e64536581bf4884434fc1b8797e96f
commit e693d71b46e64536581bf4884434fc1b8797e96f
Author: Eli Collins <[EMAIL PROTECTED]>
Date:   Sun Jun 1 20:24:40 2008 -0700

    KVM: VMX: Clear CR4.VMXE in hardware_disable
    
    Clear CR4.VMXE in hardware_disable. There's no reason to leave it set
    after doing a VMXOFF.
    
    VMware Workstation 6.5 checks CR4.VMXE as a proxy for whether the CPU is
    in VMX mode, so leaving VMXE set means we'll refuse to power on. With this
    change the user can power on after unloading the kvm-intel module. I
    tested on kvm-67 and kvm-69.
    
    Signed-off-by: Eli Collins <[EMAIL PROTECTED]>
    Signed-off-by: Avi Kivity <[EMAIL PROTECTED]>

diff --git a/arch/x86/kvm/vmx.c b/arch/x86/kvm/vmx.c
index 96445f3..02efbe7 100644
--- a/arch/x86/kvm/vmx.c
+++ b/arch/x86/kvm/vmx.c
@@ -1036,6 +1036,7 @@ static void hardware_enable(void *garbage)
 static void hardware_disable(void *garbage)
 {
        asm volatile (ASM_VMX_VMXOFF : : : "cc");
+       write_cr4(read_cr4() & ~X86_CR4_VMXE);
 }
 
 static __init int adjust_vmx_controls(u32 ctl_min, u32 ctl_opt,


** Changed in: linux (Ubuntu)
   Importance: Undecided => Medium
     Assignee: (unassigned) => Ubuntu Kernel Team (ubuntu-kernel-team)
       Status: New => Triaged

-- 
kvm prevents running vmware player without rebooting
https://bugs.launchpad.net/bugs/252871
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to