qemu-irix/hw/usb
Stefan Hajnoczi cd00334f1a usb: fail usbdevice_create() when there is no USB bus
Report an error instead of segfaulting when attaching a USB device to a
machine with no USB busses:

  $ qemu-system-arm -machine vexpress-a9 \
      -sd Fedora-17-armhfp-vexpress-mmcblk0.img \
      -kernel vmlinuz-3.4.2-3.fc17.armv7hl \
      -initrd initramfs-3.4.2-3.fc17.armv7hl.img \
      -usbdevice disk:format=raw:test.img

Note that the vexpress-a9 machine does not have a USB host controller.

Reported-by: David Abdurachmanov <David.Abdurachmanov@cern.ch>
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
(cherry picked from commit c128d6a6d7)

Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
2012-12-03 15:02:28 -06:00
..
Makefile.objs usb: add usb attached scsi emulation 2012-07-12 15:00:39 +02:00
bus.c usb: fail usbdevice_create() when there is no USB bus 2012-12-03 15:02:28 -06:00
core.c usb-core: Allow the first packet of a pipelined ep to complete immediately 2012-10-11 21:44:13 -05:00
desc.c qdev: Use wrapper for qdev_get_path 2012-06-18 15:14:38 +02:00
desc.h usb: add serial number generator 2012-04-26 12:21:17 +02:00
dev-audio.c usb-audio: fix usb version 2012-10-11 21:44:15 -05:00
dev-bluetooth.c Allow machines to configure the QEMU_VERSION that's exposed via hardware 2012-06-19 13:36:56 -05:00
dev-hid.c Allow machines to configure the QEMU_VERSION that's exposed via hardware 2012-06-19 13:36:56 -05:00
dev-hub.c Allow machines to configure the QEMU_VERSION that's exposed via hardware 2012-06-19 13:36:56 -05:00
dev-network.c net: fix usbnet_receive() packet drops 2012-10-11 21:44:18 -05:00
dev-serial.c Better name usb braille device 2012-10-11 21:44:15 -05:00
dev-smartcard-reader.c Allow machines to configure the QEMU_VERSION that's exposed via hardware 2012-06-19 13:36:56 -05:00
dev-storage.c usb-storage: fix SYNCHRONIZE_CACHE 2012-08-07 10:49:06 +02:00
dev-uas.c uas: move transfer kickoff 2012-08-31 15:47:57 +02:00
dev-wacom.c Allow machines to configure the QEMU_VERSION that's exposed via hardware 2012-06-19 13:36:56 -05:00
hcd-ehci.c ehci: Walk async schedule before and after migration 2012-10-11 21:44:17 -05:00
hcd-musb.c usb: unique packet ids 2012-08-31 11:57:23 +02:00
hcd-ohci.c usb: unique packet ids 2012-08-31 11:57:23 +02:00
hcd-uhci.c uhci: Raise interrupt when requested even for non active tds 2012-11-30 15:39:28 -06:00
hcd-xhci.c xhci: fix usb name in caps 2012-11-30 15:57:51 -06:00
host-bsd.c
host-linux.c usb-host: allow emulated (non-async) control requests without USBPacket 2012-10-11 21:44:15 -05:00
host-stub.c
libhw.c usb: Convert usb_packet_{map, unmap} to universal DMA helpers 2012-06-27 16:33:25 -05:00
redirect.c usb-redir: Revert usb-redir part of commit 93bfef4c 2012-10-11 21:44:17 -05:00