History | View | Annotate | Download (20.1 kB)
usb: split packet result into actual_length + status
Since with the ehci and xhci controllers a single packet can be largerthen maxpacketsize, it is possible for the result of a single packetto be both having transferred some data as well as the transfer to have...
usb-storage: usb3 support
Add usb3 descriptors to usb-storage, so it shows up as superspeeddevice when connected to xhci.
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
usb-storage: improve debug logging
usb-storage: fix SYNCHRONIZE_CACHE
Commit 59310659073d85745854f2f10c4292555c5a1c51 is incomplete,we'll arrive in the scsi command complete callback in CSW stateand must handle that case correctly.
hw/block-common: Factor out fall back to legacy -drive serial=...
Signed-off-by: Markus Armbruster <armbru@redhat.com>Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Allow machines to configure the QEMU_VERSION that's exposed via hardware
QEMU exposes its version to the guest's hardware and in some cases that is wrong(e.g. Windows prints messages about driver updates when you switchthe QEMU version).There is a new field now on the struct QEmuMachine, hw_version, which may...
usb-storage: remove MSDState->residue
We have the field twice, once in MSDState directly and one in the statusword struct. Drop one.
usb-storage: add usb_msd_packet_complete()
Factor out packet completion to a separate function whichcares to get the MSDState->packet update right.
usb-storage: add scsi_off, remove scsi_buf
Repace the running buffer pointer (scsi_buf) with a buffer offsetfield (scsi_off). The later is alot easier to live-migrate.
usb-storage: migration support
With all scsi migration support bits in place thefinal step is pretty simple ;)
qemu-option: qemu_opts_create(): use error_set()
This commit converts qemu_opts_create() from qerror_report() toerror_set().
Currently, most calls to qemu_opts_create() can't fail, so mostcallers don't need any changes.
The two cases where code checks for qemu_opts_create() erros are:...
usb: add serial number generator
This patch adds a function which creates unique serial numbers for usbdevices and puts it into use. Windows guests tend to become unhappy ifthey find two identical usb devices in the system. Effects range fromnon-functional devices (with yellow exclamation mark in device manager)...
usb-storage: fix request canceling
Little fix for usb packet handling on i/o cancelation. Theusb packet pointer (s->packet) is cleared at the wrong place:The scsi request cancel handler does it. When a usb packetis canceled the usb-storage emulation canceles the scsi request...
qdev: qdev_unplug(): use error_set()
It currently uses qerror_report(), but next commit will convertthe drive_del command to the QAPI and this requires usingerror_set().
One particularity of qerror_report() is that it knows when it'srunning on monitor context or command-line context and prints the...
Endian fix an assertion in usb-msd
This fixes a broken endian assumption in an assertion in usb-msd.
Cc: Gerd Hoffman <kraxel@redhat.com>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>Signed-off-by: David Gibson <david@gibson.dropbear.id.au>...
usb: the big rename
Reorganize usb source files. Create a new hw/usb/ directory and moveall usb source code to that place. Also make filenames a bit moredescriptive. Host adapters are prefixed with "hch-" now, usb deviceemulations are prefixed with "dev-". Fixup paths Makefile and include...