On Thu, Oct 29, 2026 at 05:09:40AM -0500, Junjie Cao wrote: > Hi Jamin, > > On Wed, Oct 28, 2026 at 03:41:42AM +0000, Jamin Lin wrote: > > xHCI has up to 15 root ports, so it no longer grows a hub on its own. A > > user who wants more ports there adds "-device usb-hub". > > qemu-xhci still defaults to 4 ports. With -M pc-q35-11.1, qemu-xhci and > five HID devices, a build without the series puts a hub on port 4 with > the last two behind it. On v7 the fifth device fails with "no free > ports".
Which is a bad idea to begin with. Just configure xhci to have more ports if 4 is not enough. > Migration from an older QEMU breaks too. That is a problem though. > So for the xhci and ehci patches in v8 the flag needs to be a > property that hw_compat_11_1 keeps on for older machine types. Indeed, auto-hub must be a property so we can have different machine types different defaults (and then only turn it off for new ones). So, if we need a property anyway, I guess it is better to have all usb host adapters behave the same and flip auto-hub to default off for new machines types. It's easy enough to turn it back on via qemu command line if needed. take care, Gerd
