VirtualBox

Ignore:
Timestamp:
Aug 20, 2010 1:06:33 PM (15 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
65018
Message:

added HWVirtEx force property to API

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/ConsoleImpl2.cpp

    r31706 r31818  
    636636         */
    637637        BOOL fHWVirtExEnabled;
    638         BOOL fHwVirtExtForced;
     638        BOOL fHwVirtExtForced = false;
    639639#ifdef VBOX_WITH_RAW_MODE
    640640        hrc = pMachine->GetHWVirtExProperty(HWVirtExPropertyType_Enabled, &fHWVirtExEnabled); H();
     
    652652# endif
    653653#else  /* !VBOX_WITH_RAW_MODE */
    654         fHWVirtExEnabled = fHwVirtExtForced = TRUE;
     654        fHWVirtExEnabled = fHwVirtExtForced = true;
    655655#endif /* !VBOX_WITH_RAW_MODE */
     656        /* only honor the property value if there was no other reason to enable it */
     657        if (!fHwVirtExtForced)
     658        {
     659            hrc = pMachine->GetHWVirtExProperty(HWVirtExPropertyType_Force, &fHwVirtExtForced); H();
     660        }
    656661        InsertConfigInteger(pRoot, "HwVirtExtForced",      fHwVirtExtForced);
    657662
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