VirtualBox

Changeset 26457 in vbox


Ignore:
Timestamp:
Feb 12, 2010 10:55:03 AM (15 years ago)
Author:
vboxsync
Message:

Do not show misleading warnings when VT-x/AMD-V support is not present.

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

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/VBoxConsoleWnd.cpp

    r26217 r26457  
    28982898    {
    28992899        bool ret;
     2900        bool fVTxAMDVSupported = vboxGlobal().virtualBox().GetHost()
     2901                                 .GetProcessorFeature (KProcessorFeature_HWVirtEx);
    29002902
    29012903        vmPause (true);
    29022904
    29032905        if (is64BitsGuest)
    2904             ret = vboxProblem().warnAboutVirtNotEnabled64BitsGuest();
     2906            ret = vboxProblem().warnAboutVirtNotEnabled64BitsGuest(fVTxAMDVSupported);
    29052907        else
    2906             ret = vboxProblem().warnAboutVirtNotEnabledGuestRequired();
     2908            ret = vboxProblem().warnAboutVirtNotEnabledGuestRequired(fVTxAMDVSupported);
    29072909
    29082910        if (ret == true)
  • trunk/src/VBox/Frontends/VirtualBox/src/globals/VBoxProblemReporter.cpp

    r25464 r26457  
    794794}
    795795
    796 bool VBoxProblemReporter::warnAboutVirtNotEnabled64BitsGuest()
    797 {
    798     return messageOkCancel (mainWindowShown(), Error,
    799         tr ("<p>VT-x/AMD-V hardware acceleration has been enabled, but is "
    800             "not operational. Your 64-bit guest will fail to detect a "
    801             "64-bit CPU and will not be able to boot.</p><p>Please ensure "
    802             "that you have enabled VT-x/AMD-V properly in the BIOS of your "
    803             "host computer.</p>"),
    804         0 /* aAutoConfirmId */,
    805         tr ("Close VM"), tr ("Continue"));
    806 }
    807 
    808 bool VBoxProblemReporter::warnAboutVirtNotEnabledGuestRequired()
    809 {
    810     return messageOkCancel (mainWindowShown(), Error,
    811         tr ("<p>VT-x/AMD-V hardware acceleration has been enabled, but is "
    812             "not operational. Certain guests (e.g. OS/2 and QNX) require "
    813             "this feature.</p><p>Please ensure "
    814             "that you have enabled VT-x/AMD-V properly in the BIOS of your "
    815             "host computer.</p>"),
    816         0 /* aAutoConfirmId */,
    817         tr ("Close VM"), tr ("Continue"));
     796bool VBoxProblemReporter::warnAboutVirtNotEnabled64BitsGuest(bool fHWVirtExSupported)
     797{
     798    if (fHWVirtExSupported)
     799        return messageOkCancel (mainWindowShown(), Error,
     800            tr ("<p>VT-x/AMD-V hardware acceleration has been enabled, but is "
     801                "not operational. Your 64-bit guest will fail to detect a "
     802                "64-bit CPU and will not be able to boot.</p><p>Please ensure "
     803                "that you have enabled VT-x/AMD-V properly in the BIOS of your "
     804                "host computer.</p>"),
     805            0 /* aAutoConfirmId */,
     806            tr ("Close VM"), tr ("Continue"));
     807    else
     808        return messageOkCancel (mainWindowShown(), Error,
     809            tr ("<p>VT-x/AMD-V hardware acceleration is not available on your system. "
     810                "Your 64-bit guest will fail to detect a 64-bit CPU and will "
     811                "not be able to boot."),
     812            0 /* aAutoConfirmId */,
     813            tr ("Close VM"), tr ("Continue"));
     814}
     815
     816bool VBoxProblemReporter::warnAboutVirtNotEnabledGuestRequired(bool fHWVirtExSupported)
     817{
     818    if (fHWVirtExSupported)
     819        return messageOkCancel (mainWindowShown(), Error,
     820            tr ("<p>VT-x/AMD-V hardware acceleration has been enabled, but is "
     821                "not operational. Certain guests (e.g. OS/2 and QNX) require "
     822                "this feature.</p><p>Please ensure "
     823                "that you have enabled VT-x/AMD-V properly in the BIOS of your "
     824                "host computer.</p>"),
     825            0 /* aAutoConfirmId */,
     826            tr ("Close VM"), tr ("Continue"));
     827    else
     828        return messageOkCancel (mainWindowShown(), Error,
     829            tr ("<p>VT-x/AMD-V hardware acceleration is not available on your system. "
     830                "Certain guests (e.g. OS/2 and QNX) require this feature and will "
     831                "fail to boot without it.</p>"),
     832            0 /* aAutoConfirmId */,
     833            tr ("Close VM"), tr ("Continue"));
    818834}
    819835
  • trunk/src/VBox/Frontends/VirtualBox/src/globals/VBoxProblemReporter.h

    r25177 r26457  
    207207
    208208    void cannotSendACPIToMachine();
    209     bool warnAboutVirtNotEnabled64BitsGuest();
    210     bool warnAboutVirtNotEnabledGuestRequired();
     209    bool warnAboutVirtNotEnabled64BitsGuest(bool fHWVirtExSupported);
     210    bool warnAboutVirtNotEnabledGuestRequired(bool fHWVirtExSupported);
    211211
    212212    void cannotSetSnapshotFolder (const CMachine &aMachine, const QString &aPath);
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