VirtualBox

Changeset 19854 in vbox


Ignore:
Timestamp:
May 20, 2009 10:55:17 AM (16 years ago)
Author:
vboxsync
Message:

Show warning about non-functional VT-x/AMD-V for guest that require it

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

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/include/VBoxProblemReporter.h

    r19117 r19854  
    202202
    203203    void cannotSendACPIToMachine();
    204     bool warnAboutVirtNotEnabled();
     204    bool warnAboutVirtNotEnabled64BitsGuest();
     205    bool warnAboutVirtNotEnabledGuestRequired();
    205206
    206207    void cannotSetSnapshotFolder (const CMachine &aMachine, const QString &aPath);
  • trunk/src/VBox/Frontends/VirtualBox/src/VBoxConsoleWnd.cpp

    r19684 r19854  
    21522152    CConsole cconsole = console->console();
    21532153
    2154     /* Check if virtualization feature enabled for 64 bits guest */
    2155     bool is64BitsGuest = vboxGlobal().virtualBox().GetGuestOSType (
    2156                          cconsole.GetGuest().GetOSTypeId()).GetIs64Bit();
    2157     bool isVirtEnabled = cconsole.GetDebugger().GetHWVirtExEnabled();
    2158     if (is64BitsGuest && !isVirtEnabled)
    2159     {
     2154    /* Check if the virtualization feature is required. */
     2155    bool is64BitsGuest    = vboxGlobal().virtualBox().GetGuestOSType (
     2156                            cconsole.GetGuest().GetOSTypeId()).GetIs64Bit();
     2157    bool fRecommendVirtEx = vboxGlobal().virtualBox().GetGuestOSType (
     2158                            cconsole.GetGuest().GetOSTypeId()).GetRecommendedVirtEx();
     2159    Assert(!is64BitsGuest || fRecommendVirtEx);
     2160    bool isVirtEnabled    = cconsole.GetDebugger().GetHWVirtExEnabled();
     2161    if (fRecommendVirtEx && !isVirtEnabled)
     2162    {
     2163        bool ret;
     2164
    21602165        vmPause (true);
    2161         if (vboxProblem().warnAboutVirtNotEnabled())
     2166
     2167        if (is64BitsGuest)
     2168            ret = vboxProblem().warnAboutVirtNotEnabled64BitsGuest();
     2169        else
     2170            ret = vboxProblem().warnAboutVirtNotEnabledGuestRequired();
     2171
     2172        if (ret == true)
    21622173            close();
    21632174        else
  • trunk/src/VBox/Frontends/VirtualBox/src/VBoxProblemReporter.cpp

    r19223 r19854  
    748748}
    749749
    750 bool VBoxProblemReporter::warnAboutVirtNotEnabled()
     750bool VBoxProblemReporter::warnAboutVirtNotEnabled64BitsGuest()
    751751{
    752752    return messageOkCancel (mainWindowShown(), Error,
     
    754754            "not operational. Your 64-bit guest will fail to detect a "
    755755            "64-bit CPU and will not be able to boot.</p><p>Please ensure "
     756            "that you have enabled VT-x/AMD-V properly in the BIOS of your "
     757            "host computer.</p>"),
     758        0 /* aAutoConfirmId */,
     759        tr ("Close VM"), tr ("Continue"));
     760}
     761
     762bool VBoxProblemReporter::warnAboutVirtNotEnabledGuestRequired()
     763{
     764    return messageOkCancel (mainWindowShown(), Error,
     765        tr ("<p>VT-x/AMD-V hardware acceleration has been enabled, but is "
     766            "not operational. Certain guests (e.g. OS/2 and QNX) require "
     767            "this feature.</p><p>Please ensure "
    756768            "that you have enabled VT-x/AMD-V properly in the BIOS of your "
    757769            "host computer.</p>"),
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