VirtualBox

Changeset 72332 in vbox for trunk/src/VBox/Main/xml


Ignore:
Timestamp:
May 24, 2018 8:51:23 PM (7 years ago)
Author:
vboxsync
Message:

Main: Added HWVirtExPropertyType::UseNativeApi for use with IMachine::getHWVirtExProperty and IMachine::setHWVirtExProperty. bugref:9044

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/xml/Settings.cpp

    r71179 r72332  
    27742774    fUnrestrictedExecution(true),
    27752775    fHardwareVirtForce(false),
     2776    fUseNativeApi(false),
    27762777    fTripleFaultReset(false),
    27772778    fPAE(false),
     
    29312932            && fUnrestrictedExecution    == h.fUnrestrictedExecution
    29322933            && fHardwareVirtForce        == h.fHardwareVirtForce
     2934            && fUseNativeApi             == h.fUseNativeApi
    29332935            && fPAE                      == h.fPAE
    29342936            && enmLongMode               == h.enmLongMode
     
    39083910            if ((pelmCPUChild = pelmHwChild->findChildElement("HardwareVirtForce")))
    39093911                pelmCPUChild->getAttributeValue("enabled", hw.fHardwareVirtForce);
     3912            if ((pelmCPUChild = pelmHwChild->findChildElement("HardwareVirtExUseNativeApi")))
     3913                pelmCPUChild->getAttributeValue("enabled", hw.fUseNativeApi);
    39103914
    39113915            if (!(pelmCPUChild = pelmHwChild->findChildElement("PAE")))
     
    53335337            pelmCPU->createChild("HardwareVirtForce")->setAttribute("enabled", hw.fHardwareVirtForce);
    53345338    }
     5339
     5340    if (m->sv >= SettingsVersion_v1_9 && hw.fUseNativeApi)
     5341        pelmCPU->createChild("HardwareVirtExUseNativeApi")->setAttribute("enabled", hw.fUseNativeApi);
    53355342
    53365343    if (m->sv >= SettingsVersion_v1_10)
     
    69646971    if (m->sv < SettingsVersion_v1_17)
    69656972    {
    6966         // VirtualBox 6.0 adds nested hardware virtualization.
    6967         if (hardwareMachine.fNestedHWVirt)
     6973        // VirtualBox 6.0 adds nested hardware virtualization, using native API (NEM).
     6974        if (   hardwareMachine.fNestedHWVirt
     6975            || hardwareMachine.fUseNativeApi)
    69686976        {
    69696977            m->sv = SettingsVersion_v1_17;
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