Statistics
| Branch: | Revision:

root / hw @ 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 <>

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...
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 <>...

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 <>

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 <>

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 <>

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 <>...

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...

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 <>

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

usb-ehci: Remove dead nakcnt code

This patch removes 2 bits of dead nakcnt code:

1) usb_ehci_execute calls ehci_qh_do_overlay which does:
nakcnt = reload;
and then has a block of code which is conditional on:
if (reload && !nakcnt) {
which ofcourse is never true now as nakcnt == reload....

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 <>

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

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

usb-ehci: split our qh queue into async and periodic queues

qhs can be part of both the async and the periodic schedule, as is shown
in later patches in this series it is useful to keep track of the qhs on
a per schedule basis.

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

7bce354e 03/07/2012 01:28 pm Hans de Goede

usb-ehci: always call ehci_queues_rip_unused for period queues

Before this patch USB 2 devices with interrupt endpoints were not working
properly. The problem is that to avoid loops we stop processing as soon
as we encounter a queue-head (qh) we've already seen since qhs can be linked...

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

usb-ehci: Drop cached qhs when the doorbell gets rung

The purpose of the IAAD bit / the doorbell is to make the ehci controller
forget about cached qhs, this is mainly used when cancelling transactions,
the qh is unlinked from the async schedule and then the doorbell gets rung,...

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

usb-ehci: Rip the queues when the async or period schedule is halted

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

2763cbc7 03/07/2012 01:28 pm Hans de Goede

usb-ehci: Any packet completion except for NAK should set the interrupt

As clearly stated in the 2.3.2 of the EHCI spec, any time USBERRINT get
sets then if the td has its IOC bit set USBINT should be set as well.

This means that for any status except for USB_RET_NAK we should set...

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

usb-ehci: Fix cerr tracking

cerr should only be decremented on errors which cause XactErr to be set, and
when that happens the failing transaction should be retried until cerr reaches
0 and only then should USBSTS_ERRINT be set (and inactive cleared and
USBSTS_INT set if requested)....

2a5ff735 03/07/2012 01:28 pm Hans de Goede

usb-ehci: Never follow table entries with the T-bit set

Before this patch the T-bit was not checked in 2 places, while it should be.

Once we properly check the T-bit everywhere we no longer need the weird
entry < 0x1000 and entry > 0x1000 checks, so this patch removes them....

5d17c0d2 03/07/2012 12:27 pm Jan Kiszka

kvm: x86: Add user space part for in-kernel i8254

This provides the required user space stubs to enable the in-kernel
i8254 emulation of KVM.

The in-kernel model supports lost tick compensation according to the
"delay" policy. This is enabled by default and can be switched off via a...

3fbc1c0c 03/07/2012 12:27 pm Jan Kiszka

i8254: Open-code timer restore

Same as for the APIC: To enable migration between accelerated and
non-accelerated models, we need to arm the channel 0 timer only inside
the emulated PIT model. The common code just saves/restores that timer
to the the next_transition_time field....

d11e859e 03/07/2012 12:27 pm Jan Kiszka

i8254: Factor out base class for KVM reuse

Applying the concept used for the *PICs once again: establish a base
class for the i8254 that can be used both by the current user space
emulation and the upcoming KVM in-kernel version. We share most of the
public interface of the i8254, specifically to the pcspk, vmstate, reset...

35548b06 03/07/2012 03:20 am Peter A. G. Crosthwaite

cadence_uart: initial version of device model

Implemented cadence UART serial controller

Signed-off-by: Peter A. G. Crosthwaite <>
Signed-off-by: John Linn <>
Acked-by: Edgar E. Iglesias <>...

f3a6cc07 03/07/2012 03:20 am Peter A. G. Crosthwaite

cadence_ttc: initial version of device model

Implemented cadence Triple Timer Counter (TCC)

Signed-off-by: Peter A. G. Crosthwaite <>
Signed-off-by: John Linn <>
Acked-by: Edgar E. Iglesias <>...

e9f186e5 03/07/2012 03:20 am Peter A. G. Crosthwaite

cadence_gem: initial version of device model

Device model for cadence gem ethernet controller.

Signed-off-by: Peter A. G. Crosthwaite <>
Signed-off-by: John Linn <>
Acked-by: Edgar E. Iglesias <>...

e3260506 03/07/2012 03:20 am Peter A. G. Crosthwaite

xilinx_zynq: machine model initial version

Xilinx zynq-7000 machine model. Also includes device model for the zynq-specific
system level control register (SLCR) module.

Signed-off-by: Peter A. G. Crosthwaite <>
Acked-by: Edgar E. Iglesias <>...

cba1fd36 03/06/2012 12:00 am Peter A. G. Crosthwaite

petalogix_s2adsp1800: macro'd magic numbers

defined macros for the addresses of the peripherals in machine model

Signed-off-by: Peter A. G. Crosthwaite <>
Signed-off-by: Edgar E. Iglesias <>

da71ebd1 03/06/2012 12:00 am Peter A. G. Crosthwaite

microblaze_boot: enabled -dtb argument

Use the -dtb argument for passing is a custom dtb rather than the old
hardcoded "mb.dtb"

Signed-off-by: Peter A. G. Crosthwaite <>
Signed-off-by: Edgar E. Iglesias <>

d94e7434 03/06/2012 12:00 am Peter A. G. Crosthwaite

microblaze: factored out common boot code

factored out the copy-pasted common boot code from the two microblaze platforms
into a dedicated microblaze bootloader (microblaze_boot.o).

Signed-off-by: Peter A. G. Crosthwaite <>...

1f28fac8 03/06/2012 12:00 am Peter A. G. Crosthwaite

petalogix_s2adsp1800: moved rst logic to rst fn

This belongs in the machine specific reset function

Signed-off-by: Peter A. G. Crosthwaite <>
Signed-off-by: Edgar E. Iglesias <>

1edb4934 03/05/2012 08:51 pm Christian Borntraeger

s390: Rework kernel loading: supports elf and newer kernels

This reworks the image loading on s390.

Newer kernels will not always have a 0dd0 (basr 13,0) at address 0x10000.
We must not rely on specific code at certain addresses. This check was
introduced to warn users that tried to load vmlinux, since ELF loading...

d9bafcd1 03/03/2012 07:53 pm Blue Swirl

Merge branch 'arm-devs.for-upstream' of git://git.linaro.org/people/pmaydell/qemu-arm

  • 'arm-devs.for-upstream' of git://git.linaro.org/people/pmaydell/qemu-arm:
    hw/arm11mpcore: Fix broken realview_mpcore/arm11mpcore_priv properties
    arm: add device tree support...
0f58a188 03/02/2012 01:56 pm Peter Maydell

hw/arm11mpcore: Fix broken realview_mpcore/arm11mpcore_priv properties

Fix confusion in the Property arrays for the "arm11mpcore_priv"
(per-CPU devices for the ARM11MPcore CPU) and "realview_mpcore"
(realview-eb board specific device encapsulating CPU and some...

69253800 03/02/2012 01:56 pm Rusty Russell

arm: clean up GIC constants

Interrupts numbers 0-31 are private to the processor interface, 32-1019 are
general interrupts. Add GIC_INTERNAL and substitute everywhere.

Signed-off-by: Rusty Russell <>
[Peter Maydell: converted some tabs to spaces]...

41c1e2f5 03/02/2012 01:56 pm Rusty Russell

arm: make sure that number of irqs can be represented in GICD_TYPER.

We currently assume that the number of interrupts (ITLinesNumber in
the architecture reference manual) is divisible by 32, since we
present it to the guest when it reads GICD_TYPER (in gic_dist_readb())...

412beee6 03/02/2012 01:56 pm Grant Likely

arm: add device tree support

If compiled with CONFIG_FDT, allow user to specify a device tree file using
the -dtb argument. If the machine supports it then the dtb will be loaded
into memory and passed to the kernel on boot.

Signed-off-by: Jeremy Kerr <>...

14655e48 03/01/2012 11:26 pm Anthony Liguori

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

  • qemu-kvm/memory/core: (30 commits)
    memory: allow phys_map tree paths to terminate early
    memory: unify PhysPageEntry::node and ::leaf
    memory: change phys_page_set() to set multiple pages...
5918ff68 03/01/2012 11:26 pm Anthony Liguori

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

  • qemu-kvm/uq/master:
    pc-bios: update kvmvapic.bin
    kvmvapic: Use optionrom helpers
    optionsrom: Reserve space for checksum
    kvmvapic: Simplify mp/up_set_tpr
    kvmvapic: Introduce TPR access optimization for Windows guests...
7c51c1aa 02/29/2012 08:57 pm Anthony Liguori

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

  • kwolf/for-anthony: (27 commits)
    qemu-img: fix segment fault when the image format is qed
    qemu-io: fix segment fault when the image format is qed
    qemu-tool: revert cpu_get_clock() abort(3)...
f06d0f07 02/29/2012 08:54 pm Anthony Liguori

Merge remote-tracking branch 'spice/spice.v49' into staging

  • spice/spice.v49:
    qxl: properly handle upright and non-shared surfaces
    Error out when tls-channel option is used without TLS
    spice: use error_report to report errors
    qxl: add optinal 64bit vram bar...
5ca2358a 02/29/2012 05:11 pm Anthony Liguori

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

  • kraxel/usb.39: (21 commits)
    usb: Resolve warnings about unassigned bus on usb device creation
    usb-redir: Return USB_RET_NAK when we've no data for an interrupt endpoint
    usb-redir: Limit return values returned by iso packets...
08388273 02/29/2012 01:48 pm Hervé Poussineau

fdc: take side count into account

Floppies can be simple or double-sided. However, current code
was only taking the common case into account (ie 2 sides).

This repairs single-sided floppies, which where totally broken
before this patch : for track > 0, wrong sector number was...

1457a758 02/29/2012 01:48 pm Hervé Poussineau

fdc: set busy bit when starting a command

This bit must be active while a command is currently executed.

Signed-off-by: Hervé Poussineau <>
Signed-off-by: Kevin Wolf <>

a005186c 02/29/2012 01:48 pm Hervé Poussineau

fdc: most control commands do not generate interrupts

In fact, only three control commands generate an interrupt:
read_id, recalibrate and seek

Signed-off-by: Hervé Poussineau <>
Signed-off-by: Kevin Wolf <>

8510854e 02/29/2012 01:48 pm Hervé Poussineau

fdc: handle read-only floppies (abort early on write commands)

A real floppy doesn't attempt to write to read-only media either.

Signed-off-by: Hervé Poussineau <>
Signed-off-by: Kevin Wolf <>

a758f8f4 02/29/2012 01:48 pm Hervé Poussineau

fdc: add CCR (Configuration Control Register) write register

DIR and CCR registers share the same address ; DIR is read-only
while CCR is write-only

CCR register is used to change media transfer rate, which will be
checked in following changes.

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

f8d3d128 02/29/2012 01:48 pm Hervé Poussineau

block: add a transfer rate for floppy types

Floppies must be read at a specific transfer rate, depending of its own format.
Update floppy description table to include required transfer rate.

Signed-off-by: Hervé Poussineau <>
Signed-off-by: Kevin Wolf <>

09c6d585 02/29/2012 01:48 pm Hervé Poussineau

fdc: add a 'check media rate' property. Not used yet

Set it to true for current Qemu versions, and false for previous ones

Signed-off-by: Hervé Poussineau <>
Signed-off-by: Kevin Wolf <>

844f65d6 02/29/2012 01:48 pm Hervé Poussineau

fdc: check if media rate is correct before doing any transfer

The programmed rate has to be the same as the required rate for the
floppy format ; if that's not the case, the transfer should abort.
This check can be disabled by using the 'check_media_rate' property....

b072a3c8 02/29/2012 01:48 pm Hervé Poussineau

fdc: fix seek command, which shouldn't check tracks

The seek command just sends step pulses to the drive and doesn't care if
there is a medium inserted of if it is banging the head against the drive.

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

a2df5fa3 02/29/2012 01:48 pm Hervé Poussineau

fdc: DIR (Digital Input Register) should return status of current drive...

Signed-off-by: Hervé Poussineau <>
Signed-off-by: Kevin Wolf <>

d53cdb30 02/29/2012 01:48 pm Paolo Bonzini

ide: fail I/O to empty disk

Requesting a read or a write operation on an empty disk can lead
to QEMU dumping core.

Also fix a few braces here and there.

Signed-off-by: Paolo Bonzini <>
Reviewed-by: Stefan Hajnoczi <>...

7376e582 02/29/2012 01:44 pm Avi Kivity

memory: allow MemoryListeners to observe a specific address space

Ignore any regions not belonging to a specified address space.

Signed-off-by: Avi Kivity <>

50c1e149 02/29/2012 01:44 pm Avi Kivity

memory: support stateless memory listeners

Current memory listeners are incremental; that is, they are expected to
maintain their own state, and receive callbacks for changes to that state.

This patch adds support for stateless listeners; these work by receiving...

72e22d2f 02/29/2012 01:44 pm Avi Kivity

memory: switch memory listeners to a QTAILQ

This allows reverse iteration, which in turns allows consistent ordering
among multiple listeners:

l1->add
l2->add
l2->del
l1->del

Signed-off-by: Avi Kivity <>
Reviewed-by: Richard Henderson <>

80a1ea37 02/29/2012 01:44 pm Avi Kivity

memory: move ioeventfd ops to MemoryListener

This way the accelerator (kvm) can handle them directly.

Signed-off-by: Avi Kivity <>
Reviewed-by: Richard Henderson <>

e2efc0a3 02/28/2012 06:22 pm Gerd Hoffmann

qxl: properly handle upright and non-shared surfaces

Although qxl creates a shared displaysurface when the qxl surface is
upright and doesn't need to be flipped there is no guarantee that the
surface doesn't become unshared for some reason. Rename qxl_flip to...

6f2b175a 02/28/2012 06:20 pm Gerd Hoffmann

qxl: add optinal 64bit vram bar

This patch adds an 64bit pci bar for vram. It is turned off by default.
It can be enabled by setting the size of the 64bit bar to be larger than
the 32bit bar. Both 32bit and 64bit bar refer to the same memory. Only
the first part of the memory is available via 32bit bar....

b55c952a 02/27/2012 07:19 pm Anthony Liguori

Merge remote-tracking branch 'aneesh/for-upstream' into staging

  • aneesh/for-upstream:
    hw/9pfs: Endian fixes for virtfs
    ./configure: add option for disabling VirtFS
3741715c 02/27/2012 04:40 pm Jan Kiszka

usb: Resolve warnings about unassigned bus on usb device creation

When creating an USB device the old way, there is no way to specify the
target bus. Thus the warning issued by usb_create makes no sense and
rather confuses our users.

Resolve this by passing a bus reference to the usbdevice_init handler...

7d1994f8 02/27/2012 02:37 pm Gerd Hoffmann

usb-xhci: enable packet queuing

qemu usb core has packet queues now, so flip lets the switch.

Signed-off-by: Gerd Hoffmann <>

808aeb98 02/27/2012 02:37 pm Gerd Hoffmann

usb: add tracepoint for usb packet state changes.

Signed-off-by: Gerd Hoffmann <>

aa0568ff 02/27/2012 02:37 pm Gerd Hoffmann

usb-ehci: sanity-check iso xfers

This patch adds a sanity check to itd processing to make sure the
endpoint addressed by the guest is actually an iso endpoint. Also
verify that usb drivers don't return USB_RET_ASYNC which is illegal for
iso xfers.

Signed-off-by: Gerd Hoffmann <>

8db36e9d 02/27/2012 02:37 pm Alon Levy

usb-desc: fix user trigerrable segfaults (!config)

Check for dev->config being NULL in two places:
USB_REQ_GET_CONFIGURATION and USB_REQ_GET_STATUS.

The behavior of USB_REQ_GET_STATUS is unspecified in the Default state,
that corresponds to dev->config being NULL (it defaults to NULL and is...

cff17894 02/27/2012 02:37 pm Alon Levy

usb-ccid: advertise SELF_POWERED

Before commit ed5a83ddd8c1d8ec7b1015315530cf29949e7c48 each device
provided it's own response to USB_REQ_GET_STATUS, but after it that
response was based on bmAttributes, which was errounously set for
usb-ccid as 0xa0 and not 0xe0....

df787185 02/27/2012 02:37 pm Hans de Goede

usb-ehci: Handle ISO packets failing with an error other then NAK

Before this patch the ehci code was not checking for any other errors other
then USB_RET_NAK. This causes 2 problems:
1) Other errors are not reported to the guest.
2) When transactions with the ITD_XACT_IOC bit set completing with another...

01cd4e98 02/27/2012 02:37 pm Gerd Hoffmann

ehci: drop old stuff

Drop the "ehci under development" banner.
Drop unused & inactive (#if 0) code.

Signed-off-by: Gerd Hoffmann <>

f8af1e88 02/27/2012 12:13 pm Gerd Hoffmann

usb-uhci: add UHCIQueue

UHCIAsync structs (in-flight requests) grouped in UHCIQueue now.
Each (active) usb endpoint gets its own UHCIQueue.

Signed-off-by: Gerd Hoffmann <>

971a5a40 02/27/2012 12:13 pm Gerd Hoffmann

usb-uhci: process uhci_handle_td return code via switch.

Restruct the uhci_handle_td return code processing to make the
control flow more clear and the code more readable.

Signed-off-by: Gerd Hoffmann <>

5a248289 02/27/2012 12:13 pm Gerd Hoffmann

usb-uhci: implement packet queuing

When a usb device is busy processing a packet (and returns
USB_RET_ASYNC), continue walking the transfer descriptor list
and process them to fill the request queue.

Signed-off-by: Gerd Hoffmann <>

299aa1c6 02/27/2012 12:13 pm Gerd Hoffmann

usb-hid: fix tablet activation

Activate usb hid pointer devices (mouse+tablet) unconditionally
on polls, even if we NAK the poll due to lack of new events.

Signed-off-by: Gerd Hoffmann <>

81d37739 02/27/2012 12:13 pm Gerd Hoffmann

usb-ehci: fix reset

Two reset fixes: * pick up s->usbcmd value after ehci_reset call to make sure it
keeps the reset value and doesn't get rubbish filled in when
val is written back to the mmio register array later on. * make sure the frame timer is zapped on reset....

326700e3 02/27/2012 12:13 pm Gerd Hoffmann

usb-uhci: cleanup UHCIAsync allocation & initialization.

Signed-off-by: Gerd Hoffmann <>

4c19ebb5 02/27/2012 10:46 am Alon Levy

qxl: remove flipped

Tested on linux and windows guests. For negative stride, qxl_flip copies
directly to vga->ds->surface->data, for positive it's reallocated to
share qxl->guest_primary.data

Signed-off-by: Alon Levy <>
Signed-off-by: Gerd Hoffmann <>

2e1a98c9 02/27/2012 10:46 am Alon Levy

qxl: introduce QXLCookie

Will be used in the next patch.

Signed-off-by: Alon Levy <>
Signed-off-by: Gerd Hoffmann <>

81fb6f15 02/27/2012 10:46 am Alon Levy

qxl: make qxl_render_update async

RHBZ# 747011

Removes the last user of QXL_SYNC when using update drivers that use the
_ASYNC io ports.

The last user is qxl_render_update, it is called both by qxl_hw_update
which is the vga_hw_update_ptr passed to graphic_console_init, and by...

bb5a8cd5 02/27/2012 10:46 am Alon Levy

qxl: fix spice+sdl no cursor regression

regression introduced by 075360945860ad9bdd491921954b383bf762b0e5,

v2: lock around qemu_spice_cursor_refresh_unlocked

Reported-by: Fabiano Fidêncio <>
Signed-off-by: Alon Levy <>...

45a4b485 02/27/2012 10:46 am Alon Levy

qxl: drop qxl_spice_update_area_async definition

It was never used. Introduced in
5ff4e36c804157bd84af43c139f8cd3a59722db9
qxl: async io support using new spice api

But not used even then.

Signed-off-by: Alon Levy <>
Signed-off-by: Gerd Hoffmann <>

4295e15a 02/27/2012 10:46 am Alon Levy

qxl: require spice >= 0.8.2

drop all ifdefs on SPICE_INTERFACE_QXL_MINOR >= 1 as a result,
any check for SPICE_SERVER_VERSION that is now always satisfied,
and SPICE_INTERFACE_CORE_MINOR >= 3 tests, because
0.8.2 has SPICE_INTERFACE_QXL_MINOR 1 and
SPICE_INTERFACE_CORE_MINOR 3....

45efb161 02/24/2012 09:36 pm Gerd Hoffmann

optimize screendump for the common non-switch case

switch console only if needed, also pass down whenever the console was
switched or not because a displaysurface redraw is only needed in case
the console was switched.

Signed-off-by: Gerd Hoffmann <>...

9ebe95fb 02/24/2012 09:36 pm Gerd Hoffmann

nic: zap obsolote romloading bits from ne2k + pcnet

These days one just needs to specify the romfile in PCiDeviceInfo and
everything magically works. It also allows to disable pxe rom loading
via "romfile=<emptystring>" like it is possible for all other nics....

16735102 02/24/2012 09:36 pm Gerd Hoffmann

Remove screendump dummy functions.

The code in console.c verifies whenever a screen_dump function
pointer is present before calling it, so there is no need to supply an
dummy function. Remove them. Also report an error to notify the user
that he didn't got a screenshot....