On Tue, 2017-07-18 at 13:51 +0200, Paul Menzel wrote:
Dear Gerd,
On 07/18/17 13:36, Gerd Hoffmann wrote:
xhci controllers have two virtual ports per (usb3 capable) physical port, one for usb2 and one for usb3 devices. Add a hub portmap callback to map the virtual ports to physical ports. For now assume we simply have the same number of usb2 and usb3 ports.
How can the change be tested? Do you have some QEMU command?
The qemu xhci controller has the virtual usb3 ports first, then the usb2 ports. So this problem shows up when you try to boot from usb2 storage devices, because for the usb2 ports the virtual port numbering differs from the physical port numbering. Typically happens when you pass-through usb2 sticks (via -device usb-host) and try to boot from them. The emulated usb-storage works fine as it has usb3 support.
cheers, Gerd