VirtualBox

Changeset 31395 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Aug 5, 2010 12:15:00 PM (15 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
64458
Message:

CPUM.cpp: Added /CPUM/EnableNX config option, defaults to false. Useful for raw-mode where we don't normally enable NXE.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/CPUM.cpp

    r31238 r31395  
    931931     */
    932932    bool fEnable;
    933     rc = CFGMR3QueryBoolDef(CFGMR3GetRoot(pVM), "EnablePAE", &fEnable, false);    AssertRCReturn(rc, rc);
     933    rc = CFGMR3QueryBoolDef(CFGMR3GetRoot(pVM), "EnablePAE", &fEnable, false);      AssertRCReturn(rc, rc);
    934934    if (fEnable)
    935935        CPUMSetGuestCpuIdFeature(pVM, CPUMCPUIDFEATURE_PAE);
     936
     937    /*
     938     * We don't normally enable NX for raw-mode, so give the user a chance to
     939     * force it on.
     940     */
     941    rc = CFGMR3QueryBoolDef(pCpumCfg, "EnableNX", &fEnable, false);                 AssertRCReturn(rc, rc);
     942    if (fEnable)
     943        CPUMSetGuestCpuIdFeature(pVM, CPUMCPUIDFEATURE_NXE);
    936944
    937945    /*
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