Statistics
| Branch: | Revision:

root / hw / usb @ 16665b94

# Date Author Comment
16665b94 03/27/2013 05:26 pm Hans de Goede

qemu-char: Rename opened to be_open

Rename the opened variable to be_open to reflect that it contains the
opened state of the backend.

Signed-off-by: Hans de Goede <>
Message-id:
Signed-off-by: Anthony Liguori <>

6214e73c 03/26/2013 09:02 pm Alex Williamson

pcie: Add endpoint capability initialization wrapper

Fix the awkward API of mangling the caller specified PCIe type and
just provide an interface to initialize an endpoint device. This
will pick either a regular endpoint or integrated endpoint based on
the bus and return pcie_cap_init to doing exactly what is asked....

b4a42f81 03/01/2013 02:54 pm Paolo Bonzini

hw: move qdev-monitor.o to toplevel directory

qdev-monitor.c is the only "core qdev" file that is not used in
user-mode emulation, and it does not define anything that is used
by hardware models. Remove it from the hw/ directory and
remove hw/qdev-monitor.h from hw/qdev.h too; this requires...

685cbd2f 02/23/2013 11:39 am Hervé Poussineau

xhci: fix bad print specifier

This fixes the following compilation error:
hw/usb/hcd-xhci.c:1156:17: error: format ‘%llx’ expects argument of type
‘long long unsigned int’, but argument 4 has type ‘unsigned int’

Signed-off-by: Hervé Poussineau <>...

82fb0c89 02/22/2013 05:53 pm Gerd Hoffmann

unbreak hw/usb/redirect.c build

Commit 8550a02d1239415342959f6a32d178bc05c557cc added a streams
parameter to usb_wakeup and didn't update redirect.c. Fix it.

Signed-off-by: Gerd Hoffmann <>
Signed-off-by: Anthony Liguori <>

89a453d4 02/19/2013 02:18 pm Gerd Hoffmann

uas-uas: usb3 streams

Add usb3 streams support to the uas (usb attached scsi) emulation.

Signed-off-by: Gerd Hoffmann <>

024426ac 02/19/2013 02:17 pm Gerd Hoffmann

usb-xhci: usb3 streams

Add streams support to the xhci emulation. No secondary streams yet,
only linear stream arays are supported for now.

Signed-off-by: Gerd Hoffmann <>

4075975d 02/19/2013 01:30 pm Gerd Hoffmann

usb-host: move legacy cmd line bits

The code handling the "-usbdevice host:..." legacy command line
syntax is moved to the new hw/usb/host-legacy.c file.

Signed-off-by: Gerd Hoffmann <>

1a3973b3 02/19/2013 01:30 pm Gerd Hoffmann

usb-host: remove usb_host_device_close

Nobody implements that anyway.

Signed-off-by: Gerd Hoffmann <>

e382d966 02/19/2013 01:30 pm Gerd Hoffmann

usb: add usb_ep_set_halted

Signed-off-by: Gerd Hoffmann <>

6a98d1c0 02/19/2013 01:30 pm Gerd Hoffmann

usb: make usb_packet_copy operate on combined packets

Likewise usb_packet_skip.
Also usb_packet_size.

Signed-off-by: Gerd Hoffmann <>

6ef3ccd1 02/19/2013 01:30 pm Gerd Hoffmann

usb-redir: simplify packet copy

usb_packet_copy can handle combined packets now,
so it isn't needed to special-case them any more.

Also use the new usb_packet_size() function.

Signed-off-by: Gerd Hoffmann <>

2e5df36d 02/19/2013 01:30 pm Gerd Hoffmann

usb: fix endpoint descriptor ordering

Fix the ordering of the endpoint descriptors for superspeed endpoints:
The superspeed companion must come first, possible additional
descriptors for the endpoint after that.

Signed-off-by: Gerd Hoffmann <>

8550a02d 02/19/2013 01:30 pm Gerd Hoffmann

usb-core: usb3 streams

This patch adds support for usb3 streams to the usb subsystem core.
This is just adding a streams field / parameter in a number of places.

Signed-off-by: Gerd Hoffmann <>

07d17e77 02/19/2013 01:30 pm Gerd Hoffmann

allow disabling usb smartcard support

Signed-off-by: Gerd Hoffmann <>

9db7c414 02/19/2013 01:30 pm Gerd Hoffmann

usb-storage: use scsi_req_enqueue return value

Signed-off-by: Gerd Hoffmann <>

6c83f815 02/19/2013 01:28 pm Gerd Hoffmann

make usb devices configurable

Leave the core usb devices (usb hub, tablet, mouse, keyboard)
enabled unconditionally. Make the other ones configurable.

Exceptions:
- bluetooth: not qdevified yet, has a vl.c dependency because
of that, thus disabling isn't as easy as not linking the...

62162fff 02/19/2013 10:51 am Gerd Hoffmann

usb: Makefile cleanup

Group files, sprinkle in some comments.

Signed-off-by: Gerd Hoffmann <>

948ecf21 02/01/2013 07:03 pm Jason Wang

net: intorduce qemu_del_nic()

To support multiqueue nic, this patch separate the nic destructor from
qemu_del_net_client() to a new helper qemu_del_nic() since the mapping bettween
NiCState and NetClientState were not 1:1 in multiqueue. The following patches...

cc1f0f45 02/01/2013 07:03 pm Jason Wang

net: introduce qemu_get_nic()

To support multiqueue, this patch introduces a helper qemu_get_nic() to get
NICState from a NetClientState. The following patches would refactor this helper
to support multiqueue.

Signed-off-by: Jason Wang <>...

b356f76d 02/01/2013 07:02 pm Jason Wang

net: introduce qemu_get_queue()

To support multiqueue, the patch introduce a helper qemu_get_queue()
which is used to get the NetClientState of a device. The following patches would
refactor this helper to support multiqueue.

Signed-off-by: Jason Wang <>...

7fa96d73 01/22/2013 12:09 pm Gerd Hoffmann

ohci: add missing break

Signed-off-by: Gerd Hoffmann <>

34707333 01/22/2013 12:09 pm Gerd Hoffmann

usb: add usb-bot device (scsi bulk-only transport).

Basically the same as usb-storage, but without automatic scsi
device setup. Also features support for up to 16 LUNs.

Signed-off-by: Gerd Hoffmann <>

f4c0e501 01/22/2013 12:01 pm Gerd Hoffmann

Revert "usb-storage: Drop useless null test in usb_msd_handle_data()"

This reverts commit a1cbfd554e11bb8af38c2f3e1f1574bf4c563cd2.

Test isn't useless. scsi_req_enqueue() may finish the request (will
actually happen for requests which don't trigger any I/O such as...

c1db2919 01/19/2013 12:30 pm Stefan Weil

usb: Fix compilation for MinGW (regression)

84f2d0ea added an argument to function usb_host_info.
The stub function must match the declaration in usb.h.

Signed-off-by: Stefan Weil <>
Signed-off-by: Blue Swirl <>

84f2d0ea 01/17/2013 02:24 pm Wenchao Xia

HMP: add QDict to info callback handler

This patch change all info call back function to take
additional QDict * parameter, which allow those command
take parameter. Now it is set to NULL at default case.

Signed-off-by: Wenchao Xia <>...

a1cbfd55 01/16/2013 08:03 pm Markus Armbruster

usb-storage: Drop useless null test in usb_msd_handle_data()

scsi_req_new() never returns null, and scsi_req_enqueue() dereferences
the pointer, so checking for null is useless.

Spotted by Coverity.

Signed-off-by: Markus Armbruster <>
Signed-off-by: Anthony Liguori <>

b55160c3 01/14/2013 06:27 pm Anthony Liguori

Merge remote-tracking branch 'kraxel/usb.76' into staging

  • kraxel/usb.76:
    usb-host: Initialize dev->port the obviously safe way
    usb-host: Drop superfluous null test from usb_host_auto_scan()
    ehci: Assert state machine is sane w.r.t. EHCIQueue
    xhci: nuke transfe5rs on detach...
cc8d2b65 01/14/2013 01:47 pm Markus Armbruster

ehci: Assert state machine is sane w.r.t. EHCIQueue

Coverity worries the EHCIQueue pointer could be null when we pass it
to functions that reference it. The state machine ensures it can't be
null then. Assert that, to hush the checker.

Signed-off-by: Markus Armbruster <>...

46635308 01/14/2013 01:47 pm Markus Armbruster

usb-host: Drop superfluous null test from usb_host_auto_scan()

