VirtualBox

Changeset 50310 in vbox for trunk


Ignore:
Timestamp:
Feb 3, 2014 3:11:24 PM (11 years ago)
Author:
vboxsync
Message:

FE/Qt: 6713: Fix to r91875: More strict check for 64bit guest OS type support.

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

Legend:

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

    r50253 r50310  
    198198    {
    199199        QString strDefaultID = "WindowsXP";
    200         if (ARCH_BITS == 64)
     200        if (m_fSupportsHWVirtEx && m_fSupportsLongMode)
    201201            strDefaultID += "_64";
    202202        int iIndexWinXP = m_pTypeCombo->findData(strDefaultID, TypeID);
     
    208208    {
    209209        QString strDefaultID = "Ubuntu";
    210         if (ARCH_BITS == 64)
     210        if (m_fSupportsHWVirtEx && m_fSupportsLongMode)
    211211            strDefaultID += "_64";
    212212        int iIndexUbuntu = m_pTypeCombo->findData(strDefaultID, TypeID);
  • trunk/src/VBox/Frontends/VirtualBox/src/wizards/newvm/UIWizardNewVMPageBasic1.cpp

    r50253 r50310  
    3333/* COM includes: */
    3434#include "CSystemProperties.h"
    35 
    36 /* Other VBox includes: */
    37 #include <iprt/system.h>
    3835
    3936/* Defines some patterns to guess the right OS type. Should be in sync with
     
    163160    : m_strGroup(strGroup)
    164161{
     162    CHost host = vboxGlobal().host();
     163    m_fSupportsHWVirtEx = host.GetProcessorFeature(KProcessorFeature_HWVirtEx);
     164    m_fSupportsLongMode = host.GetProcessorFeature(KProcessorFeature_LongMode);
    165165}
    166166
     
    168168{
    169169    /* Do not forget about achitecture bits: */
    170     strNewName += QString::number(ARCH_BITS);
     170    strNewName += m_fSupportsHWVirtEx && m_fSupportsLongMode ? "64" : "32";
    171171
    172172    /* Search for a matching OS type based on the string the user typed already. */
  • trunk/src/VBox/Frontends/VirtualBox/src/wizards/newvm/UIWizardNewVMPageBasic1.h

    r50253 r50310  
    6161    /* Variables: */
    6262    QString m_strGroup;
     63    bool m_fSupportsHWVirtEx;
     64    bool m_fSupportsLongMode;
    6365};
    6466
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