VirtualBox

Changeset 59178 in vbox for trunk/src/VBox/Frontends


Ignore:
Timestamp:
Dec 17, 2015 6:29:27 PM (9 years ago)
Author:
vboxsync
Message:

FE/Qt: ​bugref:6478: Runtime UI: UI Session: Indicators-pool: Session-Information window: Caching nested-paging CPU hardware virtualization extension flag in GUI.

Location:
trunk/src/VBox/Frontends/VirtualBox/src
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/UIVMInfoDialog.cpp

    r59175 r59178  
    666666                                          VBoxGlobal::tr("Active", "details report (VT-x/AMD-V)") :
    667667                                          VBoxGlobal::tr("Inactive", "details report (VT-x/AMD-V)");
    668         const QString strNestedPaging = debugger.GetHWVirtExNestedPagingEnabled() ?
     668        const QString strNestedPaging = m_pMachineWindow->uisession()->isHWVirtExNestedPagingEnabled() ?
    669669                                        VBoxGlobal::tr("Active", "details report (Nested Paging)") :
    670670                                        VBoxGlobal::tr("Inactive", "details report (Nested Paging)");
  • trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIIndicatorsPool.cpp

    r59175 r59178  
    837837
    838838        /* Nested Paging feature: */
    839         bool bNestEnabled = debugger.GetHWVirtExNestedPagingEnabled();
    840         const QString strNestedPaging = bNestEnabled ?
     839        const QString strNestedPaging = m_pSession->isHWVirtExNestedPagingEnabled() ?
    841840                                        VBoxGlobal::tr("Active", "details report (Nested Paging)") :
    842841                                        VBoxGlobal::tr("Inactive", "details report (Nested Paging)");
  • trunk/src/VBox/Frontends/VirtualBox/src/runtime/UISession.cpp

    r59155 r59178  
    954954    , m_fIsValidPointerShapePresent(false)
    955955    , m_fIsHidingHostPointer(true)
    956     /* VM settings flags: */
     956    /* CPU hardware virtualization features for VM: */
    957957    , m_fIsHWVirtExEnabled(false)
     958    , m_fIsHWVirtExNestedPagingEnabled(false)
    958959{
    959960}
     
    19461947void UISession::loadVMSettings()
    19471948{
    1948     /* Load VM settings: */
    1949     /* CPU hardware virtualization extensions: */
     1949    /* Load CPU hardware virtualization extension: */
    19501950    m_fIsHWVirtExEnabled = m_debugger.GetHWVirtExEnabled();
     1951    /* Load nested-paging CPU hardware virtualization extension: */
     1952    m_fIsHWVirtExNestedPagingEnabled = m_debugger.GetHWVirtExNestedPagingEnabled();
    19511953}
    19521954
  • trunk/src/VBox/Frontends/VirtualBox/src/runtime/UISession.h

    r59155 r59178  
    254254    void updateStatusVideoCapture() { sltVideoCaptureChange(); }
    255255
    256     /** Returns whether HW virtualization extension is enabled. */
     256    /** @name CPU hardware virtualization features for VM.
     257     ** @{ */
     258    /** Returns whether CPU hardware virtualization extension is enabled. */
    257259    bool isHWVirtExEnabled() const { return m_fIsHWVirtExEnabled; }
     260    /** Returns whether nested-paging CPU hardware virtualization extension is enabled. */
     261    bool isHWVirtExNestedPagingEnabled() const { return m_fIsHWVirtExNestedPagingEnabled; }
     262    /** @} */
    258263
    259264signals:
     
    518523    bool m_fIsHidingHostPointer : 1;
    519524
    520     /** Holds whether HW virtualization extension is enabled. */
     525    /** @name CPU hardware virtualization features for VM.
     526     ** @{ */
     527    /** Holds whether CPU hardware virtualization extension is enabled. */
    521528    bool m_fIsHWVirtExEnabled;
     529    /** Holds whether nested-paging CPU hardware virtualization extension is enabled. */
     530    bool m_fIsHWVirtExNestedPagingEnabled;
     531    /** @} */
    522532
    523533    /* Friend classes: */
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