Statistics
| Branch: | Revision:

root / hw @ c9159fe9

# Date Author Comment
c9159fe9 10/06/2012 12:07 am Stefan Weil

Remove libhw

The entries for libhw* are no longer needed in .gitignore.

There is also no longer a difference between common-obj-y and
hw-obj-y, so one of those two macros is sufficient.

Signed-off-by: Stefan Weil <>
Signed-off-by: Anthony Liguori <>

e67edb94 10/05/2012 04:02 pm Paolo Bonzini

rtc: map CMOS index 0x37 to 0x32 on read and writes

QEMU's attempt to implement the century byte cover two possible places
for the byte. A common one on modern chipsets is 0x32, but QEMU also
stores the value in 0x37 (apparently for IBM PS/2 compatibility---it's...

b8994faf 10/05/2012 04:02 pm Paolo Bonzini

rtc: implement century byte

Implement the century byte in the RTC emulation, and test that it works.
This leads to some annoying compatibility code because we need to treat
a value of 2000 for the base_year property as "use the century byte
properly" (which would be a value of 0)....

3cda3462 10/05/2012 03:58 pm Jim Meyering

acpi: remove strzcpy (strncpy-identical) function; just use strncpy

Adjust all uses s/strzcpy/strncpy/ and mark these uses
of strncpy as "ok".

Signed-off-by: Jim Meyering <>
Signed-off-by: Anthony Liguori <>

9310b9be 10/05/2012 03:58 pm Jim Meyering

hw/r2d: add comment: this strncpy use is ok

Signed-off-by: Jim Meyering <>
Signed-off-by: Anthony Liguori <>

a79b5f8b 10/05/2012 03:58 pm Jim Meyering

hw/9pfs: avoid buffer overrun

v9fs_add_dir_node and qemu_v9fs_synth_add_file used strncpy
to form node->name, which requires NUL-termination, but
strncpy does not ensure NUL-termination.
Use pstrcpy, which does.

Acked-by: Aneesh Kumar K.V <>...

1044dc11 10/05/2012 03:58 pm Jim Meyering

lm32: avoid buffer overrun

Actually do what the comment says, using pstrcpy NUL-terminate:
strncpy does not always do that.

Signed-off-by: Jim Meyering <>
Signed-off-by: Anthony Liguori <>

e5fda038 10/05/2012 03:58 pm Jim Meyering

bt: replace fragile snprintf use and unwarranted strncpy

In bt_hci_name_req a failed snprintf could return len larger than
sizeof(params.name), which means the following memset call would
have a "length" value of (size_t)-1, -2, etc... Sounds scary.
But currently, one can deduce that there is no problem:...

9238c209 10/05/2012 03:58 pm Jim Meyering

virtio-9p: avoid unwarranted uses of strncpy

In all of these cases, the uses of strncpy were unnecessary, since
at each point of use we know that the NUL-terminated source bytes
fit in the destination buffer. Use memcpy in place of strncpy.

Acked-by: Aneesh Kumar K.V <>...

9d055d8a 10/05/2012 03:58 pm Jim Meyering

vscsi: avoid unwarranted strncpy

Don't use strncpy when the source string is known to fit
in the destination buffer. Use equivalent memcpy.
We could even use strcpy, here, but some static analyzers
warn about that, so don't add new uses.

Acked-by: David Gibson <>...

a5cf8262 10/05/2012 03:58 pm Jim Meyering

scsi, pci, qdev, isa-bus, sysbus: don't let *_get_fw_dev_path return NULL

Use g_strdup rather than strdup, because the sole caller
(qdev_get_fw_dev_path_helper) assumes it gets non-NULL, and dereferences
it. Besides, in that caller, the allocated buffer is already freed with...

a14c7492 10/05/2012 03:56 am Anthony Liguori

Merge remote-tracking branch 'sstabellini/xen-2012-10-03' into staging

  • sstabellini/xen-2012-10-03:
    xen: Set the vram dirty when an error occur.
    exec, memory: Call to xen_modified_memory.
    exec: Introduce helper to set dirty flags.
    xen: Introduce xen_modified_memory....
05d4f2f2 10/05/2012 03:53 am Anthony Liguori

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

  • kwolf/for-anthony: (30 commits)
    qemu-iotests: add tests for streaming error handling
    qemu-iotests: map underscore to dash in QMP argument names
    blkdebug: process all set_state rules in the old state...
97f34615 10/05/2012 03:52 am Anthony Liguori

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

  • qmp/queue/qmp:
    block: live snapshot documentation tweaks
    input: index_from_key(): drop unused code
    qmp: qmp_send_key(): accept key codes in hex
    input: qmp_send_key(): simplify
    hmp: dump-guest-memory: hardcode protocol argument to "file:"...
6929cf11 10/05/2012 03:50 am Anthony Liguori

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

  • mst/tags/for_anthony:
    virtio-serial-bus: let chardev know the exact number of bytes requested
    virtio: Introduce virtqueue_get_avail_bytes()
    virtio: use unsigned int for counting bytes in vq...
938406df 10/05/2012 03:49 am Anthony Liguori

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

  • kraxel/usb.66:
    usb: Fix usb_packet_map() in the presence of IOMMUs
    usb-redir: Adjust pkg-config check for usbredirparser .pc file rename (v2)
    ehci: Fix interrupt packet MULT handling
    xhci: create a memory region for each port...
4be403c8 10/05/2012 03:46 am Avi Kivity

Make target_phys_addr_t 64 bits unconditionally

The hassle and compile time overhead of maintaining both 32-bit and 64-bit
capable source isn't worth the tiny performance advantage which is seen on
a minority of configurations. Switch to compiling libhw only once, with...

910b38e4 10/03/2012 04:48 pm Anthony PERARD

xen: Introduce xen_modified_memory.

This function is to be used during live migration. Every write access to the
guest memory should call this funcion so the Xen tools knows which pages are
dirty.

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

aabc8530 10/03/2012 04:46 pm Xudong Hao

qemu/xen: Add 64 bits big bar support on qemu

Currently it is assumed PCI device BAR access < 4G memory. If there is such a
device whose BAR size is larger than 4G, it must access > 4G memory address.
This patch enable the 64bits big BAR support on qemu....

bd4982a6 10/03/2012 04:45 pm Anthony PERARD

xen: Fix, no unplug of pt device by platform device.

The Xen platform device will unplug any NICs if requested by the guest (PVonHVM)
including a NIC that would have been passthrough. This patch makes sure that a
passthrough device will not be unplug.

Reported-by: "Zhang, Yang Z" <>...

0f41dc18 10/01/2012 09:40 pm Anthony Liguori

vfio_pci: fix build on 32-bit systems

We cannot cast directly from pointer to uint64.

Cc: Alex Williamson <>
Cc: Alex Barcelo <>
Reported-by: Alex Barcelo <>
Signed-off-by: Anthony Liguori <>

65501a74 10/01/2012 04:04 pm Alex Williamson

vfio: vfio-pci device assignment driver

This adds the core of the QEMU VFIO-based PCI device assignment driver.
To make use of this driver, enable CONFIG_VFIO, CONFIG_VFIO_IOMMU_TYPE1,
and CONFIG_VFIO_PCI in your host Linux kernel config. Load the vfio-pci...

92e1fb5e 10/01/2012 04:04 pm Alex Williamson

vfio: Enable vfio-pci and mark supported

Enabled for all softmmu guests supporting PCI on Linux hosts. Note
that currently only x86 hosts have the kernel side VFIO IOMMU support
for this. PPC (g3beige) is the only non-x86 guest known to work.
ARM (veratile) hangs in firmware, others untested....

1ceee0d5 09/28/2012 08:40 pm Paolo Bonzini

iostatus: change is_read to a bool

Do this while we are touching this part of the code, before introducing
more uses of "int is_read".

Signed-off-by: Paolo Bonzini <>
Reviewed-by: Eric Blake <>
Signed-off-by: Kevin Wolf <>

3e1caa5f 09/28/2012 08:40 pm Paolo Bonzini

iostatus: reorganize io error code

Move the common part of IDE/SCSI/virtio error handling to the block
layer. The new function bdrv_error_action subsumes all three of
bdrv_emit_qmp_error_event, vm_stop, bdrv_iostatus_set_err.

The same scheme will be used for errors in block jobs....

92aa5c6d 09/28/2012 08:40 pm Paolo Bonzini

iostatus: move BlockdevOnError declaration to QAPI

This will let block-stream reuse the enum. Places that used the enums
are renamed accordingly.

Signed-off-by: Paolo Bonzini <>
Reviewed-by: Eric Blake <>
Signed-off-by: Kevin Wolf <>

ff06f5f3 09/28/2012 08:14 pm Paolo Bonzini

iostatus: rename BlockErrorAction, BlockQMPEventAction

We want to remove knowledge of BLOCK_ERR_STOP_ENOSPC from drivers;
drivers should only be told whether to stop/report/ignore the error.
On the other hand, we want to keep using the nicer BlockErrorAction...

0cea71a2 09/28/2012 01:16 pm Michael S. Tsirkin

virtio: don't mark unaccessed memory as dirty

offset of accessed buffer is calculated using iov_length, so it
can exceed accessed len. If that happens
math in len - offset wraps around, and size becomes wrong.
As real value is 0, so this is harmless but unnecessary....

40bad8f3 09/28/2012 01:16 pm Michael S. Tsirkin

virtio-net: fix used len for tx

There is no out sg for TX, so used buf length for tx
should always be 0.

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

385ce95d 09/28/2012 01:16 pm Amit Shah

virtio: use unsigned int for counting bytes in vq

The virtqueue_avail_bytes() function counts bytes in an int. Use an
unsigned int instead.

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

0d8d7690 09/28/2012 01:16 pm Amit Shah

virtio: Introduce virtqueue_get_avail_bytes()

The current virtqueue_avail_bytes() is oddly named, and checks if a
particular number of bytes are available in a vq. A better API is to
fetch the number of bytes available in the vq, and let the caller do
what's interesting with the numbers....

ad3005ad 09/28/2012 01:16 pm Amit Shah

virtio-serial-bus: let chardev know the exact number of bytes requested

Using the virtqueue_avail_bytes() function had an unnecessarily
crippling effect on the number of bytes needed by the guest as reported
to the chardev layer in the can_read() callback....

3dc3e7dd 09/26/2012 06:48 pm Francesco Lavra

Versatile Express: Add modelling of NOR flash

This patch adds modelling of the two NOR flash banks found on the
Versatile Express motherboard. Tested with U-Boot running on an emulated
Versatile Express, with either A9 or A15 CoreTile.

Signed-off-by: Francesco Lavra <>...

661bafb3 09/26/2012 06:47 pm Francesco Lavra

Versatile Express: Fix NOR flash 0 address and remove flash alias

In the A series memory map (implemented in the Cortex A15 CoreTile), the
first NOR flash bank (flash 0) is mapped to address 0x08000000, while
address 0x00000000 can be configured as alias to either the first or the...

14c126ba 09/26/2012 06:46 pm Brendan Fennell

pl190: fix read of VECTADDR

Reading VECTADDR was causing us to set the current priority to
the wrong value, the most obvious effect of which was that we
would return the vector for the wrong interrupt as the result
of the read.

Signed-off-by: Brendan Fennell <>...

9892cae3 09/26/2012 06:46 pm Meador Inge

hw/armv7m_nvic: Correctly register GIC region when setting up NVIC

When setting up the NVIC memory regions the memory range
0x100..0xcff is aliased to an IO memory region that belongs
to the ARM GIC. This aliased region should be added to the
NVIC memory container, but the actual GIC IO memory region...

9a3a8895 09/26/2012 06:42 pm Paolo Bonzini

pci-assign: use monitor_handle_fd_param

There is no need to open-code the choice between a file descriptor
number or a named one. Just use monitor_handle_fd_param, which
also takes care of printing the error message.

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

39c138c8 09/26/2012 10:24 am David Gibson

usb: Fix usb_packet_map() in the presence of IOMMUs

With the IOMMU infrastructure introduced before 1.2, we need to use
dma_memory_map() to obtain a qemu pointer to memory from an IO bus address.
However, dma_memory_map() alters the given length to reflect the length...

356d8372 09/26/2012 10:24 am Gerd Hoffmann

add pc-1.3 machine type

Signed-off-by: Gerd Hoffmann <>

a2879190 09/26/2012 10:24 am Gerd Hoffmann

compat: turn off msi/msix on xhci for old machine types

Signed-off-by: Gerd Hoffmann <>

d95e74ea 09/26/2012 10:24 am Gerd Hoffmann

xhci: tweak limits

Set maxports to 15. This is what the usb3 route string can handle.

Set maxslots to 64. This is more than the number of root ports we
can have, but with additional hubs you can end up with more devices.

Set maxintrs (aka msi vectors) to 16. Should be enougth, especially...

ccaf87a0 09/26/2012 10:24 am Gerd Hoffmann

xhci: route string & usb hub support

Parse route string in slot contexts and
support devices connected via hub.

1d8a4e69 09/26/2012 10:24 am Gerd Hoffmann

xhci: create a memory region for each port

Signed-off-by: Gerd Hoffmann <>

cae5d3f4 09/26/2012 10:24 am Hans de Goede

ehci: Fix interrupt packet MULT handling

There are several issues with our handling of the MULT epcap field
of interrupt qhs, which this patch fixes.

1) When we don't execute a transaction because of the transaction counter
being 0, p->async stays EHCI_ASYNC_NONE, and the next time we process the...

