VirtualBox

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


Ignore:
Timestamp:
Aug 14, 2020 12:59:51 PM (4 years ago)
Author:
vboxsync
Message:

Main: bugref:9618 Added Main/API support for AMD-V Virtualized VMSAVE/VMLOAD hardware virtualization feature.

File:
1 edited

Legend:

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

    r85683 r85769  
    33493349    fMDSClearOnVMEntry(false),
    33503350    fNestedHWVirt(false),
     3351    fVirtVmsaveVmload(true),
    33513352    enmLongMode(HC_ARCH_BITS == 64 ? Hardware::LongMode_Enabled : Hardware::LongMode_Disabled),
    33523353    cCPUs(1),
     
    34703471            && fMDSClearOnVMEntry             == h.fMDSClearOnVMEntry
    34713472            && fNestedHWVirt                  == h.fNestedHWVirt
     3473            && fVirtVmsaveVmload              == h.fVirtVmsaveVmload
    34723474            && cCPUs                          == h.cCPUs
    34733475            && fCpuHotPlug                    == h.fCpuHotPlug
     
    44464448            if ((pelmCPUChild = pelmHwChild->findChildElement("HardwareVirtExUseNativeApi")))
    44474449                pelmCPUChild->getAttributeValue("enabled", hw.fUseNativeApi);
     4450            if ((pelmCPUChild = pelmHwChild->findChildElement("HardwareVirtExVirtVmsaveVmload")))
     4451                pelmCPUChild->getAttributeValue("enabled", hw.fVirtVmsaveVmload);
    44484452
    44494453            if (!(pelmCPUChild = pelmHwChild->findChildElement("PAE")))
     
    58985902    if (m->sv >= SettingsVersion_v1_17 && hw.fNestedHWVirt)
    58995903        pelmCPU->createChild("NestedHWVirt")->setAttribute("enabled", hw.fNestedHWVirt);
     5904
     5905    if (m->sv >= SettingsVersion_v1_18 && !hw.fVirtVmsaveVmload)
     5906        pelmCPU->createChild("HardwareVirtExVirtVmsaveVmload")->setAttribute("enabled", hw.fVirtVmsaveVmload);
    59005907
    59015908    if (m->sv >= SettingsVersion_v1_14 && hw.enmLongMode != Hardware::LongMode_Legacy)
     
    76327639        }
    76337640
     7641        // VirtualBox 6.1 adds AMD-V virtualized VMSAVE/VMLOAD setting.
     7642        if (hardwareMachine.fVirtVmsaveVmload == false)
     7643        {
     7644            m->sv = SettingsVersion_v1_18;
     7645            return;
     7646        }
     7647
    76347648        // VirtualBox 6.1 adds a virtio-scsi storage controller.
    76357649        for (StorageControllersList::const_iterator it = hardwareMachine.storage.llStorageControllers.begin();
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