VirtualBox

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


Ignore:
Timestamp:
May 24, 2018 8:17:03 PM (7 years ago)
Author:
vboxsync
Message:

FE/Qt: bugref:9044: Only complain about no HwVirt when in raw-mode, not in NEM mode.

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  
    958958    , m_enmVMExecutionEngine(KVMExecutionEngine_NotSet)
    959959    /* CPU hardware virtualization features for VM: */
    960     , m_fIsHWVirtExEnabled(false)
    961960    , m_fIsHWVirtExNestedPagingEnabled(false)
    962961    , m_fIsHWVirtExUXEnabled(false)
     
    20052004    const bool fRecommendVirtEx = vboxGlobal().virtualBox().GetGuestOSType(guest().GetOSTypeId()).GetRecommendedVirtEx();
    20062005    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)
    20092008    {
    20102009        /* Check whether vt-x / amd-v supported: */
     
    21242123    /* Cache IMachine::ExecutionEngine value. */
    21252124    m_enmVMExecutionEngine = m_debugger.GetExecutionEngine();
    2126     /* Load CPU hardware virtualization extension: */
    2127     m_fIsHWVirtExEnabled = m_debugger.GetHWVirtExEnabled();
    21282125    /* Load nested-paging CPU hardware virtualization extension: */
    21292126    m_fIsHWVirtExNestedPagingEnabled = m_debugger.GetHWVirtExNestedPagingEnabled();
  • trunk/src/VBox/Frontends/VirtualBox/src/runtime/UISession.h

    r72329 r72330  
    268268    /** Returns whether CPU hardware virtualization extension is enabled. */
    269269    KVMExecutionEngine getVMExecutionEngine() const { return m_enmVMExecutionEngine; }
    270     /** Returns whether CPU hardware virtualization extension is enabled. */
    271     bool isHWVirtExEnabled() const { return m_fIsHWVirtExEnabled; }
    272270    /** Returns whether nested-paging CPU hardware virtualization extension is enabled. */
    273271    bool isHWVirtExNestedPagingEnabled() const { return m_fIsHWVirtExNestedPagingEnabled; }
     
    550548    /** @name CPU hardware virtualization features for VM.
    551549     ** @{ */
    552     /** Holds whether CPU hardware virtualization extension is enabled. */
    553     bool m_fIsHWVirtExEnabled;
    554550    /** Holds whether nested-paging CPU hardware virtualization extension is enabled. */
    555551    bool m_fIsHWVirtExNestedPagingEnabled;
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