Changeset 70712 in vbox for trunk/src/VBox/Main/xml
- Timestamp:
- Jan 23, 2018 4:18:22 PM (7 years ago)
- svn:sync-xref-src-repo-rev:
- 120455
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/xml/Settings.cpp
r70606 r70712 2780 2780 fIBPBOnVMExit(false), 2781 2781 fIBPBOnVMEntry(false), 2782 fNestedHWVirt(false), 2782 2783 enmLongMode(HC_ARCH_BITS == 64 ? Hardware::LongMode_Enabled : Hardware::LongMode_Disabled), 2783 2784 cCPUs(1), … … 2935 2936 && fIBPBOnVMExit == h.fIBPBOnVMExit 2936 2937 && fIBPBOnVMEntry == h.fIBPBOnVMEntry 2938 && fNestedHWVirt == h.fNestedHWVirt 2937 2939 && cCPUs == h.cCPUs 2938 2940 && fCpuHotPlug == h.fCpuHotPlug … … 3943 3945 pelmCPUChild->getAttributeValue("vmentry", hw.fIBPBOnVMEntry); 3944 3946 } 3947 pelmCPUChild = pelmHwChild->findChildElement("NestedHWVirt"); 3948 if (pelmCPUChild) 3949 pelmCPUChild->getAttributeValue("enabled", hw.fNestedHWVirt); 3945 3950 3946 3951 if ((pelmCPUChild = pelmHwChild->findChildElement("CpuIdTree"))) … … 5278 5283 } 5279 5284 } 5285 if (m->sv >= SettingsVersion_v1_17 && hw.fNestedHWVirt) 5286 pelmCPU->createChild("NestedHWVirt")->setAttribute("enabled", hw.fNestedHWVirt); 5287 5280 5288 if (m->sv >= SettingsVersion_v1_14 && hw.enmLongMode != Hardware::LongMode_Legacy) 5281 5289 { … … 6939 6947 void MachineConfigFile::bumpSettingsVersionIfNeeded() 6940 6948 { 6949 if (m->sv < SettingsVersion_v1_17) 6950 { 6951 // VirtualBox 6.0 adds nested hardware virtualization. 6952 if (hardwareMachine.fNestedHWVirt) 6953 { 6954 m->sv = SettingsVersion_v1_17; 6955 return; 6956 } 6957 } 6958 6941 6959 if (m->sv < SettingsVersion_v1_16) 6942 6960 {
Note:
See TracChangeset
for help on using the changeset viewer.