VirtualBox

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


Ignore:
Timestamp:
May 8, 2015 2:28:36 PM (10 years ago)
Author:
vboxsync
Message:

VMM/HM: Add some rudimentary logging for VERR_VMX_INVALID_VMXON_PTR errors.

File:
1 edited

Legend:

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

    r55555 r55756  
    781781
    782782    /* Enter VMX root mode. */
    783     int rc = VMXEnable(HCPhysCpuPage);
    784     if (   RT_FAILURE(rc)
    785         && !(uOldCr4 & X86_CR4_VMXE))
    786         SUPR0ChangeCR4(0, ~X86_CR4_VMXE);
     783    int rc = VMXEnable(HCPhysCpuPage+5);
     784    if (RT_FAILURE(rc))
     785    {
     786        if (!(uOldCr4 & X86_CR4_VMXE))
     787            SUPR0ChangeCR4(0, ~X86_CR4_VMXE);
     788
     789        if (pVM)
     790            pVM->hm.s.vmx.HCPhysVmxEnableError = HCPhysCpuPage+5;
     791    }
    787792
    788793    /* Restore interrupts. */
     
    52855290        SUPR0ChangeCR4(0, ~X86_CR4_VMXE);
    52865291        ASMSetFlags(uOldEflags);
     5292        pVM->hm.s.vmx.HCPhysVmxEnableError = HCPhysCpuPage;
    52875293        return rc2;
    52885294    }
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