- Timestamp:
- May 6, 2019 12:32:22 PM (6 years ago)
- Location:
- trunk/src/VBox
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/wizards/newvm/UIWizardNewVM.cpp
r78292 r78387 233 233 } 234 234 235 /* Li omit the AHCI port count if it's used because windows has trouble with235 /* Limit the AHCI port count if it's used because windows has trouble with 236 236 too many ports and other guest (OS X in particular) may take extra long 237 237 to boot: */ -
trunk/src/VBox/Main/src-server/MachineImpl.cpp
r78352 r78387 15159 15159 ? settings::Hardware::LongMode_Enabled : settings::Hardware::LongMode_Disabled; 15160 15160 15161 /* Let the OS type enable the X2APIC */ 15162 mHWData->mX2APIC = osType->i_recommendedX2APIC(); 15163 15164 /* This one covers IOAPICEnabled. */ 15165 mBIOSSettings->i_applyDefaults(osType); 15166 15167 /* Initialize default record settings. */ 15168 mRecordingSettings->i_applyDefaults(); 15169 15170 /* Initialize default BIOS settings here */ 15171 /* Hardware virtualization must be ON by default */ 15172 mHWData->mAPIC = true; 15173 mHWData->mHWVirtExEnabled = true; 15174 15175 rc = osType->COMGETTER(RecommendedRAM)(&mHWData->mMemorySize); 15176 if (FAILED(rc)) return rc; 15177 15178 rc = osType->COMGETTER(RecommendedGraphicsController)(&mHWData->mGraphicsControllerType); 15179 if (FAILED(rc)) return rc; 15180 15181 rc = osType->COMGETTER(RecommendedVRAM)(&mHWData->mVRAMSize); 15182 if (FAILED(rc)) return rc; 15183 15184 rc = osType->COMGETTER(Recommended2DVideoAcceleration)(&mHWData->mAccelerate2DVideoEnabled); 15185 if (FAILED(rc)) return rc; 15186 15187 rc = osType->COMGETTER(Recommended3DAcceleration)(&mHWData->mAccelerate3DEnabled); 15188 if (FAILED(rc)) return rc; 15189 15190 rc = osType->COMGETTER(RecommendedFirmware)(&mHWData->mFirmwareType); 15191 if (FAILED(rc)) return rc; 15192 15193 rc = osType->COMGETTER(RecommendedPAE)(&mHWData->mPAEEnabled); 15194 if (FAILED(rc)) return rc; 15195 15196 rc = osType->COMGETTER(RecommendedHPET)(&mHWData->mHPETEnabled); 15197 if (FAILED(rc)) return rc; 15198 15199 BOOL mRTCUseUTC; 15200 rc = osType->COMGETTER(RecommendedRTCUseUTC)(&mRTCUseUTC); 15201 if (FAILED(rc)) return rc; 15202 15203 setRTCUseUTC(mRTCUseUTC); 15204 if (FAILED(rc)) return rc; 15205 15206 ChipsetType_T enmChipsetType; 15207 rc = osType->COMGETTER(RecommendedChipset)(&enmChipsetType); 15208 if (FAILED(rc)) return rc; 15209 15210 rc = COMSETTER(ChipsetType)(enmChipsetType); 15211 if (FAILED(rc)) return rc; 15212 15213 rc = osType->COMGETTER(RecommendedTFReset)(&mHWData->mTripleFaultReset); 15214 if (FAILED(rc)) return rc; 15215 15216 size_t mnet = mNetworkAdapters.size(); NOREF(mnet); 15161 15217 /* Apply network adapters defaults */ 15162 15218 for (ULONG slot = 0; slot < mNetworkAdapters.size(); ++slot) … … 15170 15226 for (ULONG slot = 0; slot < RT_ELEMENTS(mParallelPorts); ++slot) 15171 15227 mParallelPorts[slot]->i_applyDefaults(); 15172 15173 15174 /* Let the OS type enable the X2APIC */15175 mHWData->mX2APIC = osType->i_recommendedX2APIC();15176 15177 /* This one covers IOAPICEnabled. */15178 mBIOSSettings->i_applyDefaults(osType);15179 15180 /* Initialize default record settings. */15181 mRecordingSettings->i_applyDefaults();15182 15183 /* Initialize default BIOS settings here */15184 /* Hardware virtualization must be ON by default */15185 //mHWData->mAPIC = true;15186 //mHWData->mHWVirtExEnabled = true;15187 15188 rc = osType->COMGETTER(RecommendedRAM)(&mHWData->mMemorySize);15189 if (FAILED(rc)) return rc;15190 15191 rc = osType->COMGETTER(RecommendedGraphicsController)(&mHWData->mGraphicsControllerType);15192 if (FAILED(rc)) return rc;15193 15194 rc = osType->COMGETTER(RecommendedVRAM)(&mHWData->mVRAMSize);15195 if (FAILED(rc)) return rc;15196 15197 rc = osType->COMGETTER(Recommended2DVideoAcceleration)(&mHWData->mAccelerate2DVideoEnabled);15198 if (FAILED(rc)) return rc;15199 15200 rc = osType->COMGETTER(Recommended3DAcceleration)(&mHWData->mAccelerate3DEnabled);15201 if (FAILED(rc)) return rc;15202 15203 rc = osType->COMGETTER(RecommendedFirmware)(&mHWData->mFirmwareType);15204 if (FAILED(rc)) return rc;15205 15206 rc = osType->COMGETTER(RecommendedPAE)(&mHWData->mPAEEnabled);15207 if (FAILED(rc)) return rc;15208 15209 rc = osType->COMGETTER(RecommendedHPET)(&mHWData->mHPETEnabled);15210 if (FAILED(rc)) return rc;15211 15212 BOOL mRTCUseUTC;15213 rc = osType->COMGETTER(RecommendedRTCUseUTC)(&mRTCUseUTC);15214 if (FAILED(rc)) return rc;15215 15216 setRTCUseUTC(mRTCUseUTC);15217 if (FAILED(rc)) return rc;15218 15219 rc = osType->COMGETTER(RecommendedChipset)(&mHWData->mChipsetType);15220 if (FAILED(rc)) return rc;15221 15222 rc = osType->COMGETTER(RecommendedTFReset)(&mHWData->mTripleFaultReset);15223 if (FAILED(rc)) return rc;15224 15228 15225 15229 /* Audio stuff. */
Note:
See TracChangeset
for help on using the changeset viewer.