VirtualBox

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


Ignore:
Timestamp:
May 9, 2013 7:46:52 PM (12 years ago)
Author:
vboxsync
Message:

Main, VMM: Added an API seting to disable VT-x unrestricted execution.

File:
1 edited

Legend:

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

    r45963 r45971  
    400400    AssertRCReturn(rc, rc);
    401401
    402     /** @cfgm{/HM/EnableUnrestrictedExec, bool, true}
     402    /** @cfgm{/HM/EnableUX, bool, true}
    403403     * Enables the VT-x unrestricted execution feature. */
    404     rc = CFGMR3QueryBoolDef(pCfgHM, "EnableUnrestrictedExec", &pVM->hm.s.vmx.fAllowUnrestricted, true);
     404    rc = CFGMR3QueryBoolDef(pCfgHM, "EnableUX", &pVM->hm.s.vmx.fAllowUnrestricted, true);
    405405    AssertRCReturn(rc, rc);
    406406
     
    28212821
    28222822/**
     2823 * Checks if we are currently using VT-x unrestricted execution,
     2824 * aka UX.
     2825 *
     2826 * @returns true if UX is being used, otherwise false.
     2827 * @param   pUVM        The user mode VM handle.
     2828 */
     2829VMMR3DECL(bool) HMR3IsUXActive(PUVM pUVM)
     2830{
     2831    UVM_ASSERT_VALID_EXT_RETURN(pUVM, false);
     2832    PVM pVM = pUVM->pVM;
     2833    VM_ASSERT_VALID_EXT_RETURN(pVM, false);
     2834    return pVM->hm.s.vmx.fUnrestrictedGuest;
     2835}
     2836
     2837
     2838/**
    28232839 * Checks if internal events are pending. In that case we are not allowed to dispatch interrupts.
    28242840 *
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