Statistics
| Branch: | Revision:

root / hw @ 3e1c0c9a

# Date Author Comment
653c1c3f 07/19/2011 04:39 pm Hannes Reinecke

scsi-disk: Fixup debugging statement

A debugging statement wasn't converted to the new interface.

Signed-off-by: Hannes Reinecke <>
Acked-by: Paolo Bonzini <>
Signed-off-by: Kevin Wolf <>

3e1c0c9a 07/19/2011 04:39 pm Hannes Reinecke

scsi-disk: Mask out serial number EVPD

If the serial number is not set we should mask it out in the
list of supported VPD pages and mark it as not supported.

Signed-off-by: Hannes Reinecke <>
Acked-by: Paolo Bonzini <>
Signed-off-by: Kevin Wolf <>

c5bf71a9 07/19/2011 04:38 pm Hannes Reinecke

scsi: Add 'hba_private' to SCSIRequest

'tag' is just an abstraction to identify the command
from the driver. So we should make that explicit by
replacing 'tag' with a driver-defined pointer 'hba_private'.
This saves the lookup for driver handling several commands...

348e7b8d 07/18/2011 05:06 pm Hannes Reinecke

iov: Update parameter usage in iov_(to|from)_buf()

iov_to_buf() has an 'offset' parameter, iov_from_buf() hasn't.
This patch adds the missing parameter to iov_from_buf().
It also renames the 'offset' parameter to 'iov_off' to
emphasize it's the offset into the iovec and not the buffer....

429bef69 07/13/2011 12:29 am Hervé Poussineau

esp: cancel current request only if some request is in flight

This bug was introduced in 94d3f98a3f3caddd7875f9a11776daeb84962a7b:
scsi_cancel_io was checking if some request was pending before trying
to cancel it, while scsi_req_cancel always cancels the request....

06c46bba 07/12/2011 11:00 pm Alexander Graf

spapr: use specific endian ld/st_phys

Signed-off-by: Alexander Graf <>
Signed-off-by: Blue Swirl <>

04bc74ed 07/12/2011 11:00 pm Alexander Graf

s390-virtio: use specific endian ld/st_phys

Signed-off-by: Alexander Graf <>
Signed-off-by: Blue Swirl <>

db663d0f 07/12/2011 11:00 pm Alexander Graf

ppc405_uc: use specific endian ld/st_phys

Signed-off-by: Alexander Graf <>
Signed-off-by: Blue Swirl <>

75b0646f 07/12/2011 11:00 pm Alexander Graf

pl080: use specific endian ld/st_phys

Signed-off-by: Alexander Graf <>
Signed-off-by: Blue Swirl <>

ae5d3eb4 07/12/2011 11:00 pm Alexander Graf

msix: use specific endian ld/st_phys

Signed-off-by: Alexander Graf <>
Signed-off-by: Blue Swirl <>

c5d29d2f 07/12/2011 11:00 pm Alexander Graf

msi: use specific endian ld/st_phys

Signed-off-by: Alexander Graf <>
Signed-off-by: Blue Swirl <>

6c7796e5 07/12/2011 11:00 pm Alexander Graf

intel-hda: use specific endian ld/st_phys

Signed-off-by: Alexander Graf <>
Signed-off-by: Blue Swirl <>

8517263f 07/12/2011 11:00 pm Alexander Graf

hpet: use specific endian ld/st_phys

Signed-off-by: Alexander Graf <>
Signed-off-by: Blue Swirl <>

c925400b 07/05/2011 12:23 pm Kevin Wolf

ide: Initialise buffers with zeros

Just in case there's still a way how a guest can read out buffers when it's not
supposed to, let's zero the buffers during initialisation so that we don't leak
information to the guest.

Signed-off-by: Kevin Wolf <>...

40c4ed3f 07/05/2011 12:23 pm Kevin Wolf

ide: Ignore reads during PIO in and writes during PIO out

This fixes https://bugs.launchpad.net/qemu/+bug/786209:

When the DRQ_STAT bit is set, the IDE core permits both data reads
and data writes, regardless of whether the current transfer was
initiated as a read or write....
a8686a9b 07/05/2011 12:23 pm Markus Armbruster

virtio-blk: Turn drive serial into a qdev property

It needs to be a qdev property, because it belongs to the drive's
guest part. Precedence: commit a0fef654 and 6ced55a5.

Bonus: info qtree now shows the serial number.

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

