crosvm/seccomp/arm
Daniel Verkamp 3bebfa29dc usb: reset backend device on port reset
This enables the full firmware update/reset/use device in application
mode sequence for Edge TPU USB Accelerator.

There is a bit of a UI hiccup: once the firmware update and reset is
complete, the device re-enumerates with a different VID/PID, and the
"Connect to Linux" prompt shows up again.  The user must re-affirm that
the device should be connected to Linux to proceed with using the Edge
TPU.  This may be unavoidable - I'm not sure if we can tell the
difference between a newly-inserted device and a reset one.

Allowing USBDEVFS_DISCONNECT_CLAIM should be safe, since it can only
operate on file descriptors passed into the xhci device jail.

BUG=chromium:831850
TEST=Run Edge TPU Accelerator demo and verify that it can update FW

Change-Id: I3d61c7bd914830ce25448b1ae4d60e1c16f10aed
Signed-off-by: Daniel Verkamp <dverkamp@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/crosvm/+/1599881
Reviewed-by: Zach Reizner <zachr@chromium.org>
Tested-by: kokoro <noreply+kokoro@google.com>
2019-06-05 19:19:10 +00:00
..
9p_device.policy seccomp: refactor policy into common_device.policy 2019-02-07 03:02:12 -08:00
balloon_device.policy seccomp: refactor policy into common_device.policy 2019-02-07 03:02:12 -08:00
block_device.policy seccomp: refactor policy into common_device.policy 2019-02-07 03:02:12 -08:00
common_device.policy crosvm: use seqpacket rather than datagram sockets 2019-02-28 03:24:24 -08:00
cras_audio_device.policy seccomp: refactor policy into common_device.policy 2019-02-07 03:02:12 -08:00
input_device.policy seccomp: refactor policy into common_device.policy 2019-02-07 03:02:12 -08:00
net_device.policy seccomp: refactor policy into common_device.policy 2019-02-07 03:02:12 -08:00
null_audio_device.policy seccomp: refactor policy into common_device.policy 2019-02-07 03:02:12 -08:00
rng_device.policy seccomp: refactor policy into common_device.policy 2019-02-07 03:02:12 -08:00
tpm_device.policy seccomp: tpm: remove fseek syscall from policy 2019-03-14 20:53:40 -07:00
vhost_net_device.policy seccomp: refactor policy into common_device.policy 2019-02-07 03:02:12 -08:00
vhost_vsock_device.policy seccomp: refactor policy into common_device.policy 2019-02-07 03:02:12 -08:00
wl_device.policy seccomp: refactor policy into common_device.policy 2019-02-07 03:02:12 -08:00
xhci.policy usb: reset backend device on port reset 2019-06-05 19:19:10 +00:00