VirtualBox

Changeset 103179 in vbox for trunk/src


Ignore:
Timestamp:
Feb 2, 2024 5:05:14 PM (11 months ago)
Author:
vboxsync
Message:

FE/Qt: bugref:10384: VM settings / System page: Hiding acceleration features (which actually is Nested Paging only for now) for ARM host.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/settings/machine/UIMachineSettingsSystem.cpp

    r102972 r103179  
    214214bool UIMachineSettingsSystem::isNestedPagingEnabled() const
    215215{
    216     return m_pEditorAccelerationFeatures->isEnabledNestedPaging();
     216    return   m_pEditorAccelerationFeatures
     217           ? m_pEditorAccelerationFeatures->isEnabledNestedPaging()
     218           : m_pCache->base().m_fEnabledNestedPaging;
    217219}
    218220
     
    647649    /* Polish 'Acceleration' availability: */
    648650    m_pEditorParavirtProvider->setEnabled(isMachineOffline());
    649     m_pEditorAccelerationFeatures->setEnabled(isMachineOffline());
    650     m_pEditorAccelerationFeatures->setEnableNestedPagingAvailable(   (systemData.m_fSupportedNestedPaging && isMachineOffline())
    651                                                                   || (systemData.m_fEnabledNestedPaging && isMachineOffline()));
     651    if (m_pEditorAccelerationFeatures)
     652    {
     653        m_pEditorAccelerationFeatures->setEnabled(isMachineOffline());
     654        m_pEditorAccelerationFeatures->setEnableNestedPagingAvailable(   (systemData.m_fSupportedNestedPaging && isMachineOffline())
     655                                                                      || (systemData.m_fEnabledNestedPaging && isMachineOffline()));
     656    }
    652657}
    653658
     
    836841
    837842            /* Prepare acceleration features editor: */
     843#ifndef VBOX_WITH_VIRT_ARMV8
    838844            m_pEditorAccelerationFeatures = new UIAccelerationFeaturesEditor(m_pTabAcceleration);
     845#endif
    839846            if (m_pEditorAccelerationFeatures)
    840847            {
     
    872879
    873880    /* Configure 'Acceleration' connections: */
    874     connect(m_pEditorAccelerationFeatures, &UIAccelerationFeaturesEditor::sigChangedNestedPaging,
    875             this, &UIMachineSettingsSystem::revalidate);
     881    if (m_pEditorAccelerationFeatures)
     882        connect(m_pEditorAccelerationFeatures, &UIAccelerationFeaturesEditor::sigChangedNestedPaging,
     883                this, &UIMachineSettingsSystem::revalidate);
    876884}
    877885
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