VirtualBox

Changeset 75972 in vbox for trunk/src


Ignore:
Timestamp:
Dec 5, 2018 1:35:24 PM (6 years ago)
Author:
vboxsync
Message:

FE/Qt: bugref:9323: It's probably easier to keep in-page fixes (opposing to cross-page fixes) within own page.

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  
    464464            pGeneralPage->is64BitOSTypeSelected() && !pSystemPage->isHWVirtExEnabled())
    465465            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         }
    489466
    490467#ifdef VBOX_WITH_VIDEOHWACCEL
  • trunk/src/VBox/Frontends/VirtualBox/src/settings/machine/UIMachineSettingsSystem.cpp

    r75959 r75972  
    404404    /* Gather 'Acceleration' data: */
    405405    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());
    408418
    409419    /* Cache new system data: */
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette