VirtualBox

Changeset 101156 in vbox


Ignore:
Timestamp:
Sep 18, 2023 3:28:39 PM (15 months ago)
Author:
vboxsync
Message:

FE/Qt: Moved the Intel AHCI into the x86 platform case + increased the port count to 2 when using virtio-SCSI. bugref:10510

File:
1 edited

Legend:

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

    r101064 r101156  
    373373    }
    374374
    375     /* Limit the AHCI port count if it's used because windows has trouble with
    376        too many ports and other guest (OS X in particular) may take extra long
    377        to boot: */
    378     if (hdStorageControllerType == KStorageControllerType_IntelAhci)
    379         hdCtr.SetPortCount(1 + (dvdStorageControllerType == KStorageControllerType_IntelAhci));
    380     else if (dvdStorageControllerType == KStorageControllerType_IntelAhci)
    381         dvdCtr.SetPortCount(1);
    382 
    383375    KPlatformArchitecture const platformArch = comPlatform.GetArchitecture();
    384376    switch (platformArch)
     
    386378        case KPlatformArchitecture_x86:
    387379        {
     380            /* Limit the AHCI port count if it's used because windows has trouble with
     381               too many ports and other guest (OS X in particular) may take extra long
     382               to boot: */
     383            if (hdStorageControllerType == KStorageControllerType_IntelAhci)
     384                hdCtr.SetPortCount(1 + (dvdStorageControllerType == KStorageControllerType_IntelAhci));
     385            else if (dvdStorageControllerType == KStorageControllerType_IntelAhci)
     386                dvdCtr.SetPortCount(1);
     387
    388388            CPlatformX86 comPlatformX86 = comPlatform.GetX86();
    389389
     
    402402        case KPlatformArchitecture_ARM:
    403403        {
    404             /** @todo BUGBUG ARM stuff goes here. */
     404            /* When using VirtioSCSI as the HDD storage controller and the DVD Drive is on that same controller,
     405             * we have to raise the port count, as VirtioSCSI only configures one port per default. */
     406            if (   hdCtr                                   == dvdCtr
     407                && hdStorageControllerType == KStorageControllerType_VirtioSCSI)
     408                hdCtr.SetPortCount(2);
    405409            break;
    406410        }
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