ac05f349 09/26/2012 04:05 am Amos Kong

add a boot parameter to set reboot timeout

Added an option to let qemu transfer a configuration file to bios,
"etc/boot-fail-wait", which could be specified by command
-boot reboot-timeout=T
T have a max value of 0xffff, unit is ms.

With this option, guest will wait for a given time if not find...

f4306941 09/26/2012 02:38 am Gerd Hoffmann

add pc-1.3 machine type

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

183c5eaa 09/26/2012 02:38 am Gerd Hoffmann

compat: turn off msi/msix on xhci for old machine types

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

c08ba66f 09/26/2012 02:38 am Gerd Hoffmann

ivshmem: add 64bit option

This patch adds a "use64" property which will make the ivshmem driver
register a 64bit memory bar when set, so you have something to play with
when testing 64bit pci bits. It also allows to have quite big shared
memory regions, like this:...

d010f91c 09/26/2012 02:37 am Igor Mammedov

acpi: use notifier for signaling guest system_powerdown command

In addition, there is no need to allocate an extra irq just for
rising SCI in irq handler. Just rise SCI right from notifier
handler instead.

Signed-off-by: Igor Mammedov <>...

c72ddb1e 09/26/2012 02:37 am Igor Mammedov

target-arm: use notifier for signaling guest system_powerdown command

