Changeset 85769 in vbox for trunk/src/VBox/Main/xml
- Timestamp:
- Aug 14, 2020 12:59:51 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/xml/Settings.cpp
r85683 r85769 3349 3349 fMDSClearOnVMEntry(false), 3350 3350 fNestedHWVirt(false), 3351 fVirtVmsaveVmload(true), 3351 3352 enmLongMode(HC_ARCH_BITS == 64 ? Hardware::LongMode_Enabled : Hardware::LongMode_Disabled), 3352 3353 cCPUs(1), … … 3470 3471 && fMDSClearOnVMEntry == h.fMDSClearOnVMEntry 3471 3472 && fNestedHWVirt == h.fNestedHWVirt 3473 && fVirtVmsaveVmload == h.fVirtVmsaveVmload 3472 3474 && cCPUs == h.cCPUs 3473 3475 && fCpuHotPlug == h.fCpuHotPlug … … 4446 4448 if ((pelmCPUChild = pelmHwChild->findChildElement("HardwareVirtExUseNativeApi"))) 4447 4449 pelmCPUChild->getAttributeValue("enabled", hw.fUseNativeApi); 4450 if ((pelmCPUChild = pelmHwChild->findChildElement("HardwareVirtExVirtVmsaveVmload"))) 4451 pelmCPUChild->getAttributeValue("enabled", hw.fVirtVmsaveVmload); 4448 4452 4449 4453 if (!(pelmCPUChild = pelmHwChild->findChildElement("PAE"))) … … 5898 5902 if (m->sv >= SettingsVersion_v1_17 && hw.fNestedHWVirt) 5899 5903 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); 5900 5907 5901 5908 if (m->sv >= SettingsVersion_v1_14 && hw.enmLongMode != Hardware::LongMode_Legacy) … … 7632 7639 } 7633 7640 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 7634 7648 // VirtualBox 6.1 adds a virtio-scsi storage controller. 7635 7649 for (StorageControllersList::const_iterator it = hardwareMachine.storage.llStorageControllers.begin();
Note:
See TracChangeset
for help on using the changeset viewer.