qemu-e2k/hw/usb
Kevin Wolf 8daea51095 block/qdev: Allow node name for drive properties
If a node name instead of a BlockBackend name is specified as the driver
for a guest device, an anonymous BlockBackend is created now.

The order of operations in release_drive() must be reversed in order to
avoid a use-after-free bug because now blk_detach_dev() frees the last
reference if an anonymous BlockBackend is used.

usb-storage uses a hack where it forwards its BlockBackend as a property
to another device that it internally creates. This hack must be updated
so that it doesn't drop its original BB before it can be passed to the
other device. This used to work because we always had the monitor
reference around, but with node-names the device reference is the only
one now.

Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Reviewed-by: Max Reitz <mreitz@redhat.com>
2016-07-13 13:28:00 +02:00
..
bus.c usb: Add QOM property "attached". 2016-06-22 12:53:26 +02:00
ccid-card-emulated.c
ccid-card-passthru.c
ccid.h
combined-packet.c
core.c
desc-msos.c
desc.c
desc.h
dev-audio.c
dev-bluetooth.c
dev-hid.c
dev-hub.c
dev-mtp.c
dev-network.c hw/usb/dev-network.c: Use ldl_le_p() and stl_le_p() 2016-06-13 13:18:51 +02:00
dev-serial.c
dev-smartcard-reader.c
dev-storage.c block/qdev: Allow node name for drive properties 2016-07-13 13:28:00 +02:00
dev-uas.c usb-uas: hotplug support 2016-06-22 12:53:26 +02:00
dev-wacom.c
hcd-ehci-pci.c
hcd-ehci-sysbus.c
hcd-ehci.c
hcd-ehci.h Clean up header guards that don't match their file name 2016-07-12 16:19:16 +02:00
hcd-musb.c
hcd-ohci.c
hcd-uhci.c
hcd-xhci.c nec-usb-xhci: set the device state to USB_STATE_DEFAULT 2016-07-12 10:23:59 +02:00
host-legacy.c
host-libusb.c usb-host: add special case for bus+addr 2016-06-13 13:17:06 +02:00
host-stub.c
host.h
libhw.c
Makefile.objs
quirks-ftdi-ids.h
quirks-pl2303-ids.h
quirks.c
quirks.h
redirect.c usb: Use DIV_ROUND_UP 2016-06-07 18:19:25 +03:00
trace-events trace: split out trace events for hw/usb/ directory 2016-06-20 17:22:15 +01:00
tusb6010.c
xen-usb.c Use #include "..." for our own headers, <...> for others 2016-07-12 16:19:16 +02:00