Acked-by: Peter Maydell <>
Signed-off-by: Igor Mammedov <>
Signed-off-by: Anthony Liguori <>

bea42280 09/26/2012 02:37 am Igor Mammedov

target-sparc: use notifier for signaling guest system_powerdown command

Signed-off-by: Igor Mammedov <>
Signed-off-by: Anthony Liguori <>

d352210a 09/26/2012 12:06 am Anthony Liguori

Merge remote-tracking branch 'bonzini/scsi-next' into staging

  • bonzini/scsi-next:
    SCSI: Standard INQUIRY data should report HiSup flag as set.
    scsi-disk: use scsi_data_cdb_length
    scsi: introduce scsi_cdb_length and scsi_data_cdb_length
    scsi-disk: fix check for out-of-range LBA...
3988475b 09/26/2012 12:06 am Anthony Liguori

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

  • stefanha/trivial-patches:
    w32: Always use standard instead of native format strings
    net/socket: Fix compiler warning (regression for MinGW)
    linux-user: Remove redundant null check and replace free by g_free...
5d40097f 09/23/2012 09:11 am Stefan Weil

cadence_uart: Fix buffer overflow

Report from smatch:
hw/cadence_uart.c:413 uart_read(13) error: buffer overflow 's->r' 18 <= 18

