VirtualBox

Changeset 58684 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Nov 13, 2015 10:36:25 AM (9 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
104111
Message:

FE/Qt: enable xHCI for new guests which are supposed to have support for it

File:
1 edited

Legend:

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

    r57039 r58684  
    139139    CUSBDeviceFilters usbDeviceFilters = m_machine.GetUSBDeviceFilters();
    140140    bool fOhciEnabled = false;
    141     if (!usbDeviceFilters.isNull() && type.GetRecommendedUSB() && m_machine.GetUSBProxyAvailable())
     141    if (!usbDeviceFilters.isNull() && type.GetRecommendedUSB3() && m_machine.GetUSBProxyAvailable())
     142    {
     143        /* USB 3.0 is only available if the proper ExtPack is installed. */
     144        CExtPackManager manager = vboxGlobal().virtualBox().GetExtensionPackManager();
     145        if (manager.IsExtPackUsable(GUI_ExtPackName))
     146        {
     147            m_machine.AddUSBController("XHCI", KUSBControllerType_XHCI);
     148            /* xHci includes OHCI */
     149            fOhciEnabled = true;
     150        }
     151    }
     152    if (   !fOhciEnabled
     153        && !usbDeviceFilters.isNull() && type.GetRecommendedUSB() && m_machine.GetUSBProxyAvailable())
    142154    {
    143155        m_machine.AddUSBController("OHCI", KUSBControllerType_OHCI);
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