Statistics
| Branch: | Revision:

root / hw / usb @ ed9873bf

Name Size
Makefile.objs 506 Bytes
bus.c 15.6 kB
core.c 20.3 kB
desc.c 18.2 kB
desc.h 6.4 kB
dev-audio.c 23 kB
dev-bluetooth.c 16.7 kB
dev-hid.c 20.2 kB
dev-hub.c 17 kB
dev-network.c 43.1 kB
dev-serial.c 17.1 kB
dev-smartcard-reader.c 41.8 kB
dev-storage.c 18.8 kB
dev-uas.c 21.6 kB
dev-wacom.c 10 kB
hcd-ehci.c 79.1 kB
hcd-musb.c 43.9 kB
hcd-ohci.c 54 kB
hcd-uhci.c 37.8 kB
hcd-xhci.c 84.2 kB
host-bsd.c 17.7 kB
host-linux.c 56.4 kB
host-stub.c 1.9 kB
libhw.c 2.1 kB
redirect.c 48.3 kB

Latest revisions

# Date Author Comment
ed9873bf 09/11/2012 08:43 am Hans de Goede

usb-redir: Don't delay handling of open events to a bottom half

There is no need for this, and doing so means that a backend trying to
write immediately after an open event will see qemu_chr_be_can_write
returning 0, which not all backends handle well as there is no wakeup...

4b63a0df 09/11/2012 08:42 am Hans de Goede

ehci: Properly report completed but not yet processed packets to the guest

Reported packets which have completed before being cancelled as such to the
host. Note that the new code path this patch adds is untested since it I've
been unable to actually trigger the race which needs this code path....

616789cd 09/11/2012 08:42 am Gerd Hoffmann

ehci: check for EHCI_ASYNC_FINISHED first in ehci_free_packet

Otherwise we'll see the packet free twice in the trace log even though
it actually happens only once.

Signed-off-by: Gerd Hoffmann <>

5c514681 09/11/2012 08:42 am Gerd Hoffmann

ehci: trace guest bugs

make qemu_queue_{cancel,reset} return the number of packets released,
so the caller can figure whenever there have been active packets even
though there shouldn't have been any. Add tracepoint to log this.

Signed-off-by: Gerd Hoffmann <>

1defcbd1 09/11/2012 08:42 am Gerd Hoffmann

ehci: add doorbell trace events

Signed-off-by: Gerd Hoffmann <>

3a8ca08e 09/11/2012 08:42 am Hans de Goede

ehci: Add some additional ehci_trace_guest_bug() calls

Signed-off-by: Hans de Goede <>
Signed-off-by: Gerd Hoffmann <>

ef5b2344 09/11/2012 08:42 am Hans de Goede

ehci: Fix memory leak in handling of NAK-ed packets

Currently each time we try to execute a NAK-ed packet we redo
ehci_init_transfer, and usb_packet_map, re-allocing (without freeing) the
sg list every time.

This patch fixes this, it does this by introducing another async state, so...

eff6dce7 09/11/2012 08:42 am Hans de Goede

ehci: Handle USB_RET_PROCERR in ehci_fill_queue

USB_RET_PROCERR can be triggered by the guest (by for example requesting more
then BUFFSIZE bytes), so don't assert on it.

Signed-off-by: Hans de Goede <>
Signed-off-by: Gerd Hoffmann <>

cf1f8169 09/11/2012 08:42 am Hans de Goede

ehci: Correct a comment in fetchqtd packet processing

Since my previous comment said "Should never happen", I tried changing the
next line to an assert(0), which did not go well, which as the new comments
explains is logical if you think about it for a moment....

18113340 09/11/2012 08:42 am Hans de Goede

usb-redir: Never return USB_RET_NAK for async handled packets

USB_RET_NAK is not a valid response for async handled packets (and will
trigger an assert as such).

Also drop the warning when receiving a status of cancelled for packets not
cancelled by qemu itself, this can happen when a device gets unredirected...

View revisions

Also available in: Atom