This fixes read access to s->r[R_MAX] which is behind the limits of s->r.

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

81396266 09/23/2012 09:11 am Stefan Weil

lm4549: Fix buffer overflow

Report from smatch:
lm4549.c:234 lm4549_write_samples(14) error:
buffer overflow 's->buffer' 1024 <= 1024

There must be enough space to add two entries starting with index
s->buffer_level, therefore the old check was wrong.
...

997f1567 09/23/2012 09:11 am Stefan Weil

ioh3420: Remove unreachable code

Report from smatch:
hw/ioh3420.c:128 ioh3420_initfn(35) info: ignoring unreachable code.

Signed-off-by: Stefan Weil <>
Reviewed-by: Juan Quintela <>
Signed-off-by: Stefan Hajnoczi <>

12dabc79 09/23/2012 09:11 am Stefan Weil

pflash_cfi01: Fix warning caused by unreachable code

Report from smatch:
hw/pflash_cfi01.c:431 pflash_write(180) info: ignoring unreachable code.

Instead of removing the return statement after the switch statement,
the patch replaces the return statements in the switch statement by...

cfb75cb9 09/21/2012 08:53 pm Aurelien Jarno

Merge branch 'usb.65' of git://git.kraxel.org/qemu

  • 'usb.65' of git://git.kraxel.org/qemu:
    uhci: Don't queue up packets after one with the SPD flag set
    usb-redir: Revert usb-redir part of commit 93bfef4c
    usb-redir: Add chardev open / close debug logging...
