Changeset 98424 in vbox for trunk/src/VBox/Frontends/VirtualBox
- Timestamp:
- Feb 2, 2023 9:48:25 AM (2 years ago)
- Location:
- trunk
- Files:
-
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk
- Property svn:mergeinfo
-
old new 19 19 /branches/dsen/gui2:79224,79228,79233,79235,79258,79262-79263,79273,79341,79345,79354,79357,79387-79388,79559-79569,79572-79573,79578,79581-79582,79590-79591,79598-79599,79602-79603,79605-79606,79632,79635,79637,79644 20 20 /branches/dsen/gui3:79645-79692 21 /branches/dsen/gui4:155183-155185,155187,155198,155200-155201,155205,155228,155235,155243,155248,155282,155285,155287-155288,155311,155316,155336,155342,155344,155437-155438,155441,155443,155488,155509-155513,155526 21 /branches/dsen/gui4:155183-155185,155187,155198,155200-155201,155205,155228,155235,155243,155248,155282,155285,155287-155288,155311,155316,155336,155342,155344,155437-155438,155441,155443,155488,155509-155513,155526-155527 22 22 /trunk/src:92342,154921
-
- Property svn:mergeinfo
-
trunk/src/VBox
- Property svn:mergeinfo
-
old new 19 19 /branches/dsen/gui2/src/VBox:79224,79228,79233,79235,79258,79262-79263,79273,79341,79345,79354,79357,79387-79388,79559-79569,79572-79573,79578,79581-79582,79590-79591,79598-79599,79602-79603,79605-79606,79632,79635,79637,79644 20 20 /branches/dsen/gui3/src/VBox:79645-79692 21 /branches/dsen/gui4/src/VBox:155183-155185,155187,155198,155200-155201,155205,155228,155235,155243,155248,155282,155285,155287-155288,155311,155316,155336,155342,155344,155437-155438,155441,155443,155488,155509-155513,155526 21 /branches/dsen/gui4/src/VBox:155183-155185,155187,155198,155200-155201,155205,155228,155235,155243,155248,155282,155285,155287-155288,155311,155316,155336,155342,155344,155437-155438,155441,155443,155488,155509-155513,155526-155527
-
- Property svn:mergeinfo
-
trunk/src/VBox/Frontends
- Property svn:mergeinfo
-
old new 16 16 /branches/dsen/gui2/src/VBox/Frontends:79224,79228,79233,79235,79258,79262-79263,79273,79341,79345,79354,79357,79387-79388,79559-79569,79572-79573,79578,79581-79582,79590-79591,79598-79599,79602-79603,79605-79606,79632,79635,79637,79644 17 17 /branches/dsen/gui3/src/VBox/Frontends:79645-79692 18 /branches/dsen/gui4/src/VBox/Frontends:155183-155185,155187,155198,155200-155201,155205,155228,155235,155243,155248,155282,155285,155287-155288,155311,155316,155336,155342,155344,155437-155438,155441,155443,155488,155509-155513,155526 18 /branches/dsen/gui4/src/VBox/Frontends:155183-155185,155187,155198,155200-155201,155205,155228,155235,155243,155248,155282,155285,155287-155288,155311,155316,155336,155342,155344,155437-155438,155441,155443,155488,155509-155513,155526-155527
-
- Property svn:mergeinfo
-
trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIIndicatorsPool.cpp
r98385 r98424 1102 1102 1103 1103 /* VT-x/AMD-V feature: */ 1104 KVMExecutionEngine enmEngine = m_p Session->getVMExecutionEngine();1104 KVMExecutionEngine enmEngine = m_pMachine->vmExecutionEngine(); 1105 1105 QString strExecutionEngine; 1106 1106 switch (enmEngine) … … 1125 1125 1126 1126 /* Nested Paging feature: */ 1127 const QString strNestedPaging = m_p Session->isHWVirtExNestedPagingEnabled() ?1127 const QString strNestedPaging = m_pMachine->isHWVirtExNestedPagingEnabled() ? 1128 1128 UICommon::tr("Active", "details report (Nested Paging)") : 1129 1129 UICommon::tr("Inactive", "details report (Nested Paging)"); 1130 1130 1131 1131 /* Unrestricted Execution feature: */ 1132 const QString strUnrestrictExec = m_p Session->isHWVirtExUXEnabled() ?1132 const QString strUnrestrictExec = m_pMachine->isHWVirtExUXEnabled() ? 1133 1133 UICommon::tr("Active", "details report (Unrestricted Execution)") : 1134 1134 UICommon::tr("Inactive", "details report (Unrestricted Execution)"); … … 1138 1138 1139 1139 /* Paravirtualization feature: */ 1140 const QString strParavirt = gpConverter->toString(m_p Session->paraVirtProvider());1140 const QString strParavirt = gpConverter->toString(m_pMachine->paravirtProvider()); 1141 1141 1142 1142 /* Prepare tool-tip: */ -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIMachine.cpp
r98423 r98424 836 836 , m_fIsMouseIntegrated(true) 837 837 , m_iMouseState(0) 838 , m_enmVMExecutionEngine(KVMExecutionEngine_NotSet) 839 , m_fIsHWVirtExNestedPagingEnabled(false) 840 , m_fIsHWVirtExUXEnabled(false) 841 , m_enmParavirtProvider(KParavirtProvider_None) 838 842 , m_fIsManualOverride(false) 839 843 , m_defaultCloseAction(MachineCloseAction_Invalid) … … 873 877 874 878 /* Update stuff which doesn't send events on init: */ 879 updateVirtualizationState(); 875 880 updateStateAudioActions(); 876 881 updateMouseState(); … … 1704 1709 } 1705 1710 #endif /* VBOX_WS_WIN */ 1711 1712 void UIMachine::updateVirtualizationState() 1713 { 1714 m_enmVMExecutionEngine = uisession()->debugger().GetExecutionEngine(); 1715 m_fIsHWVirtExNestedPagingEnabled = uisession()->debugger().GetHWVirtExNestedPagingEnabled(); 1716 m_fIsHWVirtExUXEnabled = uisession()->debugger().GetHWVirtExUXEnabled(); 1717 m_enmParavirtProvider = uisession()->machine().GetEffectiveParavirtProvider(); 1718 } -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIMachine.h
r98423 r98424 308 308 /** @} */ 309 309 310 /** @name Virtualization stuff. 311 ** @{ */ 312 /** Returns IMachineDebugger::ExecutionEngine reference. */ 313 KVMExecutionEngine vmExecutionEngine() const { return m_enmVMExecutionEngine; } 314 315 /** Returns whether nested-paging CPU hardware virtualization extension is enabled. */ 316 bool isHWVirtExNestedPagingEnabled() const { return m_fIsHWVirtExNestedPagingEnabled; } 317 /** Returns whether the VM is currently making use of the unrestricted execution feature of VT-x. */ 318 bool isHWVirtExUXEnabled() const { return m_fIsHWVirtExUXEnabled; } 319 320 /** Returns VM's effective paravirtualization provider. */ 321 KParavirtProvider paravirtProvider() const { return m_enmParavirtProvider; } 322 /** @} */ 323 310 324 /** @name Close stuff. 311 325 * @{ */ … … 544 558 /** @} */ 545 559 560 /** @name Virtualization stuff. 561 ** @{ */ 562 /** Updates virtualization state. */ 563 void updateVirtualizationState(); 564 /** @} */ 565 546 566 /** Holds the static instance. */ 547 567 static UIMachine *s_pInstance; … … 672 692 /** @} */ 673 693 694 /** @name Virtualization stuff. 695 ** @{ */ 696 /** Holds the IMachineDebugger::ExecutionEngine reference. */ 697 KVMExecutionEngine m_enmVMExecutionEngine; 698 699 /** Holds whether nested-paging CPU hardware virtualization extension is enabled. */ 700 bool m_fIsHWVirtExNestedPagingEnabled; 701 /** Holds whether the VM is currently making use of the unrestricted execution feature of VT-x. */ 702 bool m_fIsHWVirtExUXEnabled; 703 704 /** Holds the VM's effective paravirtualization provider. */ 705 KParavirtProvider m_enmParavirtProvider; 706 /** @} */ 707 674 708 /** @name Close stuff. 675 709 * @{ */ -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/UISession.cpp
r98423 r98424 169 169 machineLogic()->initializePostPowerUp(); 170 170 171 /* Load VM settings: */172 loadVMSettings();173 174 171 #ifdef VBOX_GUI_WITH_PIDFILE 175 172 uiCommon().createPidfile(); … … 378 375 , m_fIsGuestSupportsGraphics(false) 379 376 , m_fIsGuestSupportsSeamless(false) 380 /* CPU hardware virtualization features for VM: */381 , m_enmVMExecutionEngine(KVMExecutionEngine_NotSet)382 , m_fIsHWVirtExNestedPagingEnabled(false)383 , m_fIsHWVirtExUXEnabled(false)384 /* VM's effective paravirtualization provider: */385 , m_paraVirtProvider(KParavirtProvider_None)386 377 { 387 378 } … … 849 840 } 850 841 851 void UISession::loadVMSettings()852 {853 /* Cache IMachine::ExecutionEngine value. */854 m_enmVMExecutionEngine = m_debugger.GetExecutionEngine();855 /* Load nested-paging CPU hardware virtualization extension: */856 m_fIsHWVirtExNestedPagingEnabled = m_debugger.GetHWVirtExNestedPagingEnabled();857 /* Load whether the VM is currently making use of the unrestricted execution feature of VT-x: */858 m_fIsHWVirtExUXEnabled = m_debugger.GetHWVirtExUXEnabled();859 /* Load VM's effective paravirtualization provider: */860 m_paraVirtProvider = m_machine.GetEffectiveParavirtProvider();861 }862 863 842 UIFrameBuffer* UISession::frameBuffer(ulong uScreenId) const 864 843 { -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/UISession.h
r98423 r98424 224 224 const QVector<UIFrameBuffer*>& frameBuffers() const { return m_frameBufferVector; } 225 225 226 /** @name CPU hardware virtualization features for VM.227 ** @{ */228 /** Returns whether CPU hardware virtualization extension is enabled. */229 KVMExecutionEngine getVMExecutionEngine() const { return m_enmVMExecutionEngine; }230 /** Returns whether nested-paging CPU hardware virtualization extension is enabled. */231 bool isHWVirtExNestedPagingEnabled() const { return m_fIsHWVirtExNestedPagingEnabled; }232 /** Returns whether the VM is currently making use of the unrestricted execution feature of VT-x. */233 bool isHWVirtExUXEnabled() const { return m_fIsHWVirtExUXEnabled; }234 /** @} */235 236 /** Returns VM's effective paravirtualization provider. */237 KParavirtProvider paraVirtProvider() const { return m_paraVirtProvider; }238 239 226 /** Returns a vector of media attached to the machine. */ 240 227 CMediumVector machineMedia() const; … … 297 284 bool preprocessInitialization(); 298 285 bool mountAdHocImage(KDeviceType enmDeviceType, UIMediumDeviceType enmMediumType, const QString &strMediumName); 299 /** Loads VM settings. */300 void loadVMSettings();301 286 302 287 /* Private variables: */ … … 341 326 bool m_fIsGuestSupportsGraphics : 1; 342 327 bool m_fIsGuestSupportsSeamless : 1; 343 344 /** Copy of IMachineDebugger::ExecutionEngine */345 KVMExecutionEngine m_enmVMExecutionEngine;346 347 /** @name CPU hardware virtualization features for VM.348 ** @{ */349 /** Holds whether nested-paging CPU hardware virtualization extension is enabled. */350 bool m_fIsHWVirtExNestedPagingEnabled;351 /** Holds whether the VM is currently making use of the unrestricted execution feature of VT-x. */352 bool m_fIsHWVirtExUXEnabled;353 /** @} */354 355 /** Holds VM's effective paravirtualization provider. */356 KParavirtProvider m_paraVirtProvider;357 328 }; 358 329
Note:
See TracChangeset
for help on using the changeset viewer.