mirror of
https://chromium.googlesource.com/crosvm/crosvm
synced 2025-02-05 18:20:34 +00:00
1d32cd6312
When a usb device is attached to guest kernel, guest kernel will Try to set the usb configuration to value returned by usb_choose_configuration. Unless the device has multiple configurations and host side set it before attach to guest os, it will be same value as what host kernel would set it during initialization. This would casue a device reset and for Android devices in adb mode it will cause a disconnect and reconnect. Also we should allow user space trying to reset the device by setting device configuration to active configuration. BUG=b:123374026 BUG=b:232272092 TEST=Able to attach Pixel2 and Pixel4 to vm TEST=Run CTS usb device verifer test on both phones TEST=adb from crostini to test phones Change-Id: I0e30aaa1b42a18741a2981e256d2268c1a70c46f Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/crosvm/+/3631026 Reviewed-by: Daniel Verkamp <dverkamp@chromium.org> Commit-Queue: Long Cheng <lgcheng@google.com> Tested-by: kokoro <noreply+kokoro@google.com> |
||
---|---|---|
.. | ||
src | ||
Cargo.toml |