Coverity points out that port is later passed to usb_host_open(),
which dereferences it. It actually can't be null: it always points to
usb_host_scan()'s auto port[]. Drop the superfluous port == NULL...

03607847 01/14/2013 01:47 pm Markus Armbruster

usb-host: Initialize dev->port the obviously safe way

Coverity worries the strcpy() could overrun the destination. It
can't, because the source always points to usb_host_scan()'s auto
port[], which has the same size. Use pstrcpy() anyway, to hush the
checker....

81251841 01/14/2013 09:59 am Gerd Hoffmann

xhci: create xhci_detach_slot helper function

Signed-off-by: Gerd Hoffmann <>

f3dcf638 01/14/2013 09:59 am Gerd Hoffmann

xhci: call xhci_detach_slot on root port detach too

Signed-off-by: Gerd Hoffmann <>

0cb41e2c 01/14/2013 09:59 am Gerd Hoffmann

xhci: nuke transfe5rs on detach

Signed-off-by: Gerd Hoffmann <>

afd347ab 01/12/2013 06:19 pm Paolo Bonzini

build: remove CONFIG_SMARTCARD

The passthru smartcard does not have the shared library dependency, build
it unconditionally.

Signed-off-by: Paolo Bonzini <>

8c43a6f0 01/10/2013 11:11 pm Andreas Färber

Make all static TypeInfos const

Since 39bffca2030950ef6efe57c2fac8327a45ae1015 (qdev: register all
types natively through QEMU Object Model), TypeInfo as used in
the common, non-iterative pattern is no longer amended with information
and should therefore be const....

b2d1fe67 01/08/2013 11:56 am Hans de Goede

usbredir: Add support for buffered bulk input (v2)

Buffered bulk mode is intended for bulk input endpoints, where the data is
of a streaming nature (not part of a command-response protocol). These
endpoints' input buffer may overflow if data is not read quickly enough....

89eb147c 01/08/2013 11:56 am Gerd Hoffmann

uhci: stop using portio lists

Signed-off-by: Gerd Hoffmann <>

719c130d 01/07/2013 01:57 pm Hans de Goede

uhci: Fix 1 ms delay in interrupt reporting to the guest

Re-arrange how we process frames / increase frnum / report pending interrupts,
to avoid a 1 ms delay in interrupt reporting to the guest. This increases
the packet throughput for cases where the guest submits a single packet,...

ecfdc15f 01/07/2013 01:57 pm Hans de Goede

uhci: Fix pending interrupts getting lost on migration

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

475443cf 01/07/2013 01:57 pm Hans de Goede

uhci: Add a QH_VALID define

Rather then using the magic 32 value in various places.

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

f8f48b69 01/07/2013 01:57 pm Hans de Goede

uhci: Limit amount of frames processed in one go

Before this patch uhci would process an unlimited amount of frames when
behind on schedule, by setting the timer to a time already past, causing the
timer subsys to immediately recall the frame_timer function gain....

9fdf7027 01/07/2013 01:57 pm Hans de Goede

uhci: Maximize how many frames we catch up when behind

If somehow we've gotten behind a lot, simply skip ahead, like the ehci code
does.

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

027c03f7 01/07/2013 01:57 pm Hans de Goede

hid: Change idle handling to use a timer

This leads to cleaner code in usb-hid, and removes up to a 1000 calls / sec to
qemu_get_clock_ns(vm_clock) if idle-time is set to its default value of 0.

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

6735d433 01/07/2013 01:57 pm Hans de Goede

usb: Fix usb_ep_find_packet_by_id

usb_ep_find_packet_by_id mistakenly only checks the first packet and if that
is not a match, keeps trying the first packet! This patch fixes this.

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

f79738b0 01/07/2013 01:57 pm Hans de Goede

usb: Add an usb_device_ep_stopped USBDevice method

