Changeset 19854 in vbox
- Timestamp:
- May 20, 2009 10:55:17 AM (16 years ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/include/VBoxProblemReporter.h
r19117 r19854 202 202 203 203 void cannotSendACPIToMachine(); 204 bool warnAboutVirtNotEnabled(); 204 bool warnAboutVirtNotEnabled64BitsGuest(); 205 bool warnAboutVirtNotEnabledGuestRequired(); 205 206 206 207 void cannotSetSnapshotFolder (const CMachine &aMachine, const QString &aPath); -
trunk/src/VBox/Frontends/VirtualBox/src/VBoxConsoleWnd.cpp
r19684 r19854 2152 2152 CConsole cconsole = console->console(); 2153 2153 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 2160 2165 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) 2162 2173 close(); 2163 2174 else -
trunk/src/VBox/Frontends/VirtualBox/src/VBoxProblemReporter.cpp
r19223 r19854 748 748 } 749 749 750 bool VBoxProblemReporter::warnAboutVirtNotEnabled ()750 bool VBoxProblemReporter::warnAboutVirtNotEnabled64BitsGuest() 751 751 { 752 752 return messageOkCancel (mainWindowShown(), Error, … … 754 754 "not operational. Your 64-bit guest will fail to detect a " 755 755 "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 762 bool 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 " 756 768 "that you have enabled VT-x/AMD-V properly in the BIOS of your " 757 769 "host computer.</p>"),
Note:
See TracChangeset
for help on using the changeset viewer.