VirtualBox

Changeset 59196 in vbox for trunk


Ignore:
Timestamp:
Dec 21, 2015 12:56:12 PM (9 years ago)
Author:
vboxsync
Message:

FE/Qt: ​​bugref:6478: Runtime UI: UI Session: Indicators-pool: Session-Information window: Caching the flag indicating unrestricted execution feature of VT-x in GUI.

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

Legend:

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

    r59178 r59196  
    662662
    663663        /* Deterine virtualization attributes: */
    664         CMachineDebugger debugger = console.GetDebugger();
    665664        const QString strVirtualization = m_pMachineWindow->uisession()->isHWVirtExEnabled() ?
    666665                                          VBoxGlobal::tr("Active", "details report (VT-x/AMD-V)") :
     
    669668                                        VBoxGlobal::tr("Active", "details report (Nested Paging)") :
    670669                                        VBoxGlobal::tr("Inactive", "details report (Nested Paging)");
    671         const QString strUnrestrictedExecution = debugger.GetHWVirtExUXEnabled() ?
     670        const QString strUnrestrictedExecution = m_pMachineWindow->uisession()->isHWVirtExUXEnabled() ?
    672671                                                 VBoxGlobal::tr("Active", "details report (Unrestricted Execution)") :
    673672                                                 VBoxGlobal::tr("Inactive", "details report (Unrestricted Execution)");
  • trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIIndicatorsPool.cpp

    r59178 r59196  
    842842
    843843        /* Unrestricted Execution feature: */
    844         bool bUXEnabled = debugger.GetHWVirtExUXEnabled();
    845         const QString strUnrestrictExec = bUXEnabled ?
     844        const QString strUnrestrictExec = m_pSession->isHWVirtExUXEnabled() ?
    846845                                          VBoxGlobal::tr("Active", "details report (Unrestricted Execution)") :
    847846                                          VBoxGlobal::tr("Inactive", "details report (Unrestricted Execution)");
  • trunk/src/VBox/Frontends/VirtualBox/src/runtime/UISession.cpp

    r59178 r59196  
    957957    , m_fIsHWVirtExEnabled(false)
    958958    , m_fIsHWVirtExNestedPagingEnabled(false)
     959    , m_fIsHWVirtExUXEnabled(false)
    959960{
    960961}
     
    19511952    /* Load nested-paging CPU hardware virtualization extension: */
    19521953    m_fIsHWVirtExNestedPagingEnabled = m_debugger.GetHWVirtExNestedPagingEnabled();
     1954    /* Load whether the VM is currently making use of the unrestricted execution feature of VT-x: */
     1955    m_fIsHWVirtExUXEnabled = m_debugger.GetHWVirtExUXEnabled();
    19531956}
    19541957
  • trunk/src/VBox/Frontends/VirtualBox/src/runtime/UISession.h

    r59178 r59196  
    260260    /** Returns whether nested-paging CPU hardware virtualization extension is enabled. */
    261261    bool isHWVirtExNestedPagingEnabled() const { return m_fIsHWVirtExNestedPagingEnabled; }
     262    /** Returns whether the VM is currently making use of the unrestricted execution feature of VT-x. */
     263    bool isHWVirtExUXEnabled() const { return m_fIsHWVirtExUXEnabled; }
    262264    /** @} */
    263265
     
    529531    /** Holds whether nested-paging CPU hardware virtualization extension is enabled. */
    530532    bool m_fIsHWVirtExNestedPagingEnabled;
     533    /** Holds whether the VM is currently making use of the unrestricted execution feature of VT-x. */
     534    bool m_fIsHWVirtExUXEnabled;
    531535    /** @} */
    532536
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