- Timestamp:
- Dec 5, 2018 1:35:24 PM (6 years ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src/settings
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/settings/UISettingsDialogSpecific.cpp
r75959 r75972 464 464 pGeneralPage->is64BitOSTypeSelected() && !pSystemPage->isHWVirtExEnabled()) 465 465 m_machine.SetHWVirtExProperty(KHWVirtExPropertyType_Enabled, true); 466 467 /* System page fixes: */468 if (pSystemPage)469 {470 /* Nested Paging || Nested HW Virt Ex: */471 if ( pSystemPage->isNestedPagingEnabled()472 || pSystemPage->isNestedHWVirtExEnabled())473 {474 /* Enable HW Virt Ex if supported: */475 if ( pSystemPage->isHWVirtExSupported()476 && !pSystemPage->isHWVirtExEnabled())477 m_machine.SetHWVirtExProperty(KHWVirtExPropertyType_Enabled, true);478 }479 480 /* Nested HW Virt Ex: */481 if (pSystemPage->isNestedHWVirtExEnabled())482 {483 /* Enable Nested Paging if supported: */484 if ( pSystemPage->isHWVirtExSupported()485 && !pSystemPage->isNestedPagingEnabled())486 m_machine.SetHWVirtExProperty(KHWVirtExPropertyType_NestedPaging, true);487 }488 }489 466 490 467 #ifdef VBOX_WITH_VIDEOHWACCEL -
trunk/src/VBox/Frontends/VirtualBox/src/settings/machine/UIMachineSettingsSystem.cpp
r75959 r75972 404 404 /* Gather 'Acceleration' data: */ 405 405 newSystemData.m_paravirtProvider = (KParavirtProvider)m_pComboParavirtProvider->itemData(m_pComboParavirtProvider->currentIndex()).toInt(); 406 newSystemData.m_fEnabledHwVirtEx = isHWVirtExEnabled() || m_pSliderCPUCount->value() > 1; 407 newSystemData.m_fEnabledNestedPaging = isNestedPagingEnabled(); 406 /* Enable HW Virt Ex automatically if it's supported and 407 * 1. multiple CPUs, 2. Nested Paging or 3. Nested HW Virt Ex is requested. */ 408 newSystemData.m_fEnabledHwVirtEx = isHWVirtExEnabled() 409 || ( isHWVirtExSupported() 410 && ( m_pSliderCPUCount->value() > 1 411 || isNestedPagingEnabled() 412 || isNestedHWVirtExEnabled())); 413 /* Enable Nested Paging automatically if it's supported and 414 * Nested HW Virt Ex is requested. */ 415 newSystemData.m_fEnabledNestedPaging = isNestedPagingEnabled() 416 || ( isNestedPagingSupported() 417 && isNestedHWVirtExEnabled()); 408 418 409 419 /* Cache new system data: */
Note:
See TracChangeset
for help on using the changeset viewer.