Changeset 70712 in vbox for trunk/src/VBox/Main
- Timestamp:
- Jan 23, 2018 4:18:22 PM (7 years ago)
- Location:
- trunk/src/VBox/Main
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/idl/VirtualBox.xidl
r70606 r70712 579 579 </const> 580 580 <const name="v1_17" value="19"> 581 <desc>Settings version "1.17", written by VirtualBox 5.2.x.</desc>581 <desc>Settings version "1.17", written by VirtualBox 6.0.x.</desc> 582 582 <!-- 583 So far absolutely no change to v1_16.583 Machine changes: nested hardware virtualization. 584 584 --> 585 585 </const> … … 962 962 <enum 963 963 name="CPUPropertyType" 964 uuid=" cc6ecdad-a07c-4e81-9c0e-d767e0678d5a"964 uuid="3fcfe589-ca66-468f-e313-656f9d0b2eb6" 965 965 > 966 966 <desc> … … 1018 1018 causing many VM exits, so it is only recommended for situation where there 1019 1019 real need to be paranoid. 1020 </desc> 1021 </const> 1022 <const name="HWVirt" value="8"> 1023 <desc> 1024 Enabled the hardware virtualization (AMD-V/VT-x) feature on the guest CPU. 1025 This requires hardware virtualization on the host CPU. 1020 1026 </desc> 1021 1027 </const> -
trunk/src/VBox/Main/include/MachineImpl.h
r70606 r70712 290 290 BOOL mIBPBOnVMExit; 291 291 BOOL mIBPBOnVMEntry; 292 BOOL mNestedHWVirt; 292 293 ULONG mCPUCount; 293 294 BOOL mCPUHotPlugEnabled; -
trunk/src/VBox/Main/src-client/ConsoleImpl2.cpp
r70644 r70712 1021 1021 LogRel(("Limiting the firmware APIC level from APIC to Disabled\n")); 1022 1022 } 1023 1024 /* Nested VT-x / AMD-V. */ 1025 BOOL fNestedHWVirt = FALSE; 1026 hrc = pMachine->GetCPUProperty(CPUPropertyType_HWVirt, &fNestedHWVirt); H(); 1027 InsertConfigInteger(pCPUM, "NestedHWVirt", fNestedHWVirt ? true : false); 1023 1028 1024 1029 /* -
trunk/src/VBox/Main/src-server/MachineImpl.cpp
r70650 r70712 198 198 mIBPBOnVMExit = false; 199 199 mIBPBOnVMEntry = false; 200 mNestedHWVirt = false; 200 201 mHPETEnabled = false; 201 202 mCpuExecutionCap = 100; /* Maximum CPU execution cap by default. */ … … 2266 2267 break; 2267 2268 2269 case CPUPropertyType_HWVirt: 2270 *aValue = mHWData->mNestedHWVirt; 2271 break; 2272 2268 2273 default: 2269 2274 return E_INVALIDARG; … … 2325 2330 mHWData.backup(); 2326 2331 mHWData->mIBPBOnVMEntry = !!aValue; 2332 break; 2333 2334 case CPUPropertyType_HWVirt: 2335 i_setModified(IsModified_MachineData); 2336 mHWData.backup(); 2337 mHWData->mNestedHWVirt = !!aValue; 2327 2338 break; 2328 2339 … … 9012 9023 mHWData->mIBPBOnVMExit = data.fIBPBOnVMExit; 9013 9024 mHWData->mIBPBOnVMEntry = data.fIBPBOnVMEntry; 9025 mHWData->mNestedHWVirt = data.fNestedHWVirt; 9014 9026 mHWData->mCPUCount = data.cCPUs; 9015 9027 mHWData->mCPUHotPlugEnabled = data.fCpuHotPlug; … … 10337 10349 data.fIBPBOnVMExit = !!mHWData->mIBPBOnVMExit; 10338 10350 data.fIBPBOnVMEntry = !!mHWData->mIBPBOnVMEntry; 10351 data.fNestedHWVirt = !!mHWData->mNestedHWVirt; 10339 10352 data.cCPUs = mHWData->mCPUCount; 10340 10353 data.fCpuHotPlug = !!mHWData->mCPUHotPlugEnabled; -
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.