9312805d 07/04/2011 11:12 pm Vasily Khoruzhick

pxa2xx_lcd: add proper rotation support

Until now, pxa2xx_lcd only supported 90deg rotation, but
some machines (for example Zipit Z2) needs 270deg rotation.

Signed-off-by: Vasily Khoruzhick <>
Signed-off-by: Andrzej Zaborowski <>

462a8bc6 07/04/2011 10:58 pm Stefan Weil

arm: Add const attribute to some arm_boot_info pointers

Parameter 'info' is const, so add the missing attribute.

v2:
Add 'const' to the local variable info in do_cpu_reset() and to
the boot_info field in CPUARMState (suggested by Peter Maydell).

Cc: Andrzej Zaborowski <>...

75ef8496 07/02/2011 09:50 pm Hervé Poussineau

esp: correctly fill bus id with requested lun

This bug showed up after 1455084ea2c48abf23c4e4e15e378ee43457f381, and
may be seen only on operating systems not using DMA to give commands
to SCSI adapter.

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

3b886706 07/02/2011 12:12 am Blue Swirl

Merge branch 'ppc-next' of git://repo.or.cz/qemu/agraf

  • 'ppc-next' of git://repo.or.cz/qemu/agraf:
    PPC: move TLBs to their own arrays
    PPC: 440: Use 440 style MMU as default, so Qemu knows the MMU type
    PPC: E500: Use MAS registers instead of internal TLB representation...
20be39de 06/30/2011 11:52 am Edgar E. Iglesias

etraxfs-ser: Correct default value for RW_REC_CTRL

Signed-off-by: Edgar E. Iglesias <>

656acddb 06/27/2011 10:59 pm Anthony Liguori

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

c45d1fc1 06/27/2011 07:27 pm Anthony Liguori

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

bb820c03 06/27/2011 07:25 pm Anthony Liguori

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

d2e4d08b 06/27/2011 12:34 pm Luiz Capitulino

virtio-serial: Fix segfault on guest boot

If I start qemu with:

  1. qemu -hda disks/test.img -enable-kvm -m 1G -snapshot \
    -device virtio-serial \
    -chardev socket,host=localhost,port=1234,server,nowait,id=foo \
    -device virtserialport,chardev=foo,name=org.qemu.guest_agent...
2b41f10e 06/26/2011 09:25 pm Blue Swirl

Remove exec-all.h include directives

Most exec-all.h include directives are now useless, remove them.

Signed-off-by: Blue Swirl <>

af2be207 06/26/2011 08:35 pm Jan Kiszka

Fix fallouts from Linux header inclusion

This is an all-in-one fix for the smaller and bigger mistakes of the
build system changes for accompanied Linux headers:
- only enable KVM and vhost on Linux hosts
- fix powerpc asm header symlink
- do not use Linux headers on non-Linux hosts...

dd3d6775 06/24/2011 11:13 am Markus Armbruster

Spell "unkown" correctly in error_report() arguments

Signed-off-by: Markus Armbruster <>
Signed-off-by: Stefan Hajnoczi <>

2167f7bc 06/24/2011 11:13 am Matthew Fernandez

Fix comment typos in hw/armv7m.c

Fix a couple of typos in comments.

Signed-off-by: Matthew Fernandez <>
Acked-by: Stefan Weil <>
Signed-off-by: Stefan Hajnoczi <>

6daf194d 06/24/2011 11:13 am Markus Armbruster

Strip trailing '\n' from error_report()'s first argument

error_report() prepends location, and appends a newline. The message
constructed from the arguments should not contain a newline. Fix the
obvious offenders.

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

a7fb71d1 06/23/2011 06:15 pm Gerd Hoffmann

usb: ignore USB_DT_DEBUG

Signed-off-by: Gerd Hoffmann <>

c3a90cb1 06/23/2011 06:09 pm Markus Armbruster

usb-storage: Turn drive serial into a qdev property usb-storage.serial

It needs to be a qdev property, because it belongs to the drive's
guest part. Precedence: commit a0fef654 and 6ced55a5.

Bonus: info qtree now shows the serial number.

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

bf5547f5 06/23/2011 12:28 pm Hans de Goede

usb-bus: Don't allow speed mismatch while attaching devices

Signed-off-by: Gerd Hoffmann <>

f3dc0051 06/23/2011 12:28 pm Peter Maydell

hw/usb-ohci.c: Fix handling of remote wakeup corner cases