e93176d5 09/21/2012 05:17 pm Paolo Bonzini

scsi-disk: use scsi_data_cdb_length

This simplifies and unifies the parsing of READ, WRITE and WRITE SAME
commands.

Signed-off-by: Paolo Bonzini <>

1109c894 09/21/2012 05:17 pm Ronnie Sahlberg

SCSI: Standard INQUIRY data should report HiSup flag as set.

QEMU as far as I know only reports LUN numbers using the modes that
are described in SAM4.
As such, since all LUN numbers generated by the SCSI emulation in QEMU
follow SAM4, we should set the HiSup bit in the standard INQUIRY data...

bb729f75 09/21/2012 05:14 pm Paolo Bonzini

scsi: introduce scsi_cdb_length and scsi_data_cdb_length

Signed-off-by: Paolo Bonzini <>

444bc908 09/21/2012 05:12 pm Paolo Bonzini

scsi-disk: introduce check_lba_range

Abstract the test for an out-of-range (starting block, block count)
pair.

Signed-off-by: Paolo Bonzini <>

12ca76fc 09/21/2012 05:12 pm Paolo Bonzini

scsi-disk: fix check for out-of-range LBA

This fix is needed to correctly handle 0-block read and writes.
Without it, a 0-block access at LBA 0 would underflow.

Signed-off-by: Paolo Bonzini <>

262e1eaa 09/19/2012 10:40 pm Aurelien Jarno

pflash_cfi01: fix vendor specific extended query

pflash_cfi01 announces a version number of 1.1, which implies
"Protection Register Information" and "Burst Read information"
sections, which are not provided.

Decrease the version number to 1.0 so that only the "Protection...

eb99c9a9 09/19/2012 10:40 pm Peter Maydell

hw/pflash_cfi012: Use host-utils.h ctz32()

Drop the private reimplementation of ctz32() from pflash_cfi012
in favour of using the standard version from host-utils.h.

Signed-off-by: Peter Maydell <>
Reviewed-by: Stefan Weil <>...

8354cd72 09/19/2012 07:48 pm Chris Wulff

xilinx_timer: Fix a compile error if debug enabled

There was a missing include of qemu-log and a variable name in a printf was out
of date.

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

c0a1dcb9 09/19/2012 07:48 pm Peter A. G. Crosthwaite

xilinx_timer: Removed comma in device name

Fixes an error in a61e4b07a30c062260d2d01771773f14820d1eb7

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

e03377ae 09/19/2012 07:48 pm Peter A. G. Crosthwaite

xilinx_timer: Send dbg msgs to stderr not stdout

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

919f89f4 09/19/2012 07:48 pm Peter A. G. Crosthwaite

xilinx_timer: Fixed "frequency" prop name

The "frequency" qdev prop matches the "clock-frequency" property in Xilinx EDK.
Renamed "frequency" -> "clock-frequency" accordingly.

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

4b5e5210 09/19/2012 07:48 pm Peter A. G. Crosthwaite

