Changeset 72330 in vbox for trunk/src/VBox/Frontends
- Timestamp:
- May 24, 2018 8:17:03 PM (7 years ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src/runtime
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/runtime/UISession.cpp
r72329 r72330 958 958 , m_enmVMExecutionEngine(KVMExecutionEngine_NotSet) 959 959 /* CPU hardware virtualization features for VM: */ 960 , m_fIsHWVirtExEnabled(false)961 960 , m_fIsHWVirtExNestedPagingEnabled(false) 962 961 , m_fIsHWVirtExUXEnabled(false) … … 2005 2004 const bool fRecommendVirtEx = vboxGlobal().virtualBox().GetGuestOSType(guest().GetOSTypeId()).GetRecommendedVirtEx(); 2006 2005 AssertMsg(!fIs64BitsGuest || fRecommendVirtEx, ("Virtualization support missed for 64bit guest!\n")); 2007 const bool fIsVirtActive = debugger().GetHWVirtExEnabled();2008 if (fRecommendVirtEx && !fIsVirtActive)2006 const KVMExecutionEngine enmEngine = debugger().GetExecutionEngine(); 2007 if (fRecommendVirtEx && enmEngine == KVMExecutionEngine_RawMode) 2009 2008 { 2010 2009 /* Check whether vt-x / amd-v supported: */ … … 2124 2123 /* Cache IMachine::ExecutionEngine value. */ 2125 2124 m_enmVMExecutionEngine = m_debugger.GetExecutionEngine(); 2126 /* Load CPU hardware virtualization extension: */2127 m_fIsHWVirtExEnabled = m_debugger.GetHWVirtExEnabled();2128 2125 /* Load nested-paging CPU hardware virtualization extension: */ 2129 2126 m_fIsHWVirtExNestedPagingEnabled = m_debugger.GetHWVirtExNestedPagingEnabled(); -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/UISession.h
r72329 r72330 268 268 /** Returns whether CPU hardware virtualization extension is enabled. */ 269 269 KVMExecutionEngine getVMExecutionEngine() const { return m_enmVMExecutionEngine; } 270 /** Returns whether CPU hardware virtualization extension is enabled. */271 bool isHWVirtExEnabled() const { return m_fIsHWVirtExEnabled; }272 270 /** Returns whether nested-paging CPU hardware virtualization extension is enabled. */ 273 271 bool isHWVirtExNestedPagingEnabled() const { return m_fIsHWVirtExNestedPagingEnabled; } … … 550 548 /** @name CPU hardware virtualization features for VM. 551 549 ** @{ */ 552 /** Holds whether CPU hardware virtualization extension is enabled. */553 bool m_fIsHWVirtExEnabled;554 550 /** Holds whether nested-paging CPU hardware virtualization extension is enabled. */ 555 551 bool m_fIsHWVirtExNestedPagingEnabled;
Note:
See TracChangeset
for help on using the changeset viewer.