VirtualBox

Changeset 96639 in vbox


Ignore:
Timestamp:
Sep 7, 2022 5:52:25 PM (2 years ago)
Author:
vboxsync
Message:

FE/Qt: We can skip the long-mode-guest check in UIWizardNewVMNameOSTypeCommon::guessOSTypeFromName now, all hosts are 64-bit guest capable and 64-bit themselves.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/wizards/newvm/UIWizardNewVMNameOSTypePage.cpp

    r96638 r96639  
    269269       it's XP or similar which is predominantly 32-bit: */
    270270    if (!strNewName.contains("32") && !strNewName.contains("64") && !strNewName.contains(gs_Prefer32BitNamePatterns))
    271     {
    272         /** @todo cache this result, no need to re-query it for each keystroke... */
    273         CHost host = uiCommon().host();
    274         bool fSupportsHWVirtEx = host.GetProcessorFeature(KProcessorFeature_HWVirtEx);
    275         bool fSupportsLongMode = host.GetProcessorFeature(KProcessorFeature_LongMode);
    276         strNewName += ARCH_BITS == 64 && fSupportsHWVirtEx && fSupportsLongMode ? "64" : "32";
    277     }
     271        strNewName += ARCH_BITS == 64 ? "64" : "32";
    278272
    279273    /* Search for a matching OS type based on the string the user typed already. */
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