Some usb devices (host or network redirection) can benefit from knowing when
the guest stops using an endpoint. Redirection may involve submitting packets
independently from the guest (in combination with a fifo buffer between the...

f8c126f3 01/07/2013 01:57 pm Hans de Goede

usbredir: Add an usbredir_stop_ep helper function

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

7e9638d3 01/07/2013 01:57 pm Hans de Goede

usbredir: Add USBEP2I and I2USBEP helper macros

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

d8553dd0 01/07/2013 01:57 pm Hans de Goede

usbredir: Add ep_stopped USBDevice method

To ensure that interrupt receiving is properly stopped when the guest is
no longer interested in an interrupt endpoint.

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

d3aea641 01/07/2013 01:57 pm Hans de Goede

usbredir: Verify we have 32 bits bulk length cap when redirecting to xhci

The xhci-hcd may submit bulk transfers > 65535 bytes even when not using
bulk-in pipeling, so usbredir can only be used in combination with an xhci
hcd if the client has the 32 bits bulk length capability....

bd019b73 01/07/2013 01:57 pm Hans de Goede

usbredir: Add usbredir_init_endpoints() helper

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

e97f0aca 01/07/2013 01:57 pm Hans de Goede

usb-redir: Add debugging to bufpq save / restore

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

a820b575 01/07/2013 01:57 pm Gerd Hoffmann

xhci: call set-address with dummy usbpacket

Due to the way devices are addressed with xhci (done by hardware, not
the guest os) there is no packet when invoking the set-address control
request. Create a dummy packet in that case to avoid null pointer
dereferences....

5aa3ca9f 01/07/2013 01:57 pm Andreas Färber

usb/ehci: Clean up SysBus and PCI EHCI split

SysBus EHCI was introduced in a hurry before 1.3 Soft Freeze.
To use QOM casts in place of DO_UPCAST() / FROM_SYSBUS(), we need an
identifying type. Introduce generic abstract base types for PCI and
SysBus EHCI to allow multiple types to access the shared fields....

4a434367 01/07/2013 01:57 pm Andreas Färber

usb/ehci: Move capsbase and opregbase into SysBus EHCI class

This allows specific derived models to use different values.

Signed-off-by: Andreas Färber <>
Signed-off-by: Gerd Hoffmann <>

aee7499a 01/07/2013 01:57 pm Andreas Färber

usb/ehci: Add SysBus EHCI device for Exynos4210

It uses a different capsbase and opregbase than the Xilinx device.

Signed-off-by: Liming Wang <>
Signed-off-by: Andreas Färber <>
Cc: Igor Mitsyanko <>...

f881c8d3 01/07/2013 01:57 pm Hans de Goede

ehci: Add a ehci_writeback_async_complete_packet helper function

Also drop the warning printf, which was there mainly because this was an
untested code path (as the previous bug fixes to it show), but that no
longer is the case now :)

Signed-off-by: Hans de Goede <>...

c6432634 01/07/2013 01:57 pm Hans de Goede

ehci: Add ehci_verify_qh and ehci_verify_qtd helper functions

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

d066c57b 01/07/2013 01:57 pm Hans de Goede

ehci: Verify guest does not change the token of inflight qtd-s

This is not allowed, except for clearing active on cancellation, so don't
warn when the new token does not have its active bit set.

This unifies the cancellation path for modified qtd-s, and prepares...

190d8492 01/07/2013 01:57 pm Hans de Goede

ehci: Move get / put_dwords upwards

No other changes.

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

2b3de6ad 01/07/2013 01:57 pm Hans de Goede

ehci: writeback_async_complete_packet: verify qh and qtd

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

e3fdfd48 01/07/2013 01:57 pm Hans de Goede

ehci: Verify qtd for async completed packets

Remove the short-circuiting of fetchqtd in fetchqh, so that the
qtd gets properly verified before completing the transaction.

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

51e0c5d0 01/07/2013 01:57 pm Hans de Goede

ehci: Add an ehci_get_pid helper function

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

bbbc39cc 01/07/2013 01:57 pm Hans de Goede

ehci: Verify a queue's ep direction does not change

ehci_fill_queue assumes that there is a one on one relationship between an ep
and a qh, this patch adds a check to ensure this.

Note I don't expect this to ever trigger, this is just something I noticed...

9359a58b 01/07/2013 01:57 pm Hans de Goede

ehci: Use uframe precision for interrupt threshold checking (v2)

Before this patch, the following could happen:
1) Transfer completes, raises interrupt
2) .5 ms later we check if the guest has queued up any new transfers
3) We find and execute a new transfer...

52c15e59 01/07/2013 01:57 pm Hans de Goede

ehci: Further speedup rescanning if async schedule after raising an interrupt

I tried lowering the time between raising an interrupt and rescanning the
async schedule to see if the guest has queued a new transfer before, but
that did not have any positive effect. I now believe the cause for this is...

4a9ef2c0 01/07/2013 01:57 pm Hans de Goede

ehci: Don't call commit_irq after raising PCD

ehci_raise_irq(s, USBSTS_PCD), gets applied immediately so there is no need
to call commit_irq after it.

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

62054c06 12/28/2012 06:09 pm Alon Levy

usb/redirect.c: unbreak compilation due to include/char/char.h

Broken since:

commit 927d4878b0ff319ed87fed9363f314613b0a5ed9
Author: Paolo Bonzini <>
Date: Mon Dec 17 18:20:05 2012 +0100

softmmu: move remaining include files to include/ subdirectories...
927d4878 12/19/2012 09:32 am Paolo Bonzini

softmmu: move remaining include files to include/ subdirectories

Signed-off-by: Paolo Bonzini <>

9c17d615 12/19/2012 09:32 am Paolo Bonzini

softmmu: move include files to include/sysemu/

Signed-off-by: Paolo Bonzini <>

1de7afc9 12/19/2012 09:32 am Paolo Bonzini

misc: move include files to include/qemu/

Signed-off-by: Paolo Bonzini <>

83c9089e 12/19/2012 09:31 am Paolo Bonzini

monitor: move include files to include/monitor/

Signed-off-by: Paolo Bonzini <>

cb9c377f 12/19/2012 09:31 am Paolo Bonzini

janitor: add guards to headers

Signed-off-by: Paolo Bonzini <>

022c62cb 12/19/2012 09:31 am Paolo Bonzini

exec: move include files to include/exec/

Signed-off-by: Paolo Bonzini <>

28ecbaee 12/19/2012 09:31 am Paolo Bonzini

ui: move files to ui/ and include/ui/

Signed-off-by: Paolo Bonzini <>

1422e32d 12/19/2012 09:31 am Paolo Bonzini

net: reorganize headers

Move public headers to include/net, and leave private headers in net/.
Put the virtio headers in include/net/tap.h, removing the multiple copies
that existed. Leave include/net/tap.h as the interface for NICs, and
net/tap_int.h as the interface for OS-specific parts of the tap backend....

090f7ac5 12/19/2012 09:29 am Paolo Bonzini

net: move Bluetooth stuff out of net.h

Signed-off-by: Paolo Bonzini <>

077805fa 12/19/2012 09:29 am Paolo Bonzini

janitor: do not rely on indirect inclusions of or from qemu-char.h

Various header files rely on qemu-char.h including qemu-config.h or
main-loop.h, but they really do not need qemu-char.h at all (particularly
interesting is the case of the block layer!). Clean this up, and also...

a2cb15b0 12/17/2012 01:02 pm Michael S. Tsirkin

pci: update all users to look in pci/

update all users so we can remove the makefile hack.

Signed-off-by: Michael S. Tsirkin <>

427e3aa1 12/04/2012 03:42 pm Hans de Goede

usb-tablet: Allow connecting to ehci

Our ehci code has is capable of significantly lowering the wakeup rate
for the hcd emulation while the device is idle. It is possible to add
similar code ot the uhci emulation, but that simply is not there atm,
and there is no reason why a (virtual) usb-tablet can not be a USB-2 device....

8beba930 12/04/2012 03:41 pm Hans de Goede

usb: Call wakeup when data becomes available for all devices with int eps

This is necessary for proper interaction with the xhci controller, and it
will allow other hcds to lower there frame timer while waiting for interrupt
data.

Signed-off-by: Hans de Goede <>...

be41efde 12/04/2012 03:41 pm Hans de Goede

usb: Don't allow USB_RET_ASYNC for interrupt packets

It is tempting to use USB_RET_ASYNC for interrupt packets, rather then the
current NAK + polling approach, but this causes issues for migration, as
an async completed packet will not getting written back to guest memory until...

386ab487 12/04/2012 03:41 pm Hans de Goede

usb: Allow overriding of usb_desc at the device level

This allows devices to present a different set of descriptors based on
device properties.

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

80826240 12/04/2012 03:41 pm Hans de Goede

ehci: Lower timer freq when the periodic schedule is idle

Lower the timer freq if no iso schedule packets complete for 64 frames in
a row.

We can safely do this, without adding latency, because:
1) If there is isoc traffic this will never trigger
2) For async handled interrupt packets (only usb-host), the completion handler...

6c2d1c32 11/29/2012 09:04 am Gerd Hoffmann

usb: tag usb host adapters as not hotpluggable.

Hotplugging them simply doesn't work, so tag them accordingly to
avoid users trying and then crashing qemu.

For xhci there is nothing fundamental which prevents hotplug from
working, we'll "only" need a exit() function which cleans up...

c128d6a6 11/29/2012 09:04 am Stefan Hajnoczi

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 \...
2b29f492 11/29/2012 09:04 am Peter Crosthwaite

ehci-sysbus: Attach DMA context.

This was left as NULL on the initial merge due to debate on the mailing list on
how to handle DMA contexts for sysbus devices. Patch
9e11908f12f92e31ea94dc2a4c962c836cba9f2a was later merged to fix OHCI. This is the,
equivalent fix for sysbus EHCI....

88793816 11/21/2012 03:55 pm Hans de Goede

uhci: Add a completions_only flag for async completions

Add a completions_only flag, and set this when running process_frame for async
completion handling, this fixes 2 issues in a single patch:

1) It makes sure async completed packets get written to guest mem immediately,...

1cbdde90 11/21/2012 03:55 pm Hans de Goede

uhci: Don't allow the guest to set port-enabled when there is no dev connected

It is possible for device disconnect and the guest trying to reset the port
(because of USB xact errors prior to the disconnect getting signaled) to race,
when we hit this race, the guest will write the port-control register with its...

71d2c9cf 11/21/2012 03:55 pm Hans de Goede

uhci: Fix double unlink

uhci_async_cancel() already does a uhci_async_unlink().

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

33c1a685 11/21/2012 03:55 pm Hans de Goede

usb-bt: Return NAK instead of STALL when interrupt ep has no data

I noticed this while making all devices with interrupt endpoints properly
do wakeup. While at it also add wakeup support.

Note that I've not tested this, but returning STALL for an interrupt ep...

c4020746 11/21/2012 03:55 pm Hans de Goede

usb-smartcard-reader: Properly NAK interrupt eps when we've no events

When we've no data to return from the interrupt endpoint, return NAK rather
then a 0 length packet.

CC: Alon Levy <>
Signed-off-by: Hans de Goede <>...

234e810c 11/21/2012 03:55 pm Hans de Goede

usb-redir: Split usb_handle_interrupt_data into separate in/out functions

No functional changes.

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

723aedd5 11/21/2012 03:55 pm Hans de Goede

usb-redir: Don't handle interrupt output packets async

Instead report them as successfully completed directly on submission, this
has 2 advantages:

1) This matches the timing of interrupt output packets on real hardware,
with the previous async handling, if an ep has an interval of say 500 ms,...

40862309 11/16/2012 12:27 pm Gerd Hoffmann

ehci: keep the frame timer running in case the guest asked for frame list rollover interrupts

Signed-off-by: Gerd Hoffmann <>

55903f1d 11/16/2012 12:27 pm Gerd Hoffmann

ehci: handle dma errors

Starting with commit 1c380f9460522f32c8dd2577b2a53d518ec91c6d dma
transfers can actually fail. This patch makes ehci keep track
of the busmaster bit in pci config space, by setting/clearing the
dma_context pointer. Attempts to dma without context will result...

2cb343b4 11/16/2012 12:27 pm Hans de Goede

usb-redir: Only add actually in flight packets to the in flight queue

Packets which are queued up, but not yet handed over to the device, are
not in flight.

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

618fbc95 11/16/2012 12:27 pm Hans de Goede

usb-redir: Set default debug level to warning

The previous default of 0 means that even errors and warnings would not
get printed, which is really not a good default.

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

8c908fca 11/16/2012 12:27 pm Gerd Hoffmann

usb-host: update tracing

Now that we have separate status and length fields in USBPacket
update the completion tracepoint to log both.

Signed-off-by: Gerd Hoffmann <>

71e0aa39 11/16/2012 12:27 pm Gerd Hoffmann

usb-host: fix splitted transfers

USBPacket->actual_length wasn't updated correctly for USBPackets
splitted into multiple urbs. Fix it.

Signed-off-by: Gerd Hoffmann <>