VirtualBox

Changeset 45804 in vbox for trunk/src/VBox/VMM


Ignore:
Timestamp:
Apr 29, 2013 12:03:31 PM (12 years ago)
Author:
vboxsync
Message:

VMX: Added CFGM key to disable unrestricted execution.

Location:
trunk/src/VBox/VMM
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/VMMR3/HM.cpp

    r45786 r45804  
    400400    AssertRCReturn(rc, rc);
    401401
     402    /** @cfgm{/HM/EnableUnrestrictedExec, bool, true}
     403     * Enables the VT-x unrestricted execution feature. */
     404    rc = CFGMR3QueryBoolDef(pCfgHM, "EnableUnrestrictedExec", &pVM->hm.s.vmx.fAllowUnrestricted, true);
     405    AssertRCReturn(rc, rc);
     406
    402407    /** @cfgm{/HM/EnableLargePages, bool, false}
    403408     * Enables using large pages (2 MB) for guest memory, thus saving on (nested)
     
    11271132    }
    11281133
    1129     /* Unrestricted guest execution relies on EPT. */
    1130     if (    pVM->hm.s.fNestedPaging
     1134    /* Unrestricted guest execution also requires EPT. */
     1135    if (    pVM->hm.s.vmx.fAllowUnrestricted
     1136        &&  pVM->hm.s.fNestedPaging
    11311137        &&  (pVM->hm.s.vmx.msr.vmx_proc_ctls2.n.allowed1 & VMX_VMCS_CTRL_PROC_EXEC2_UNRESTRICTED_GUEST))
    11321138        pVM->hm.s.vmx.fUnrestrictedGuest = true;
  • trunk/src/VBox/VMM/include/HMInternal.h

    r45786 r45804  
    334334        bool                        fAllowVpid;
    335335
    336         /** Set if unrestricted guest execution is allowed (real and protected mode without paging). */
     336        /** Set if unrestricted guest execution is in use (real and protected mode without paging). */
    337337        bool                        fUnrestrictedGuest;
     338
     339        /** Set if unrestricted guest execution is allowed to be used. */
     340        bool                        fAllowUnrestricted;
    338341
    339342        /** Whether we're using the preemption timer or not. */
     
    341344        /** The shift mask employed by the VMX-Preemption timer. */
    342345        uint8_t                     cPreemptTimerShift;
    343 
    344         bool                        uAlignment[1];
    345346
    346347        /** Virtual address of the TSS page used for real mode emulation. */
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