mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2026-06-07 09:41:30 +00:00
Previous implementation binds libusb (in other words: usbfs) with native device when DM receives the Enable Slot command. But according to xHCI spec 4.6.5, the binding relationship is decided when the Address Device command is received, so this implementation is not consistent with hardware behaviors. And this incompatible could induce following issue. When two or more USB devices are connected at the same time, eg, connecting two devices before Guest OS is booted, the virtual slot id may bind to wrong root hub port. This patch will do the binding when Address Device command is received and related issues will be fixed. Signed-off-by: Xiaoguang Wu <xiaoguang.wu@intel.com> Reviewed-by: Liang Yang <liang3.yang@intel.com> Acked-by: Yu Wang <yu1.wang@intel.com> Tracked-On: #1366