xilinx.h: Error check when setting links

Assert that the ethernet and dma controller are sucessfully linked to their
peers.

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

c9b6e1f6 09/19/2012 07:48 pm Peter A. G. Crosthwaite

xilinx: fix names of ethernet and dma links.

These names were incorrect. Fixed to match to actual link names

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

109820df 09/17/2012 06:23 pm Anthony Liguori

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

  • kwolf/for-anthony:
    block: Don't forget to delete temporary file
    Don't require encryption password for 'qemu-img info' command
    qemu-img: Add json output option to the info command.
    qapi: Add SnapshotInfo and ImageInfo....
509e9c46 09/17/2012 06:21 pm Anthony Liguori

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

  • stefanha/trivial-patches:
    configure: fix seccomp check
    arch_init.c: add missing '%' symbols before PRIu64 in debug printfs
    kvm: Fix warning from static code analysis
    qapi: Fix enumeration typo error...
cd6dcc71 09/17/2012 06:21 pm Anthony Liguori

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

  • spice/spice.v60:
    hw/qxl: support client monitor configuration via device
    qxl: add trace-event for QXL_IO_LOG
    hw/qxl: tracing fixes
    qxl: better cleanup for surface destroy
    qxl: Ignore set_client_capabilities pre/post migrate...
de71bd6f 09/17/2012 06:20 pm Anthony Liguori

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

  • stefanha/net:
    net: EAGAIN handling for net/socket.c TCP
    net: EAGAIN handling for net/socket.c UDP
    net: asynchronous send/receive infrastructure for net/socket.c
    net: broadcast hub packets if at least one port can receive...
31e165f1 09/17/2012 06:20 pm Anthony Liguori

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

  • qemu-kvm/uq/master:
    kvm: Rename irqchip_inject_ioctl to irq_set_ioctl
    kvm: Stop flushing coalesced MMIO on vmexit
    VGA: Flush coalesced MMIO on related MMIO/PIO accesses
    memory: Flush coalesced MMIO on mapping and state changes...
ed0ec1aa 09/17/2012 06:18 pm Jan Kiszka

pc: Drop practically unused BOCHS BIOS debug ports

We have debugcon these days to listen on those ports that receive debug
messages. Also drop the others that have no effect anymore.

Signed-off-by: Jan Kiszka <>
Signed-off-by: Anthony Liguori <>

89c33337 09/15/2012 08:51 pm Blue Swirl

Remove unused CONFIG_TCG_PASS_AREG0 and dead code

Now that CONFIG_TCG_PASS_AREG0 is enabled for all targets,
remove dead code and support for !CONFIG_TCG_PASS_AREG0 case.

Remove dyngen-exec.h and all references to it. Although included by
hw/spapr_hcall.c, it does not seem to use it....

f237ddbb 09/14/2012 10:40 am Stefan Hajnoczi

net: clean up usbnet_receive()

The USB network interface has two code paths depending on whether or not
RNDIS mode is enabled. Refactor usbnet_receive() so that there is a
common path throughout the function instead of duplicating everything
across if (is_rndis(s)) ... else ... code paths....

190563f9 09/14/2012 10:40 am Stefan Hajnoczi

net: fix usbnet_receive() packet drops

The USB network interface has a single buffer which the guest reads
from. This patch prevents multiple calls to usbnet_receive() from
clobbering the input buffer. Instead we queue packets until buffer
space becomes available again....

987a9b48 09/14/2012 10:40 am Paolo Bonzini

net: notify iothread after flushing queue

virtio-net has code to flush the queue and notify the iothread
whenever new receive buffers are added by the guest. That is
fine, and indeed we need to do the same in all other drivers.
However, notifying the iothread should be work for the network...

e8b4c680 09/14/2012 10:40 am Paolo Bonzini

e1000: flush queue whenever can_receive can go from false to true

When the guests replenish the receive ring buffer, the network device
should flush its queue of pending packets. This is done with
qemu_flush_queued_packets.

e1000's can_receive can go from false to true when RCTL or RDT are...

a98b1402 09/14/2012 10:40 am Paolo Bonzini

xen: flush queue when getting an event

