Statistics
| Branch: | Revision:

root / hw / usb / host-linux.c @ 873123fe

History | View | Annotate | Download (56.4 kB)

# Date Author Comment
c19537a1 08/16/2012 09:39 am Gerd Hoffmann

usb: async control xfer fixup

Need to clear p->result after copying setup data using usb_packet_copy()
because we'll reuse the USBPacket for the data transfer.

Signed-off-by: Gerd Hoffmann <>

c32da151 07/09/2012 12:59 pm Gerd Hoffmann

usb-host: add trace events for iso xfers

Replace iso transfer fprintf's with trace points. Also rename existing
tracepoints so they all match usb_host_iso_*.

Signed-off-by: Gerd Hoffmann <>

19deaa08 07/09/2012 12:59 pm Gerd Hoffmann

usb: split endpoint init and reset

Create a new usb_ep_reset() function to reset endpoint state, without
re-initialiting the queues, so we don't unlink in-flight packets just
because usb-host has to re-parse the descriptor tables.

Signed-off-by: Gerd Hoffmann <>

a844ed84 06/20/2012 03:46 pm Gerd Hoffmann

usb-host: attach only to running guest

Signed-off-by: Gerd Hoffmann <>

a229c053 06/20/2012 03:46 pm Gerd Hoffmann

usb-host: live migration support

Signed-off-by: Gerd Hoffmann <>

a2498f76 05/14/2012 11:22 am Gerd Hoffmann

usb-host: handle guest-issued clear halt

Most important here is to update our internal endpoint state so we know
the endpoint isn't in halted state any more. Without this usb-host
tries to clear halt again with the next data transfer submitted. Doing
this twice is (a) not correct and (b) confuses some usb devices,...

818d59dc 04/26/2012 01:21 pm Gerd Hoffmann

usb-host: don't dereference invalid iovecs

usb-host assumes the first iovec element is always valid.
In case of a zero-length packet this isn't true though.

Signed-off-by: Gerd Hoffmann <>

0b377169 04/26/2012 01:21 pm Gerd Hoffmann

usb-host: fix zero-length packets

usb-host optimizes away zero-length packets by not entering the
processing loop at all. Which isn't correct, we should submit a
zero-length urb to the host devicein that case. This patch makes
sure we run the processing loop at least once....

96dd9aac 04/17/2012 11:23 am Gerd Hoffmann

usb-host: rewrite usb_linux_update_endp_table

This patch carries a complete rewrite of the usb descriptor parser.
Changes / improvements:

  • We are using the USBDescriptor struct instead of hard-coded offsets
    now to access descriptor data.
  • (debug) printfs are all gone, tracepoints have been added instead....
65bb3a5c 04/17/2012 11:23 am Gerd Hoffmann

Add bootindex support to usb-host and usb-redir

When passing through a usb pendrive seabios will present it in the F12
boot menu and will happily boot from it.

This patch adds bootorder support so you can even make it the default
boot device.

Signed-off-by: Gerd Hoffmann <>

e382e751 04/17/2012 11:23 am Gerd Hoffmann

usb-host: trace emulated requests

Add tracepoint to track completion of emulated control requests.

Signed-off-by: Gerd Hoffmann <>

6aebe407 04/17/2012 11:23 am Gerd Hoffmann

usb-host: trace canceled requests

Add tracepoints to track canceled requests.

Signed-off-by: Gerd Hoffmann <>

19b89252 04/17/2012 11:23 am Gerd Hoffmann

usb-host: add usb packet to request tracepoints

Add pointer to USBPacket to all tracepoints tracking requests to make it
easier to identify them when multiple requests are in flight.

Signed-off-by: Gerd Hoffmann <>

39c20577 04/17/2012 11:23 am Gerd Hoffmann

usb-host: add property to turn off pipelining

Add a property to usb-host to disable the bulk endpoint pipelining.

Signed-off-by: Gerd Hoffmann <>

f1ae32a1 03/13/2012 11:15 am Gerd Hoffmann

usb: the big rename

Reorganize usb source files. Create a new hw/usb/ directory and move
all usb source code to that place. Also make filenames a bit more
descriptive. Host adapters are prefixed with "hch-" now, usb device
emulations are prefixed with "dev-". Fixup paths Makefile and include...