[Bug 216564] emulators/virtualbox-ose: 5.1.14_2 USB passthrough does not work
bugzilla-noreply at freebsd.org
bugzilla-noreply at freebsd.org
Sun Jan 29 21:55:45 UTC 2017
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=216564
--- Comment #2 from vermaden at interia.pl ---
This is that return value in source.
/usr/ports/obj/usr/ports/emulators/virtualbox-ose/work/VirtualBox-5.1.14/src %
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/src %
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 = NULL;
if (!pVM->pdm.s.pUsbHubs)
return VERR_PDM_NO_USB_HUBS;
for (PPDMUSBHUB pCur = pVM->pdm.s.pUsbHubs; pCur; pCur = pCur->pNext)
if (pCur->cAvailablePorts > 0)
{
/* First check for an exact match. */
if (pCur->fVersions & iUsbVersion)
{
*ppHub = pCur;
break;
}
/* For high-speed USB 2.0 devices only, allow USB 1.1 fallback. */
if ((iUsbVersion & VUSB_STDVER_20) && (pCur->fVersions ==
VUSB_STDVER_11))
*ppHub = pCur;
}
if (*ppHub)
return VINF_SUCCESS;
return VERR_PDM_NO_USB_PORTS;
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the freebsd-emulation
mailing list