xen does not have a register that, when written, will cause can_receive
to go from false to true. However, flushing the queue can be attempted
whenever the front-end raises its side of the Xen event channel. There...

1069985f 09/14/2012 10:40 am Bo Yang

eepro100: Fix network hang when rx buffers run out

This is reported by QA. When installing os with pxe, after the initial
kernel and initrd are loaded, the procedure tries to copy files from install
server to local harddisk, the network becomes stall because of running out of...

0546b8c2 09/14/2012 10:21 am Stefan Weil

Spelling fixes in comments and documentation

These wrong spellings were detected by codespell:

  • successully -> successfully
  • alot -> a lot
  • wanna -> want to
  • infomation -> information
  • occured -> occurred

["also is" -> "is also" and "ressources" -> "resources" suggested by...

aade7b91 09/14/2012 10:21 am Stefan Weil

Fix spelling (licenced -> licensed) in GPL

The patch also fixes the case of "written".

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

52a8e968 09/14/2012 10:21 am Stefan Weil

Spelling fixes in comments and macro names (ressource -> resource)

Macro XEN_HOST_PCI_RESOURCE_BUFFER_SIZE is only used locally,
so the change should be safe.

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

93d3ad2a 09/14/2012 10:21 am Stefan Weil

srp: Don't use QEMU_PACKED for single elements of a structured type

QEMU_PACKED results in a MinGW compiler warning when it is
used for single structure elements:

warning: 'gcc_struct' attribute ignored

Using QEMU_PACKED for the whole structure avoids the compiler warning...

fc3f6e1b 09/13/2012 10:50 am Hans de Goede

usb-redir: Add support for migration

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

09054d19 09/13/2012 10:50 am Hans de Goede

usb-redir: Add chardev open / close debug logging

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

35efba2c 09/13/2012 10:50 am Hans de Goede

usb-redir: Revert usb-redir part of commit 93bfef4c

Commit 93bfef4c6e4b23caea9d51e1099d06433d8835a4 makes qemu-devices
which report the qemu version string to the guest in some way use a
qemu_get_version function which reports a machine-specific version string....

72a04d0c 09/13/2012 10:50 am Hans de Goede

uhci: Don't queue up packets after one with the SPD flag set

Don't queue up packets after a packet with the SPD (short packet detect)
flag set. Since we won't know if the packet will actually be short until it
has completed, and if it is short we should stop the queue....

8f5457eb 09/13/2012 10:50 am Hans de Goede

ehci: Don't set seen to 0 when removing unseen queue-heads

When removing unseen queue-heads from the async queue list, we should not
set the seen flag to 0, as this may cause them to be removed by
ehci_queues_rip_unused() during the next call to ehci_advance_async_state()...

ceab6f96 09/13/2012 10:50 am Hans de Goede

ehci: Walk async schedule before and after migration

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

8e60452a 09/13/2012 10:50 am Hans de Goede

usb-redir: Change cancelled packet code into a generic packet-id queue

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

9a8d4067 09/13/2012 10:50 am Hans de Goede

usb-redir: Add an already_in_flight packet-id queue

After a live migration, the usb-hcd will re-queue all packets by
walking over the schedule in the guest memory again, but requests which
were encountered on the migration source before will already be in flight,...

3f4be328 09/13/2012 10:50 am Hans de Goede

usb-redir: Store max_packet_size in endp_data

So that we've a place to migrate it to / from to allow restoring it after
migration.

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

a639ab04 09/13/2012 08:31 am Alon Levy

hw/qxl: support client monitor configuration via device

Until now we used only the agent to change the monitor count and each
monitor resolution. This patch introduces the qemu part of using the
device as the mediator instead of the agent via virtio-serial....

917ae08c 09/13/2012 08:31 am Alon Levy

hw/qxl: tracing fixes

Add two new trace events:
qxl_send_events(int qid, uint32_t events) "%d %d"
qxl_set_guest_bug(int qid) "%d"

Change qxl_io_unexpected_vga_mode parameters to be equivalent to those
of qxl_io_write for easier grouping under a single systemtap probe....

1a1bc085 09/13/2012 08:31 am Alon Levy

qxl: add trace-event for QXL_IO_LOG

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