VirtualBox

Changeset 30091 in vbox for trunk/src/VBox/VMM/VMMR0


Ignore:
Timestamp:
Jun 8, 2010 1:49:56 PM (15 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
62472
Message:

If we're somehow not in VMX root mode, then we shouldn't dare leaving it.

File:
1 edited

Legend:

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

    r30089 r30091  
    147147    AssertReturn(pPageCpuPhys, VERR_INVALID_PARAMETER);
    148148    AssertReturn(pvPageCpu, VERR_INVALID_PARAMETER);
     149
     150    /* If we're somehow not in VMX root mode, then we shouldn't dare leaving it. */
     151    if (!(ASMGetCR4() & X86_CR4_VMXE))
     152        return VERR_VMX_NOT_IN_VMX_ROOT_MODE;
    149153
    150154    /* Leave VMX Root Mode. */
Note: See TracChangeset for help on using the changeset viewer.

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