Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 29 Jan 2017 21:55:43 +0000
From:      bugzilla-noreply@freebsd.org
To:        vbox@FreeBSD.org
Subject:   [Bug 216564] emulators/virtualbox-ose: 5.1.14_2 USB passthrough does not work
Message-ID:  <bug-216564-26505-tiqXahxqXv@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-216564-26505@https.bugs.freebsd.org/bugzilla/>
References:  <bug-216564-26505@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D216564

--- Comment #2 from vermaden@interia.pl ---
This is that return value in source.

/usr/ports/obj/usr/ports/emulators/virtualbox-ose/work/VirtualBox-5.1.14/sr=
c %
grep -r VERR_PDM_NO_USB_PORTS .
./VBox/VMM/VMMR3/PDMUsb.cpp: *          VERR_PDM_NO_USB_HUBS or
VERR_PDM_NO_USB_PORTS on failure.
./VBox/VMM/VMMR3/PDMUsb.cpp:    return VERR_PDM_NO_USB_PORTS;

/usr/ports/obj/usr/ports/emulators/virtualbox-ose/work/VirtualBox-5.1.14/sr=
c %
grep -B 30 'return VERR_PDM_NO_USB_PORTS' ./VBox/VMM/VMMR3/PDMUsb.cpp
/**
 * Locates a suitable hub for the specified kind of device.
 *
 * @returns VINF_SUCCESS and *ppHub on success.
 *          VERR_PDM_NO_USB_HUBS or VERR_PDM_NO_USB_PORTS on failure.
 * @param   pVM             The cross context VM structure.
 * @param   iUsbVersion     The USB device version.
 * @param   ppHub           Where to store the pointer to the USB hub.
 */
static int pdmR3UsbFindHub(PVM pVM, uint32_t iUsbVersion, PPDMUSBHUB *ppHub)
{
    *ppHub =3D NULL;
    if (!pVM->pdm.s.pUsbHubs)
        return VERR_PDM_NO_USB_HUBS;

    for (PPDMUSBHUB pCur =3D pVM->pdm.s.pUsbHubs; pCur; pCur =3D pCur->pNex=
t)
        if (pCur->cAvailablePorts > 0)
        {
            /* First check for an exact match. */
            if (pCur->fVersions & iUsbVersion)
            {
                *ppHub =3D pCur;
                break;
            }
            /* For high-speed USB 2.0 devices only, allow USB 1.1 fallback.=
 */
            if ((iUsbVersion & VUSB_STDVER_20) && (pCur->fVersions =3D=3D
VUSB_STDVER_11))
                *ppHub =3D pCur;
        }
    if (*ppHub)
        return VINF_SUCCESS;
    return VERR_PDM_NO_USB_PORTS;

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-216564-26505-tiqXahxqXv>