Skip to content

add usb_detach and usb_attach (v2)

Alon Levy qemu-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 8 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3qdev: make qdev_find_recursive publichw/qdev.c hw/qdev.h+2 -10 replies
2/3usb: add public usb_device_by_idhw/usb-bus.c hw/usb.h+17 -03 replies
3/3monitor: add usb_attach and usb_detachhmp-commands.hx sysemu.h vl.c+67 -05 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [Qemu-devel] [PATCH 0/3] add usb_detach and usb_attach (v2)

This patchset uses id like device_del for attaching/detaching usb devices. The first two patches ready the way:
1. makes qdev_find_recursive non static and in qdev.h
2. adds a usb_device_by_id which goes over the usb buses calling qdev_find_recursive
3. adds the commands that use usb_device_by_id

Alon Levy (3):
qdev: make qdev_find_recursive public
usb: add public usb_device_by_id
monitor: add usb_attach and usb_detach

 hmp-commands.hx |   34 ++++++++++++++++++++++++++++++++++
 hw/qdev.c       |    2 +-
 hw/qdev.h       |    1 +
 hw/usb-bus.c    |   16 ++++++++++++++++
 hw/usb.h        |    1 +
 sysemu.h        |    2 ++
 vl.c            |   31 +++++++++++++++++++++++++++++++
 7 files changed, 86 insertions(+), 1 deletions(-)
Signature · 1 line
1.7.3.1