VirtualBox

Changeset 49091 in vbox for trunk/src


Ignore:
Timestamp:
Oct 14, 2013 9:15:46 PM (11 years ago)
Author:
vboxsync
Message:

UIWizardNewVM.cpp: Always SetPortCount on AHCI when used, whether it has one or two devices attached. Old code only did it if it was only used for HD, which meant OS X guests got the max port count since they now have both HD and DVD on AHCI.

File:
1 edited

Legend:

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

    r49074 r49091  
    142142        hdCtr = m_machine.GetStorageControllerByName(strHDName);
    143143        hdCtr.SetControllerType(hdStorageControllerType);
    144 
    145         /* Set the port count to 1 if SATA is used. */
    146         if (hdStorageControllerType == KStorageControllerType_IntelAhci)
    147             hdCtr.SetPortCount(1);
    148144    }
    149145    else
     
    153149        strHDName = strDVDName;
    154150    }
     151
     152    /* Liomit the AHCI port count if it's used because windows has trouble with
     153       too many ports and other guest (OS X in particular) may take extra long
     154       to boot: */
     155    if (hdStorageControllerType == KStorageControllerType_IntelAhci)
     156        hdCtr.SetPortCount(1 + (dvdStorageControllerType == KStorageControllerType_IntelAhci));
     157    else if (dvdStorageControllerType == KStorageControllerType_IntelAhci)
     158        dvdCtr.SetPortCount(1);
    155159
    156160    /* Turn on PAE, if recommended: */
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