VirtualBox

Changeset 20285 in vbox


Ignore:
Timestamp:
Jun 4, 2009 1:56:13 PM (16 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
48168
Message:

FE/Qt4 & Guest SMP: Disallow 64 bits SMP guests on 32 bits hosts - Implemented.

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

Legend:

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

    r19837 r20285  
    3838
    3939    bool isHWVirtExEnabled() const;
     40    int cpuCount() const;
    4041
    4142signals:
  • trunk/src/VBox/Frontends/VirtualBox/src/VBoxSettingsDialogSpecific.cpp

    r19877 r20285  
    526526     * different pages of VM Settings dialog */
    527527
    528     /* Guest OS type & VT-x/AMD-V option correlation test */
    529528    if (aPage == mSelector->idToPage (GeneralId) ||
    530529        aPage == mSelector->idToPage (SystemId))
     
    535534            qobject_cast <VBoxVMSettingsSystem*> (mSelector->idToPage (SystemId));
    536535
     536        /* Guest OS type & VT-x/AMD-V option correlation test */
    537537        if (generalPage && systemPage &&
    538538            generalPage->is64BitOSTypeSelected() && !systemPage->isHWVirtExEnabled())
    539539        {
    540540            aWarning = tr (
    541                 "there is a 64 bits guest OS type assigned for this VM, which "
     541                "there is a 64-bit guest OS type assigned for this VM, which "
    542542                "requires virtualization feature (VT-x/AMD-V) to be enabled "
    543                 "too, else your guest will fail to detect a 64 bits CPU and "
     543                "too, else your guest will fail to detect a 64-bit CPU and "
    544544                "will not be able to boot, so this feature will be enabled "
    545545                "automatically when you'll accept VM Settings by pressing OK "
     
    547547            return true;
    548548        }
     549
     550#ifndef Q_WS_MAC
     551        /* Guest OS bitness & SMP slider correlation test */
     552        if (ARCH_BITS == 32 && generalPage && systemPage &&
     553            generalPage->is64BitOSTypeSelected() && systemPage->cpuCount() > 1)
     554        {
     555            aWarning = tr (
     556                "there is a 64-bit guest OS type selected for this VM. "
     557                "VirtualBox does currently not support more than one virtual CPU "
     558                "for 64-bit guests executed on 32-bit hosts.");
     559            return false;
     560        }
     561#endif
    549562    }
    550563
  • trunk/src/VBox/Frontends/VirtualBox/src/VBoxVMSettingsSystem.cpp

    r19864 r20285  
    128128{
    129129    return mCbVirt->isChecked();
     130}
     131
     132int VBoxVMSettingsSystem::cpuCount() const
     133{
     134    return mSlCPU->value();
    130135}
    131136
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette