Statistics
| Branch: | Revision:

root @ 60e1b2a6

# Date Author Comment
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...

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

usb: zap hw/ush-{ohic,uhci}.h + init wrappers

Remove the uhci and ohci init wrappers, which all wrapped a
pci_create_simple() one-liner. Switch callsites to call
pci_create_simple directly. Remove the header files where
the wrappers where declared.

Signed-off-by: Gerd Hoffmann <>

fcb70eca 03/13/2012 11:15 am Hans de Goede

usb-ehci: drop unused isoch_pause variable

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

86e18cae 03/13/2012 11:15 am Wei Yang

usb-ohci: DMA writeback bug fixes

This patch fixes two bugs in the OHCI device where the device writes
back data to system memory that should be exclusively under the
control of the guest side driver.

In OHCI specification Section 5.2.7, it mentioned "In all cases, Host...

5ac2731c 03/13/2012 11:15 am Gerd Hoffmann

usb: improve packet state sanity checks

Add a new function to check whenever the packet state is as expected,
log more informations in case it isn't.

Signed-off-by: Gerd Hoffmann <>

16ce543e 03/13/2012 11:15 am Gerd Hoffmann

uhci: pass addr to uhci_async_alloc

Also do async->td initialization in uhci_async_alloc now.
Prepares for adding tracepoints.

Signed-off-by: Gerd Hoffmann <>

60f8afcb 03/13/2012 11:15 am Gerd Hoffmann

uhci: fix uhci_async_cancel_all

It should also free all queues.

Signed-off-by: Gerd Hoffmann <>

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

uhci: cancel on schedule stop.

Cancel any in-flight transaction when the guest stops the uhci schedule.

Signed-off-by: Gerd Hoffmann <>

50dcc0f8 03/13/2012 11:15 am Gerd Hoffmann

uhci: tracing support

Zap DPRINTF, add tracepoints instead.

Signed-off-by: Gerd Hoffmann <>

60e1b2a6 03/13/2012 11:15 am Gerd Hoffmann

uhci: use enum for uhci_handle_td return codes

Step #1 (separate for better bisectability): replace numbers with names.

Signed-off-by: Gerd Hoffmann <>

cb72b758 03/13/2012 03:52 am Anthony Liguori

Merge remote-tracking branch 'mdroth/qga-pull-3-12-2012' into staging

  • mdroth/qga-pull-3-12-2012:
    qemu-ga: add guest-sync-delimited
    qemu-ga: add guest-network-get-interfaces command
    qemu-ga: add win32 guest-suspend-ram command
    qemu-ga: add win32 guest-suspend-disk command....
fb23ae6e 03/13/2012 03:51 am Anthony Liguori

Merge remote-tracking branch 'kwolf/for-anthony' into staging

  • kwolf/for-anthony:
    test-coroutine: add performance test for nesting
    coroutine: adding configure option for sigaltstack coroutine backend
    coroutine: adding configure choose mechanism for coroutine backend...
79122e93 03/13/2012 03:50 am Anthony Liguori

Merge remote-tracking branch 'qemu-kvm/memory/core' into staging

  • qemu-kvm/memory/core:
    memory: get rid of cpu_register_io_memory()
    memory: dispatch directly via MemoryRegion
    exec: fix code tlb entry misused as iotlb in get_page_addr_code()
    memory: store section indices in iotlb instead of io indices...
cbedde09 03/13/2012 03:49 am Anthony Liguori

Merge remote-tracking branch 'stefanha/tracing' into staging

  • stefanha/tracing:
    vga: add trace event for ppm_save
    console: add some trace events
    maintainers: Add docs/tracing.txt to Tracing
    docs: correct ./configure line in tracing.txt
    trace: make trace_thread_create() use its function arg...
1d2cb1a2 03/13/2012 03:48 am Anthony Liguori

Merge remote-tracking branch 'qmp/queue/qmp' into staging

  • qmp/queue/qmp:
    qapi-schema.json: fix comment for type ObjectPropretyInfo
    qapi-schema: fix typos and explain 'spice' auth
    qjson.h: include compiler.h for GCC_FMT_ATTR
3cf0bed8 03/12/2012 10:09 pm Michael Roth

qemu-ga: add guest-sync-delimited

guest-sync leaves it as an exercise to the user as to how to reliably
obtain the response to guest-sync if the client had previously read in a
partial response (due qemu-ga previously being restarted mid-"sentence"
due to reboot, forced restart, etc)....

11d0f125 03/12/2012 10:09 pm Luiz Capitulino

qemu-ga: add guest-suspend-disk

As the command name implies, this command suspends the guest to disk.

The suspend operation is implemented by two functions: bios_supports_mode()
and guest_suspend(). Both functions are generic enough to be used by
other suspend modes (introduced by next commits)....

fbf42210 03/12/2012 10:09 pm Luiz Capitulino

qemu-ga: add guest-suspend-ram

Signed-off-by: Luiz Capitulino <>

95f4f404 03/12/2012 10:09 pm Luiz Capitulino

qemu-ga: add guest-suspend-hybrid

Signed-off-by: Luiz Capitulino <>

aa59637e 03/12/2012 10:09 pm Gal Hammer

qemu-ga: add win32 guest-suspend-disk command.

Implement guest-suspend-disk RPC for Windows. Functionally this should be
equivalent to the posix implementation.

Signed-off-by: Gal Hammer <>

f54603b6 03/12/2012 10:09 pm Michael Roth

qemu-ga: add win32 guest-suspend-ram command

S3 sleep implementation for windows.

3424fc9f 03/12/2012 10:09 pm Michal Privoznik

qemu-ga: add guest-network-get-interfaces command

This command returns an array of:

[ifname, hwaddr, [ipaddr, ipaddr_family, prefix] ]

for each interface in the system.
Currently, only IPv4 and IPv6 are supported.

Signed-off-by: Michal Privoznik <>

ecf40bea 03/12/2012 09:05 pm Eduardo Habkost

initialize CPU model list after handling -readconfig options

To properly load cpudefs using -readconfig, we have to call
cpudef_init() after finishing the command-line option handling.

Consequently, the handling of "-cpu ?" has to be done after the
command-line option handling loop, too....

1d3323de 03/12/2012 09:05 pm Gerd Hoffmann

implement vnc_dpy_setdata

The comment is wrong, we have to do something in the setdata callback.
Changing the framebuffer backing storage (happens when the guest pans
the display) renders the whole screen content invalid.

Trigger #1: cirrus vga + 32bit linux guest + vesafb with ypan enabled....

8d9dde94 03/12/2012 09:05 pm Peter Maydell

cpu-all.h: Don't accidentally sign extend in g2h()

Cast the argument of the g2h() macro to a target_ulong so that
it isn't accidentally sign-extended if it is a signed 32 bit
type and long is a 64 bit type. In particular, this fixes a
bug where it would return the wrong value for 32 bit guests...

66d341e5 03/12/2012 09:05 pm Paolo Bonzini

qdev: accept empty string properties

These were stored as NULL due to wrong cut-and-paste from set_pointer.

Reported-by: Gerhard Wiesinger <>
Tested-by: Gerhard Wiesinger <>
Signed-off-by: Paolo Bonzini <>...

6c1fdcf9 03/12/2012 09:05 pm Paolo Bonzini

qom: fix device hot-unplug

Property removal modifies the list, so it is not safe to continue
iteration. We know anyway that each object can have only one
parent (see object_property_add_child), so exit after finding
the requested object.

Reported-by: Michael S. Tsirkin <>...

eaf3f097 03/12/2012 09:05 pm Eduardo Habkost

add "tsc-deadline" flag name to feature_ecx table

Signed-off-by: Eduardo Habkost <>
Signed-off-by: Anthony Liguori <>

c34ea314 03/12/2012 09:05 pm Eduardo Habkost

add SandyBridge CPU model

This patches add the definition of a SandyBridge CPU model.

Summary of differences:

Flags present on actual hardware, but not on the added model definition:

- pbe, tm, ht, ss, acpi, vme, xTPR, tm2, eist, smx: host-specific
features, not exposed to guest....