Correct a number of minor errors in the OHCI wakeup implementation: * when the port is suspended but the controller is not, raise RHSC * when the controller is suspended but the port is not, raise RD...

16a2dee6 06/23/2011 12:28 pm Gerd Hoffmann

ehci: add freq + maxframes properties

Add properties for the wakeup rate and the max number of frames ehci
will process at once.

The wakeup rate defaults to 1000 which equals the usb frame rate. This
can be reduced to make qemu wake up less often when ehci is active....

adddecb1 06/23/2011 12:28 pm Gerd Hoffmann

ehci: switch to nanoseconds

Make ehci use nanoseconds everywhere.
Simplifies time calculations.

Signed-off-by: Gerd Hoffmann <>

ee210d63 06/23/2011 12:28 pm Hans de Goede

usb-bus: Don't allow attaching a device to a bus with no free ports

Signed-off-by: Gerd Hoffmann <>

fa19bf83 06/23/2011 12:28 pm Hans de Goede

usb: Proper error propagation for usb_device_attach errors

Signed-off-by: Gerd Hoffmann <>

ba3f9bfb 06/23/2011 12:28 pm Hans de Goede

usb: Add a speedmask to devices

This is used to indicate at which speed[s] the device can operate,
so that this can be checked to match the ports capabilities when it gets
attached to a bus.

Note that currently all usb1 emulated device claim to be fullspeed, this...

48e2faf2 06/22/2011 03:18 pm Peter Maydell

net: Warn about "-net nic" options which were ignored

Diagnose the case where the user asked for a NIC via "-net nic"
but the board didn't instantiate that NIC (for example where the
user asked for two NICs but the board only supports one). Note
that this diagnostic doesn't apply to NICs created through -device,...

f8e378f2 06/22/2011 03:18 pm Avi Kivity

Optimize screendump

