qemu 或者 vmware 为啥不能把 usb hub 直接通进去是单独的 usb 设备呢? #31
Unanswered
zevorn
asked this question in
QEMU | Q&A
Replies: 1 comment
-
USB 应该没法做真正意义上直通,数据是分散的。 虚拟机一般是先把 USB 设备(例如摄像头)原本的驱动替换成自己的驱动。然后通过这个驱动透传 USB 的控制命令和响应来做的。有些 USB 设备时序要求严格的就容易出问题。 usb device -> usb hub -> ->usb controller ->cpu, usb device到usb controller之间走usb协议,usb controller是pcie device,走 pcie 与 CPU 沟通,设备直通只能通 usb controller 。 可以选择把 usb controller 直通进去,这样虚拟机就能用宿主机的 usb 端口了(有群友试过,雷电没问题)。 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
qemu 或者 vmware 为啥不能把 usb hub 直接通进去是单独的 usb 设备呢?因为有时候会调 hub 就得换到真机上,所以就疑惑了下。
Beta Was this translation helpful? Give feedback.
All reactions