885bb036 03/12/2012 09:05 pm Eduardo Habkost

add Opteron_G4 CPU model (v2)

This patch addes a Bulldozer-based Opteron_G4 CPU model.

This version has the ffxsr bit actually disabled, to match what was
documented below. Thanks to Andre Przywara for spotting the bug.

I am trying to be conservative with the new model, so I am enabling only...

7e849a99 03/12/2012 04:14 pm Alex Barcelo

test-coroutine: add performance test for nesting

The performance test will also check for nesting. It will do
a certain quantity of cycles, and each of one will do a depth
nesting process.

This is useful for benchmarking the creation of coroutines,
given that nesting is creation-intensive (and the other perf...

3811f63a 03/12/2012 04:14 pm Kevin Wolf

qemu-iotests: Mark some tests as quick

This creates a new test group 'quick' for some test case that take at
most a couple of seconds each, so that the group can be run during a
quick 'make check'

Signed-off-by: Kevin Wolf <>

8959449b 03/12/2012 04:14 pm Kevin Wolf

make check: Add qemu-iotests subset

Run the 'quick' group from qemu-iotests during 'make check'.

Signed-off-by: Kevin Wolf <>

b8c6f29e 03/12/2012 04:14 pm Kevin Wolf

Add 'make check-block'

Runs the full qemu-iotests suite for various image formats.

Signed-off-by: Kevin Wolf <>

622d2419 03/12/2012 04:14 pm Paolo Bonzini

use QSIMPLEQ_FOREACH_SAFE when freeing list elements

Signed-off-by: Paolo Bonzini <>
Signed-off-by: Kevin Wolf <>

dc8fb6df 03/12/2012 04:14 pm Paolo Bonzini

qapi: complete implementation of unions

Signed-off-by: Paolo Bonzini <>
Acked-by: Luiz Capitulino <>
Signed-off-by: Kevin Wolf <>

52e7c241 03/12/2012 04:14 pm Paolo Bonzini

rename blockdev-group-snapshot-sync

We will add other kinds of operation. Prepare for this by adjusting
the schema.

Signed-off-by: Paolo Bonzini <>
Signed-off-by: Kevin Wolf <>

bc8b094f 03/12/2012 04:14 pm Paolo Bonzini

add mode field to blockdev-snapshot-sync transaction item

The mode field lets a management application create the snapshot
destination outside QEMU.

Right now, the only modes are "existing" and "absolute-paths". Mirroring
introduces "no-backing-file". In the future "relative-paths" could be...

6cc2a415 03/12/2012 04:14 pm Paolo Bonzini

qmp: convert blockdev-snapshot-sync to a wrapper around transactions

Simplify the blockdev-snapshot-sync code and gain failsafe operation
by turning it into a wrapper around the new transaction command. A new
option is also added matching "mode".

Signed-off-by: Paolo Bonzini <>...

bf319ece 03/12/2012 04:14 pm Kevin Wolf

qcow2: Factor out count_cow_clusters

Signed-off-by: Kevin Wolf <>
Reviewed-by: Stefan Hajnoczi <>

256900b1 03/12/2012 04:14 pm Kevin Wolf

qcow2: Add qcow2_alloc_clusters_at()

This function allows to allocate clusters at a given offset in the image
file. This is useful if you want to allocate the second part of an area
that must be contiguous.

Signed-off-by: Kevin Wolf <>
Reviewed-by: Stefan Hajnoczi <>

250196f1 03/12/2012 04:14 pm Kevin Wolf

qcow2: Reduce number of I/O requests

If the first part of a write request is allocated, but the second isn't
and it can be allocated so that the resulting area is contiguous, handle
it at once. This is a common case for sequential writes.

After this patch, alloc_cluster_offset() only checks if the clusters are...

3194c8ce 03/12/2012 04:14 pm Alex Barcelo

coroutine: adding sigaltstack method (.c source)

This file is based in both coroutine-ucontext.c and
pth_mctx.c (from the GNU Portable Threads library).

The mechanism used to change stacks is the sigaltstack
function (variant 2 of the pth library).

v2: Some corrections. Moving global variables into...

519175a2 03/12/2012 04:14 pm Alex Barcelo

coroutine: adding configure choose mechanism for coroutine backend

Configure tries, as a default, ucontext functions for the
coroutines. But now the user can force another backend by
--with-coroutine=BACKEND option

v2: Using --with-coroutine=BACKEND instead of enable...

fe91bfa8 03/12/2012 04:14 pm Alex Barcelo

coroutine: adding configure option for sigaltstack coroutine backend

It's possible to use sigaltstack backend with --with-coroutine=sigaltstack

v2: changed from enable/disable configure flags

Signed-off-by: Alex Barcelo <>
Signed-off-by: Kevin Wolf <>

d0895d6e 03/12/2012 04:14 pm Paolo Bonzini

Group snapshot: Fix format name for backing file

Signed-off-by: Paolo Bonzini <>
Signed-off-by: Kevin Wolf <>

14fe292d 03/12/2012 04:14 pm Stefan Hajnoczi

qed: do not evict in-use L2 table cache entries

The L2 table cache reduces QED metadata reads that would be required
when translating LBAs to offsets into the image file. Since requests
execute in parallel it is possible to share an L2 table between multiple...

3cce16f4 03/12/2012 04:14 pm Kevin Wolf

qcow2: Add some tracing

Signed-off-by: Kevin Wolf <>
Reviewed-by: Stefan Hajnoczi <>

e8877497 03/12/2012 04:14 pm Stefan Hajnoczi

block: handle -EBUSY in bdrv_commit_all()

Monitor operations that manipulate image files must not execute while a
background job (like image streaming) is in progress. This prevents
corruptions from happening when two pieces of code are manipulating the...

259b2173 03/12/2012 04:14 pm Kevin Wolf

qcow2: Add error messages in qcow2_truncate

qemu-img resize has some limitations with qcow2, but the user is only
told that "this image format does not support resize". Quite confusing,
so add some more detailed error_report() calls and change "this image...

72750018 03/12/2012 12:30 pm Alon Levy

vga: add trace event for ppm_save

Signed-off-by: Alon Levy <>
Signed-off-by: Stefan Hajnoczi <>

cdbc19dd 03/12/2012 12:30 pm Alon Levy

console: add some trace events

Signed-off-by: Alon Levy <>
Signed-off-by: Stefan Hajnoczi <>

f922ea46 03/12/2012 12:27 pm Andreas Färber

maintainers: Add docs/tracing.txt to Tracing

The topic of whether and by whom docs/tracing.txt is maintained was
brought up. It currently does not have an official maintainer.

Add it to the tracing section so that Stefan gets cc'ed on patches.

Signed-off-by: Andreas Färber <>...

b7d66a76 03/12/2012 12:12 pm Lluís Vilanova

trace: Provide a per-event status define for conditional compilation

Adds a 'TRACE_${NAME}_ENABLED' preprocessor define for each tracing event in
"trace.h".

This lets the user conditionally compile code with a relatively high execution
cost that is only necessary when producing the tracing information for an event...

bcec4332 03/12/2012 12:12 pm Stefan Hajnoczi

tracetool: Omit useless QEMU_*_ENABLED() check

SystemTap provides a "semaphore" that can optionally be tested before
executing a trace event. The purpose of this mechanism is to skip
expensive tracing code when the trace event is disabled.

For example, some applications may have trace events that format or...

db3bf869 03/12/2012 12:12 pm Jun Koi

trace: make trace_thread_create() use its function arg

This patch makes trace_thread_create() to use its function arg to
initialize thread. The other choice is to make this a function to use
void arg, but i prefer this way.

Signed-off-by: Jun Koi <>...

324883aa 03/12/2012 12:12 pm Jun Koi

docs: correct ./configure line in tracing.txt

This patch corrects the configure's trace option in docs/tracing.txt.

Signed-off-by: Jun Koi <>
Signed-off-by: Stefan Hajnoczi <>

a348f108 03/11/2012 01:40 pm Stefan Weil

Add missing const attributes for MemoryRegionOps

Most MemoryRegionOps already had the const attribute.
This patch adds it to the remaining ones.

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

9d6fca70 03/11/2012 01:28 pm Stefan Weil

tcg: Improve tcg_out_label and fix its usage for w64

tcg_out_label is always called with a third argument of pointer type
which was casted to tcg_target_long.

These casts can be avoided by changing the prototype of tcg_out_label.

There was also a cast to long. For most hosts with...

f7cf5d5b 03/11/2012 01:28 pm Stefan Weil

configure: Test for libiberty.a (mingw32)

MinGW-w64 and some versions of MinGW32 don't provide libiberty.a,
so add this library only if it was found.

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

371c6489 03/11/2012 01:27 pm Stefan Weil

w64: Don't redefine lseek, ftruncate

MinGW-w64 already defines lseek and ftruncate (and uses the 64 bit
variants). The conditional compilation avoids redefinitions
(which would be wrong) and compiler warnings.

Signed-off-by: Stefan Weil <>...

e04b2899 03/11/2012 01:25 pm Stefan Weil

cache-utils: Add missing include file for uintptr_t

Commit 021ecd8b9db37927059f5d3234b51ed766706437 breaks the build for
PPC hosts because it uses uintptr_t without the necessary include file.

uintptr_t is defined in stdint.h, so add this include.

Cc: Alexander Graf <>...

250b086e 03/11/2012 01:24 pm Lluís Vilanova

build: Include config-host.mak as soon as possible

Current code depends on variables defined in config-host.mak before it is
actually included.

Reviewed-by: Peter Maydell <>
Signed-off-by: Lluís Vilanova <>
Cc: Anthony Liguori <>...

00e94dbc 03/11/2012 01:23 pm Jan Kiszka

gdbstub: Do not kill target in system emulation mode

Too many VM kittens were killed since 7d03f82f81. Another one just died
under my fat fingers.

When you quit a kgdb session, does the Linux kernel power off? Or when
you terminate gdb attached to a hardware debugger, does your board...

3f2cbf0d 03/11/2012 01:22 pm Jan Kiszka

target-i386: Mask NX bit from cpu_get_phys_page_debug result

This was a long pending bug, now revealed by the assert in
phys_page_find that stumbled over the large page index returned by
cpu_get_phys_page_debug for NX-marked pages: We need to mask out NX and...

156b12d7 03/09/2012 10:34 pm Alon Levy

qjson.h: include compiler.h for GCC_FMT_ATTR

Signed-off-by: Alon Levy <>
Signed-off-by: Luiz Capitulino <>

419e1bdf 03/09/2012 10:34 pm Alon Levy

qapi-schema: fix typos and explain 'spice' auth

Signed-off-by: Alon Levy <>
Signed-off-by: Luiz Capitulino <>

d03ee401 03/09/2012 10:34 pm Alon Levy

qapi-schema.json: fix comment for type ObjectPropretyInfo

Signed-off-by: Alon Levy <>
Signed-off-by: Luiz Capitulino <>

dac6b1b2 03/09/2012 08:30 pm Anthony Liguori

Merge remote-tracking branch 'stefanha/trivial-patches' into staging

  • stefanha/trivial-patches:
    configure: Quote the configure args printed in config.log
    osdep: Remove local definition of macro offsetof
    libcacard: Spelling and grammar fixes in documentation...
bf75fec1 03/09/2012 08:29 pm Anthony Liguori

Merge remote-tracking branch 'qemu-kvm/uq/master' into staging

  • qemu-kvm/uq/master:
    kvm: fill in padding to help valgrind
    kvm: x86: Add user space part for in-kernel i8254
    kvm: Add kvm_has_pit_state2 helper
    i8254: Open-code timer restore
    i8254: Factor out base class for KVM reuse
9f1d43b1 03/09/2012 08:29 pm Anthony Liguori

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

  • kraxel/usb.42:
    xhci: fix port status
    xhci: fix control xfers
    usb: add shortcut for control transfers
    usb-host: enable pipelineing for bulk endpoints.
    usb: add pipelining option to usb endpoints...
0d10f627 03/09/2012 03:02 pm Anthony Liguori

xilinx_zynq: fix the build

Signed-off-by: Anthony Liguori <>

02021812 03/09/2012 03:02 pm Hans de Goede

libcacard: Fix compilation with gcc-4.7

VCARD_ATR_PREFIX is used as part of an array initializer so it should
not have () around it, so far this happened to work, but gcc-4.7 does
not like it.

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

97161e17 03/08/2012 07:16 pm Avi Kivity

memory: get rid of cpu_register_io_memory()

The return value of cpu_register_io_memory() is no longer used anywhere, so
we can remove it and all associated data and code.

Signed-off-by: Avi Kivity <>

37ec01d4 03/08/2012 07:06 pm Avi Kivity

memory: dispatch directly via MemoryRegion

Instead of indirecting via io_mem_region, dispatch directly
through the MemoryRegion obtained from the iotlb or phys_page_find().

Signed-off-by: Avi Kivity <>

ce5d64c2 03/08/2012 06:54 pm Avi Kivity

exec: fix code tlb entry misused as iotlb in get_page_addr_code()

get_page_addr_code() reads a code tlb entry, but interprets it as an
iotlb entry. This works by accident since the low bits of a RAM code
tlb entry are clear, and match a RAM iotlb entry. This accident is...

82246040 03/08/2012 05:22 pm Stefan Weil

osdep: Remove local definition of macro offsetof

The macro offsetof is defined in stddef.h. It is conforming to
the standards C89, C99 and POSIX.1-2001 (see man page), so it
is a sufficiently old standard.

Therefore chances are very high that QEMU never needs a local...

979ae168 03/08/2012 05:22 pm Peter Maydell

configure: Quote the configure args printed in config.log

Use the same mechanism we use for printing the configure command
line to config-host.mak to print it to config.log. This fixes a
bug where the config.log version didn't quote arguments with spaces....

ba79c886 03/08/2012 05:22 pm Stefan Weil

libcacard: Use format specifier %u instead of %d for unsigned values

splint reported warnings for those code statements.

Signed-off-by: Stefan Weil <>
Signed-off-by: Stefan Hajnoczi <>

0ea5c0cd 03/08/2012 05:22 pm Stefan Weil

vnc: Add break statement

This was not a bug, but it is not common practice to omit the break statement
from the last case statement before an empty default case.

Any change of the default case would introduce a bug.

This was reported as a warning by splint....

93148aa5 03/08/2012 05:22 pm Stefan Weil

Spelling fixes in comments (it's -> its)

  • it's -> its (fixed for all files)
  • dont -> don't (only fixed in a line which was touched by the previous fix)
  • distrub -> disturb (fixed in the same line)

Reviewed-by: Andreas Färber <>
Signed-off-by: Stefan Weil <>...

4a84ebe6 03/08/2012 05:22 pm Stefan Weil

libcacard: Spelling and grammar fixes in documentation

  • it's -> its
  • it's -> it is (that's no fix, but makes future checks easier)
  • this functions -> this function
  • replacable -> replaceable
  • reader's -> readers
  • logins into -> logs into

v2:
Also replace 'aid' by 'AID' (thanks to Peter Maydell for this hint)....

aa102231 03/08/2012 05:06 pm Avi Kivity

memory: store section indices in iotlb instead of io indices

A step towards eliminating io indices.

Signed-off-by: Avi Kivity <>

f3705d53 03/08/2012 04:16 pm Avi Kivity

memory: make phys_page_find() return an unadjusted section

We'd like to store the section index in the iotlb, so we can't
adjust it before returning. Return an unadjusted section and
instead introduce section_addr(), which does the adjustment later.

Signed-off-by: Avi Kivity <>

441dd5eb 03/07/2012 03:03 pm Stefan Weil

qom: Fix spelling in documentation

This fixes a new spelling issue which was detected by codespell.

Signed-off-by: Stefan Weil <>
Signed-off-by: Stefan Hajnoczi <>

beae9d79 03/07/2012 03:03 pm Stefan Weil

qmp: Fix spelling fourty -> forty

This was found by codespell.

Signed-off-by: Stefan Weil <>
Acked-by: Luiz Capitulino <>
Signed-off-by: Stefan Hajnoczi <>

75d12341 03/07/2012 03:03 pm Stefan Weil

block/vmdk: Fix warning from splint (comparision of unsigned value)

l1_entry_sectors will never be less than 0.

Signed-off-by: Stefan Weil <>
Signed-off-by: Stefan Hajnoczi <>

1c467855 03/07/2012 03:03 pm Stefan Weil

Fix sign of sscanf format specifiers

All values read by sscanf are unsigned, so replace %d by %u.

This signed / unsigned mismatch was detected by splint.

Signed-off-by: Stefan Weil <>
Signed-off-by: Stefan Hajnoczi <>

12f30833 03/07/2012 03:03 pm Stefan Weil

sh7750: Remove redundant 'struct' from MemoryRegionOps

The 'struct' is not needed, and all other MemoryRegionOps don't use it.

Signed-off-by: Stefan Weil <>
Signed-off-by: Stefan Hajnoczi <>

eb9d4673 03/07/2012 01:28 pm Gerd Hoffmann

usb: queue can have async packets

This can happen today in case the ->complete() callback queues up the
next packet. Also we'll support pipelining soon, which allows to have
multiple packets per queue in flight (aka ASYNC) state.

Signed-off-by: Gerd Hoffmann <>

7936e0f0 03/07/2012 01:28 pm Gerd Hoffmann

usb: add pipelining option to usb endpoints

With this patch applied USB drivers can enable pipelining per endpoint.
With pipelining enabled the usb core will continue submitting packets
even when there are still async transfers in flight instead of passing...

9424d4e7 03/07/2012 01:28 pm Gerd Hoffmann

usb-host: enable pipelineing for bulk endpoints.

We really don't want to wait for packets finish before submitting the
next, we want keep the data flow running.

Signed-off-by: Gerd Hoffmann <>

1b4b29a1 03/07/2012 01:28 pm Gerd Hoffmann

usb: add shortcut for control transfers

Add a more direct code path to submit control transfers. Instead of
feeding three usb packets (setup, data, ack) to usb_handle_packet and
have the do_token_* functions in usb.c poke the control transfer
parameters out of it just submit a single packet carrying the actual...

2850ca9e 03/07/2012 01:28 pm Gerd Hoffmann

xhci: fix control xfers

Use the new, direct control transfer submission method instead of
bypassing the usb core by calling usb_device_handle_control directly.
The later fails for async control transfers.

This patch gets xhci + usb-host combo going.

cf21a4ae 03/07/2012 01:28 pm Gerd Hoffmann

xhci: fix port status

Don't signal port status change if the usb device isn't in attached
state. Happens with usb-host devices with the pass-through device
being plugged out at the host.

Signed-off-by: Gerd Hoffmann <>

553a6a59 03/07/2012 01:28 pm Hans de Goede

usb-ehci: Fix and simplify nakcnt handling

The nakcnt code in ehci_execute_complete() marked transactions as finished
when a packet completed with a result of USB_RET_NAK, but USB_RET_NAK
means that the device cannot receive / send data at that time and that...

5eafd438 03/07/2012 01:28 pm Hans de Goede

usb-ehci: Cleanup itd error handling

All error statuses except for NAK are handled in a switch case, move the
handling of NAK into the same switch case.

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

4d819a9b 03/07/2012 01:28 pm Hans de Goede

usb: return BABBLE rather then NAK when we receive too much data

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

d61000a8 03/07/2012 01:28 pm Hans de Goede

usb: add USB_RET_IOERROR

We already have USB_RET_NAK, but that means that a device does not want
to send/receive right now. But with host / network redirection we can
actually have a transaction fail due to some io error, rather then ie
the device just not having any data atm....

7c308b7e 03/07/2012 01:28 pm Gerd Hoffmann

uhci_fill_queue: zap debug printf