When running kvm-autotest, fputc() is often the second highest (sometimes #1)
function showing up in a profile. This is due to fputc() locking the file
for every byte written.

Optimize by buffering a line's worth of pixels and writing that out in a...

d6034a3a 06/22/2011 03:13 pm Anthony Liguori

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

fdba9594 06/22/2011 03:11 pm Anthony Liguori

Merge remote-tracking branch 'mst/for_anthony' into staging

Conflicts:
hw/usb-uhci.c

7ee28fd3 06/22/2011 03:07 pm Anthony Liguori

Merge remote-tracking branch 'agraf/xen-next' into staging

5802e066 06/20/2011 09:16 pm Jan Kiszka

kvm: Drop CONFIG_KVM_PARA

The kvm_para.h header is now always available.

Signed-off-by: Jan Kiszka <>
Signed-off-by: Marcelo Tosatti <>

bf79d499 06/20/2011 06:42 pm Christophe Fergeau

lsi: Fix unused-but-set-variable warning

This warning is new in gcc 4.6.

Signed-off-by: Christophe Fergeau <>
Acked-by: Paolo Bonzini <>
Signed-off-by: Stefan Hajnoczi <>

01195b73 06/19/2011 05:43 am Steven Smith

xen: Add the Xen platform pci device

Introduce a new emulated PCI device, specific to fully virtualized Xen
guests. The device is necessary for PV on HVM drivers to work.

Signed-off-by: Steven Smith <>
Signed-off-by: Anthony PERARD <>...

bf09551a 06/19/2011 05:42 am Stefano Stabellini

xen: fix interrupt routing

Compared to the last version I only added a comment to the code.

- remove i440FX-xen and i440fx_write_config_xen
we don't need to intercept pci config writes to i440FX anymore;

- introduce PIIX3-xen and piix3_write_config_xen...

45dcd36e 06/19/2011 05:40 am Stefano Stabellini

cirrus_vga: reset lfb_addr after a pci config write if the BAR is unmapped

If the cirrus_vga PCI BAR is unmapped than we should not only reset
map_addr but also lfb_addr, otherwise we'll keep trying to map
the old lfb_addr in map_linear_vram.

Signed-off-by: Stefano Stabellini <>...

b87de24e 06/19/2011 05:40 am Anthony PERARD

xen: Add xc_domain_add_to_physmap to xen_interface.

This function will be used to support sync dirty bitmap.

This come with a check against every Xen release, and special
implementation for Xen version that doesn't have this specific call.

This function will not be usable with Xen 3.3 because the behavior is...

1c53accc 06/17/2011 03:58 am Alexander Graf

PPC: move TLBs to their own arrays

Until now, we've created a union over multiple different TLB types and
allocated that union. While it's a waste of memory (and cache) to allocate
TLB information for a TLB type with much information when you only need
little, it also inflicts another issue....

0dd4bc7d 06/17/2011 03:58 am Alexander Graf

PPC: 440: Use 440 style MMU as default, so Qemu knows the MMU type

We have some KVM interaction code in Qemu that tries to be clever and
ignore some capabilities when running on BookE style MMUs. Unfortunately,
the default CPU bamboo was defaulting to was not a BookE-style MMU,...

d1e256fe 06/17/2011 03:58 am Alexander Graf

PPC: E500: Use MAS registers instead of internal TLB representation

The natural format for e500 cores to do TLB manipulation with are the MAS
registers. Instead of converting them into some internal representation
and back again when the guest reads them, we can just keep the data...

5de6b46d 06/17/2011 03:58 am Alexander Graf

PPC: mpc8544ds: Add hypervisor node

When running a PPC guest with KVM that can do PV operations, we need
to indicate the guest which instructions to use for a hypercall and
that it is running as KVM guest.

This logic was available on openbios based machines already. This patch...

b9e17a34 06/17/2011 03:58 am Alexander Graf

PPC: calculate kernel,initrd,cmdline locations dynamically

During testing, I was generating a vmlinux binary that easily occupied
more than 20MB of RAM. Since the current -kernel code loads the initrd
at a fixed address behind the kernel, we were overwriting kernel data...

b0fb8423 06/17/2011 03:58 am Alexander Graf

PPC: E500: Implement reboot controller

When Linux reboots an e500 VM, it writes to a magic register in the
"global-utilities" device indicated by the device tree. We were not
emulating that device so far, rendering the VM reboot-less.

This patch implements that device with only the reboot functionality...

0e6264db 06/16/2011 12:20 am Michael S. Tsirkin

wdt: remove unused variables

Signed-off-by: Michael S. Tsirkin <>
Acked-off-by: Isaku Yamahata <>

1e36f6a5 06/15/2011 10:46 pm Juha Riihimäki

smc91c111: qdevify reset

Register the smc91c111 reset function as a qdev reset function.

Signed-off-by: Juha Riihimäki <>
Reviewed-by: Peter Maydell <>
Signed-off-by: Blue Swirl <>

c2afc922 06/15/2011 06:32 pm Isaku Yamahata

pci: don't call qdev pci init method

As pci id initialization is moved to common layer,
some initialization function can be empty.
So don't call init method if NULL.

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

cdfdec7f 06/15/2011 06:32 pm Michael S. Tsirkin

ppce500: move device/vendor/class id to qdev

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

9047c0b4 06/15/2011 06:32 pm Michael S. Tsirkin

usb-ehci: move device/vendor/class id to qdev

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

befeac45 06/15/2011 06:27 pm Michael S. Tsirkin

Merge remote-tracking branch 'origin/master' into pci

Conflicts:
hw/virtio-pci.c

f897235e 06/15/2011 05:03 pm Anthony Liguori

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

1f8bedba 06/15/2011 05:02 pm Anthony Liguori

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

ee752da7 06/15/2011 04:39 pm Kevin Wolf

ide: Clear error_status after restarting flush

Clearing the error status flag was missing for restarting flushes. Now that the
error status is separate from the BM status register, we can simply set it to 0
after restarting the request. This ensures that we never forget to clear a bit....

0754f9ec 06/15/2011 03:36 pm Kevin Wolf

ide: Add forgotten VMSTATE_END_OF_LIST in subsection

Signed-off-by: Kevin Wolf <>

4e1e0051 06/15/2011 03:36 pm Christoph Hellwig

ide: allow other dma comands than read and write

Replace the is_read flag with a dma_cmd flag to allow the dma and
restart logic to handler other commands like TRIM.

Signed-off-by: Christoph Hellwig <>
Signed-off-by: Kevin Wolf <>

d353fb72 06/15/2011 03:36 pm Christoph Hellwig

ide: add TRIM support

Add support for TRIM sub function of the data set management command,
and wire it up to the qemu discard infrastructure.

Signed-off-by: Christoph Hellwig <>
Signed-off-by: Kevin Wolf <>

def93791 06/15/2011 03:36 pm Kevin Wolf

ide: Split error status from status register

When adding the werror=stop mode, some flags were added to s->status
which are used to determine what kind of operation should be restarted
when the VM is continued.

Unfortunately, it turns out that s->status is in fact a device register...

fdc650d7 06/15/2011 03:36 pm Kevin Wolf

ide: Fix ide_drive_pio_state_needed()

When a failed PIO request caused the VM to stop, we still need to transfer the
PIO state even though DRQ=0 at this point.

Signed-off-by: Kevin Wolf <>

eb47d7c5 06/15/2011 02:23 pm Peter Maydell

hw/9118.c: Implement active-low interrupt support

The 9118 ethernet controller interrupt line is active low unless
the IRQ config register is programmed to set both the IRQ_POL
(polarity: active-high) and IRQ_TYPE (type: push-pull) bits:
implement support for inverting the irq output in other configurations....

6df658f5 06/14/2011 05:34 pm Markus Armbruster

usb-ccid: Plug memory leak on qdev exit()

ccid_initfn() allocates CCIDBus dynamically, but there is no exit
callback to free it.

Fix by getting rid of the allocation.

Signed-off-by: Markus Armbruster <>

35f75462 06/14/2011 04:48 pm Michael Tokarev

print meaningful error message in case of --disable-vhost-net

When qemu gets compiled without support of vhost-net, any attempt
to use it fails with a very clear error message:

qemu-system-x86_64: -netdev ...,vhost=on: vhost-net requested but could not be initialized...
b91cb442 06/14/2011 04:48 pm Michael S. Tsirkin

virtio: compat event idx support

Disable event index for compat machine types.

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

8e257816 06/14/2011 01:56 pm Brad Hards

usb: Add defines for USB Serial Bus Release Number register

Signed-off-by: Brad Hards <>
Signed-off-by: Gerd Hoffmann <>

e59d33a7 06/14/2011 01:56 pm Brad Hards

usb: Use defines for serial bus release number register for UHCI

Signed-off-by: Brad Hards <>
Signed-off-by: Gerd Hoffmann <>

4001f22f 06/14/2011 01:56 pm Brad Hards

usb: Use defines for serial bus release number register for EHCI

Signed-off-by: Brad Hards <>
Signed-off-by: Gerd Hoffmann <>

4b0315d7 06/14/2011 01:56 pm Peter Maydell

hw/usb-ohci.c: Ignore writes to HcPeriodCurrentED register

HcPeriodCurrentED is read-only, but Linux writes to it anyway; silently
ignore this rather than printing a warning message.

(Specifically, drivers/usb/host/ohci-hub.c:ohci_rh_resume() writes a
0, in at least kernels 2.6.25 through 2.6.39.)...

9bba1eb1 06/14/2011 01:56 pm Peter Maydell

hw/usb-ohci.c: Implement remote wakeup

Implement the wakeup callback in the OHCI USBPortOps, so that when
a downstream device wakes up it correctly causes the OHCI controller
to come out of suspend.

Signed-off-by: Peter Maydell <>...

94cc916a 06/14/2011 01:56 pm Gerd Hoffmann

usb-uhci: fix expire time initialization.

expire_time must be initialited when the guest activates the
usb scheduler, not at device creation time.

Signed-off-by: Gerd Hoffmann <>

07771f6f 06/14/2011 01:56 pm Gerd Hoffmann

usb: cancel async packets on unplug

This patch adds USBBusOps struct with (for now) only a single callback
which is called when a device is about to be destroyed. The USB Host
adapters are implementing this callback and use it to cancel any async
requests which might be in flight before the device actually goes away....

d0539307 06/14/2011 01:56 pm Gerd Hoffmann

usb-ehci: drop EXECUTING checks.

The state machine doesn't stop in EXECUTING state any more when async
packets are in flight, so the checks are not needed any more and can
be dropped.

Also kick out the check for the frame timer. As we don't stop & sleep...

46115ac4 06/14/2011 01:56 pm Kevin O'Connor

Fix USB mouse Set_Protocol behavior

The QEMU USB mouse claims to support the "boot" protocol
(bInterfaceSubClass is 1). However, the mouse rejects the
Set_Protocol command.

The qemu mouse does support the "boot" protocol specification, so a
simple fix is to enable the Set_Protocol request....

69bf405b 06/14/2011 01:56 pm Kevin O'Connor

The USB tablet should not claim boot protocol support.

The USB tablet advertises that it supports the "boot" protocol.
However, its reports aren't "boot" protocol compatible. So, it
shouldn't claim that.

Signed-off-by: Kevin O'Connor <>...

e654887f 06/14/2011 01:56 pm Gerd Hoffmann

usb-ehci: itd handling fixes.

This patch fixes a bunch of issues in the itd descriptor handling.
Most important fix is to handle transfers which cross page borders
correctly by looking up the address of the next page. Luckily the
linux uses physically contigous memory so the data used to hits the...

025b168c 06/14/2011 01:56 pm Gerd Hoffmann

usb-ehci: split trace calls to handle arg count limits

Signed-off-by: Gerd Hoffmann <>

290d26d2 06/14/2011 01:56 pm Hans de Goede

usb-bus: Add knowledge of USB_SPEED_SUPER to usb_speed helper

Signed-off-by: Gerd Hoffmann <>

290a5c60 06/14/2011 01:56 pm Hans de Goede

usb-bus: Don't detach non attached devices on device exit

This causes an "Error: tried to detach unattached usb device " to be printed,
this can happen when deleting ie a usb host qdev, which did not
get attached (because a device matching the filter never got plugged in)....

ba7cb5a8 06/14/2011 01:56 pm Gerd Hoffmann

usb-ehci: fix offset writeback in ehci_buffer_rw

Two bugs at once:

First the mask is backwards, so the it used to keeps the offset and
clears the page address, which is not what we need when we update the
offset.

Second the offset calculation is wrong in case head isn't page aligned....

d2bd525f 06/14/2011 01:56 pm Gerd Hoffmann

usb-ehci: fix error handling.

Set the correct bits for nodev, stall and babble errors.
Raise errint irq. Fix state transition from WRITEBACK
to the next state.

Signed-off-by: Gerd Hoffmann <>

8e4faf3d 06/14/2011 01:56 pm Hans de Goede

ehci: fix a number of unused-but-set-variable warnings (new with gcc-4.6)

Signed-off-by: Gerd Hoffmann <>

8ac6d699 06/14/2011 01:56 pm Gerd Hoffmann

usb-ehci: multiqueue support

This patch adds support for keeping multiple queues going at the same
time. One slow device will not affect other devices any more.

The patch adds code to manage EHCIQueue structs. It also does a number
of changes to the state machine:...

f2c88dc1 06/14/2011 01:36 pm Gerd Hoffmann

usb-ehci: trace buffer copy

Add a trace point for buffer copies and drop the DPRINTF's.

No change in behavior.

Signed-off-by: Gerd Hoffmann <>

0122f472 06/14/2011 01:36 pm Gerd Hoffmann

usb-ehci: add queue data struct

Add EHCIQueue struct, move the fields needed to track the queue state
into that struct. Pass the new struct instead of ehci state down to
functions which handle the queue state. Lot of variable references have
changed due to that without an actual functional change....

439a97cc 06/14/2011 01:36 pm Gerd Hoffmann

usb-ehci: trace mmio and usbsts

This patch starts adding trace support to ehci. It traces
updates of the status register (USBSTS), mmio access and
controller reset.

It also adds functions to set and clear status register bits
and puts them in use everywhere....

26d53979 06/14/2011 01:36 pm Gerd Hoffmann

usb-ehci: trace state machine changes

Add functions to get and set the current state of the state machine,
add tracepoints there to trace state transitions. Add support for
traceing the queue heads and transfer descriptors as we look at them.

Drop a few DPRINTFs and all DPRINTF_ST lines, they are obsolete now....

dcbd0b5c 06/14/2011 01:36 pm Gerd Hoffmann

usb-ehci: trace port state

Trace usb port operations (attach, detach, reset),
drop a few obsolete DPRINTF's.

No change in behavior.

Signed-off-by: Gerd Hoffmann <>

c4f8e211 06/14/2011 01:36 pm Gerd Hoffmann

usb-ehci: improve mmio tracing

Add a separate tracepoint to log how register values change in response
to a mmio write. Especially useful for registers which have read-only
or clear-on-write bits in them.

No change in behavior.

Signed-off-by: Gerd Hoffmann <>

bcbabae8 06/12/2011 04:36 pm Michael S. Tsirkin

virtio: event index support

Add support for event_idx feature, and utilize it to
reduce the number of interrupts and exits for the guest.

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

01731cfb 06/12/2011 10:33 am Jan Kiszka

msix: Use replace local defines with pci_regs versions

This also cleans up an open-coded 64-bit message address readout.

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