Changeset 72329 in vbox for trunk/src/VBox
- Timestamp:
- May 24, 2018 7:52:52 PM (7 years ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src/runtime
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIIndicatorsPool.cpp
r71355 r72329 934 934 { 935 935 /* Assign state-icons: */ 936 setStateIcon(0, UIIconPool::iconSet(":/vtx_amdv_disabled_16px.png")); 937 setStateIcon(1, UIIconPool::iconSet(":/vtx_amdv_16px.png")); 936 setStateIcon(KVMExecutionEngine_NotSet, UIIconPool::iconSet(":/vtx_amdv_disabled_16px.png")); 937 setStateIcon(KVMExecutionEngine_RawMode, UIIconPool::iconSet(":/vtx_amdv_disabled_16px.png")); 938 setStateIcon(KVMExecutionEngine_HwVirt, UIIconPool::iconSet(":/vtx_amdv_16px.png")); 939 /** @todo new indicator icon, something that looks very very slow (at least on Windows)... @bugref{9044} */ 940 setStateIcon(KVMExecutionEngine_NativeApi, UIIconPool::iconSet(":/vtx_amdv_disabled_16px.png")); 938 941 /* Translate finally: */ 939 942 retranslateUi(); … … 949 952 950 953 /* VT-x/AMD-V feature: */ 951 const QString strVirtualization = m_pSession->isHWVirtExEnabled() ? 952 VBoxGlobal::tr("Active", "details report (VT-x/AMD-V)") : 953 VBoxGlobal::tr("Inactive", "details report (VT-x/AMD-V)"); 954 KVMExecutionEngine enmEngine = m_pSession->getVMExecutionEngine(); 955 QString strExecutionEngine; 956 switch (enmEngine) 957 { 958 case KVMExecutionEngine_HwVirt: 959 strExecutionEngine = "VT-x/AMD-V"; /* no translation */ 960 break; 961 case KVMExecutionEngine_RawMode: 962 strExecutionEngine = "raw-mode"; /* no translation */ 963 break; 964 case KVMExecutionEngine_NativeApi: 965 strExecutionEngine = "native API"; /* no translation */ 966 break; 967 default: 968 AssertFailed(); 969 enmEngine = KVMExecutionEngine_NotSet; 970 case KVMExecutionEngine_NotSet: 971 strExecutionEngine = VBoxGlobal::tr("not set", "details report (execution engine)"); 972 break; 973 } 954 974 955 975 /* Nested Paging feature: */ … … 971 991 /* Prepare tool-tip: */ 972 992 QString strFullData; 973 strFullData += s_strTableRow2.arg(VBoxGlobal::tr("VT-x/AMD-V", "details report"), strVirtualization); 993 //strFullData += s_strTableRow2.arg(VBoxGlobal::tr("VT-x/AMD-V", "details report"), strVirtualization); 994 strFullData += s_strTableRow2.arg(VBoxGlobal::tr("Execution engine", "details report"), strExecutionEngine); 974 995 strFullData += s_strTableRow2.arg(VBoxGlobal::tr("Nested Paging"), strNestedPaging); 975 996 strFullData += s_strTableRow2.arg(VBoxGlobal::tr("Unrestricted Execution"), strUnrestrictExec); … … 978 999 const int cpuCount = machine.GetCPUCount(); 979 1000 if (cpuCount > 1) 980 strFullData += s_strTableRow2.arg(VBoxGlobal::tr("Processor (s)", "details report"), QString::number(cpuCount));1001 strFullData += s_strTableRow2.arg(VBoxGlobal::tr("Processors", "details report"), QString::number(cpuCount)); 981 1002 982 1003 /* Update tool-tip: */ 983 1004 setToolTip(s_strTable.arg(strFullData)); 984 1005 /* Update indicator state: */ 985 setState( m_pSession->isHWVirtExEnabled());1006 setState(enmEngine); 986 1007 } 987 1008 }; -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/UISession.cpp
r72057 r72329 956 956 , m_fIsValidPointerShapePresent(false) 957 957 , m_fIsHidingHostPointer(true) 958 , m_enmVMExecutionEngine(KVMExecutionEngine_NotSet) 958 959 /* CPU hardware virtualization features for VM: */ 959 960 , m_fIsHWVirtExEnabled(false) … … 2121 2122 void UISession::loadVMSettings() 2122 2123 { 2124 /* Cache IMachine::ExecutionEngine value. */ 2125 m_enmVMExecutionEngine = m_debugger.GetExecutionEngine(); 2123 2126 /* Load CPU hardware virtualization extension: */ 2124 2127 m_fIsHWVirtExEnabled = m_debugger.GetHWVirtExEnabled(); -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/UISession.h
r71374 r72329 266 266 /** @name CPU hardware virtualization features for VM. 267 267 ** @{ */ 268 /** Returns whether CPU hardware virtualization extension is enabled. */ 269 KVMExecutionEngine getVMExecutionEngine() const { return m_enmVMExecutionEngine; } 268 270 /** Returns whether CPU hardware virtualization extension is enabled. */ 269 271 bool isHWVirtExEnabled() const { return m_fIsHWVirtExEnabled; } … … 543 545 bool m_fIsHidingHostPointer : 1; 544 546 547 /** Copy of IMachineDebugger::ExecutionEngine */ 548 KVMExecutionEngine m_enmVMExecutionEngine; 549 545 550 /** @name CPU hardware virtualization features for VM. 546 551 ** @{ */
Note:
See TracChangeset
for help on using the changeset viewer.