VirtualBox

Changeset 4598 in vbox


Ignore:
Timestamp:
Sep 7, 2007 9:23:11 AM (17 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
24236
Message:

Only check for vmx root mode for 64 bits hosts.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/VMMR0/HWACCMR0.cpp

    r4487 r4598  
    136136                        *(uint32_t *)pVM->hwaccm.s.vmx.pVMXON = MSR_IA32_VMX_BASIC_INFO_VMCS_ID(pVM->hwaccm.s.vmx.msr.vmx_basic_info);
    137137
     138#if HC_ARCH_BITS == 64
    138139                        /* Enter VMX Root Mode */
    139140                        int rc = VMXEnable(pVM->hwaccm.s.vmx.pVMXONPhys);
     
    141142                        {
    142143                            /* KVM leaves the CPU in VMX root mode. Not only is this not allowed, it will crash the host when we enter raw mode, because
    143                              * (a) clearing X86_CR4_VMXE in CR4 causes a #GP
    144                              * (b) turning off paging causes a #GP
     144                             * (a) clearing X86_CR4_VMXE in CR4 causes a #GP    (we no longer modify this bit)
     145                             * (b) turning off paging causes a #GP              (unavoidable when switching from long to 32 bits mode)
    145146                             *
    146147                             * They should fix their code, but until they do we simply refuse to run.
     
    149150                        }
    150151                        VMXDisable();
     152#endif
    151153                    }
    152154                }
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette