Statistics
| Branch: | Revision:

root @ 7c9958b0

# Date Author Comment
cbd2d434 06/07/2012 05:19 pm Jan Kiszka

msi: Invoke msi/msix_reset from PCI core

There is no point in pushing this burden to the devices, they tend to
forget to call them (like intel-hda, ahci, xhci did). Instead, reset
functions are now called from pci_device_reset. They do nothing if
MSI/MSI-X is not in use....

7c9958b0 06/07/2012 05:19 pm Jan Kiszka

msi: Guard msi/msix_write_config with msi_present

Terminate msi/msix_write_config early if support is not enabled. This
allows to remove checks at the caller site if MSI is optional.

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

868a1a52 06/07/2012 05:18 pm Jan Kiszka

ahci: Fix reset of MSI function

Call msi_reset on device reset as still required by the core.

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

8e729e3b 06/07/2012 05:18 pm Jan Kiszka

intel-hda: Fix reset of MSI function

Call msi_reset on device reset as still required by the core.

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

8ab60a07 06/07/2012 05:18 pm Jan Kiszka

ahci: Clean up reset functions

Properly register reset functions via the device class.

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

520064c8 06/07/2012 05:18 pm Jan Kiszka

msi: Guard msi_reset with msi_present

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

e9adf260 06/07/2012 05:18 pm Michael S. Tsirkin

shpc: unparent device before free

Recent core change removed unparent
so we need to do this in all callers now.

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

fee9d348 06/07/2012 05:18 pm Fernando Luis Vazquez Cao

rtl8139: honor RxOverflow flag in can_receive method

Some drivers (Linux' 8139too among them) rely on the NIC
injecting an interrupt in the event of a receive buffer overflow
and, accordingly, set the RxOverflow bit in the interrupt
mask. Unfortunately rtl8139's can_receive method ignores the...

8cc9b43f 06/04/2012 11:19 am Peter A. G. Crosthwaite

target-microblaze: lwx/swx: first implementation

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

9c92bf7f 06/04/2012 07:58 am Jason Wang

Revert "rtl8139: do the network/host communication only in normal operating mode"

This reverts commit ff71f2e8cacefae99179993204172bc65e4303df. This is because
the linux 8139cp driver would leave the card in "Config Register Write Enable"
mode after the eeprom were read or write ( which is unexpected in the spec...

74f4d227 06/03/2012 02:56 am Anthony Liguori

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

  • qemu-kvm/uq/master:
    virtio/vhost: Add support for KVM in-kernel MSI injection
    msix: Add msix_nr_vectors_allocated
    kvm: Enable use of kvm_irqchip_in_kernel in hwlib code
    kvm: Introduce kvm_irqchip_add/remove_irqfd...
2eb02f28 06/03/2012 02:54 am Anthony Liguori

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

  • kwolf/for-anthony:
    ahci: SATA FIS is 20 bytes, not 0x20
    virtio-blk: Fix geometry sector calculation
    block: prevent snapshot mode $TMPDIR symlink attack
    sheepdog: fix return value of do_load_save_vm_state...
a854972f 06/01/2012 11:56 am Anthony Liguori

Update version to open the 1.2 development branch

Signed-off-by: Anthony Liguori <>

78260a5f 06/01/2012 11:55 am Anthony Liguori

Update version for 1.1.0 release

Signed-off-by: Anthony Liguori <>

b3dbb954 05/31/2012 03:53 am Anthony Liguori

Update version for 1.1.0-rc4 release

Signed-off-by: Anthony Liguori <>

272d28ec 05/31/2012 03:49 am Anthony Liguori

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

  • origin/master:
    pc-bios: Update OpenBIOS images
6f129261 05/30/2012 08:04 pm Blue Swirl

pc-bios: Update OpenBIOS images

Update OpenBIOS images to r1060 built from submodule.

Signed-off-by: Blue Swirl <>

4bb9c939 05/30/2012 03:51 pm Daniel Verkamp

ahci: SATA FIS is 20 bytes, not 0x20

As in the SATA and AHCI specifications, a FIS is 5 Dwords of 4 bytes
each, which comes to 20 bytes (decimal), not 0x20.

Signed-off-by: Daniel Verkamp <>
Signed-off-by: Kevin Wolf <>

136be99e 05/30/2012 03:51 pm Christian Borntraeger

virtio-blk: Fix geometry sector calculation

Currently the sector value for the geometry is masked, even if the
user usesa command line parameter that explicitely gives a number.
This breaks dasd devices on s390. A dasd device can have
a physical block size of 4096 (== same for logical block size)...

c2d76497 05/30/2012 11:18 am Jim Meyering

block: prevent snapshot mode $TMPDIR symlink attack

In snapshot mode, bdrv_open creates an empty temporary file without
checking for mkstemp or close failure, and ignoring the possibility
of a buffer overrun given a surprisingly long $TMPDIR.
Change the get_tmp_filename function to return int (not void),...

6f3c714e 05/30/2012 10:58 am MORITA Kazutaka

sheepdog: fix return value of do_load_save_vm_state

bdrv_save_vmstate and bdrv_load_vmstate should return the vmstate size
on success, and -errno on error.

Signed-off-by: MORITA Kazutaka <>
Signed-off-by: Kevin Wolf <>

47ce9ef7 05/30/2012 10:49 am Stefan Weil

virtio: Fix compiler warning for non Linux hosts

The local variables ret, i are only used if linux is defined.

Signed-off-by: Stefan Weil <>
Signed-off-by: Kevin Wolf <>

d6111501 05/30/2012 10:02 am Anthony Liguori

Merge remote-tracking branch 'mdroth/qga-pull-5-29-12-v2' into staging

  • mdroth/qga-pull-5-29-12-v2:
    qemu-ga: avoid blocking on atime update when reading /etc/mtab
    qemu-ga: Fix use of environ on Darwin
eba25057 05/30/2012 09:48 am Jim Meyering

block: prevent snapshot mode $TMPDIR symlink attack

In snapshot mode, bdrv_open creates an empty temporary file without
checking for mkstemp or close failure, and ignoring the possibility
of a buffer overrun given a surprisingly long $TMPDIR.
Change the get_tmp_filename function to return int (not void),...

13526728 05/30/2012 05:28 am Eduardo Habkost

Expose CPUID leaf 7 only for -cpu host

Changes v2 -> v3;
- Check for kvm_enabled() before setting cpuid_7_0_ebx_features

Changes v1 -> v2:
- Use kvm_arch_get_supported_cpuid() instead of host_cpuid() on
cpu_x86_fill_host().

We should use GET_SUPPORTED_CPUID for all bits on "-cpu host"...
1643f2b2 05/30/2012 05:28 am Gerd Hoffmann

vnc: fix segfault in vnc_display_pw_expire()

NULL pointer dereference in case no vnc server is configured.
Catch this and return -EINVAL like vnc_display_password() does.

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

e78bd5ab 05/30/2012 05:28 am Gerd Hoffmann

xhci: add usage info to docs

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

9e2fa418 05/30/2012 05:00 am Michael Roth

qemu-ga: avoid blocking on atime update when reading /etc/mtab

Currently we re-read/re-process /etc/mtab to get an updated list of
mounts when guest-fsfreeze-thaw is called. This can cause an atime
update on /etc/mtab, which will block if we're in a frozen state....

eecae147 05/30/2012 05:00 am Andreas Färber

qemu-ga: Fix use of environ on Darwin

Use _NSGetEnviron() helper to access the environment.

Signed-off-by: Andreas Färber <>
Cc: Charlie Somerville <>
Signed-off-by: Michael Roth <>

8294a64d 05/30/2012 04:19 am Avi Kivity

vga: fix vram double-mapping with -vga std and -M pc-0.12

With pc-0.12, we map the video RAM both through the PCI BAR (the guest does
this) and through a fixed mapping at 0xe0000000. The memory API doesn't allow
this double map, and aborts.

Fix by using an alias....

9c3a596a 05/30/2012 04:19 am Scott Moser

fix multiboot loading if load_end_addr == 0

The previous multiboot load code did not treat the case where
load_end_addr was 0 specially. The multiboot specification says the
following: * load_end_addr
Contains the physical address of the end of the data segment....

a6de8ed8 05/30/2012 04:19 am Amos Kong

pci: call object_unparent() before free_qdev()

Start VM with 8 multiple-function block devs, hot-removing
those block devs by 'device_del ...' would cause qemu abort.

| (qemu) device_del virti0-0-0 | (qemu) ** |ERROR:qom/object.c:389:object_delete: assertion failed: (obj->ref == 0)...

1c4ad9d2 05/29/2012 02:54 pm Anthony Liguori

Merge remote-tracking branch 'afaerber-or/cocoa-for-upstream' into staging

  • afaerber-or/cocoa-for-upstream:
    cocoa: Suppress Cocoa frontend for -qtest
    arch_init: Fix AltiVec build on Darwin/ppc
60b46aa2 05/29/2012 12:40 pm Andreas Färber

cocoa: Suppress Cocoa frontend for -qtest

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

f283edc4 05/29/2012 12:38 pm Andreas Färber

arch_init: Fix AltiVec build on Darwin/ppc

Commit f29a56147b66845914d0a645bf9b4c5bb9a6af57 (implement
-no-user-config command-line option (v3)) introduced uses of bool
in arch_init.c. Shortly before that usage is support code for
AltiVec (conditional to ALTIVEC)....

dd86df75 05/29/2012 12:32 pm Anthony Liguori

Merge remote-tracking branch 'sstabellini/for_1.1_rc3' into staging

  • sstabellini/for_1.1_rc3:
    Call xc_domain_shutdown with the reboot flag when the guest requests a reboot.
    xen: Fix PV-on-HVM
    xen_disk: properly update stats in ioreq_release()
    xen_disk: use bdrv_aio_flush instead of bdrv_flush...
422831fc 05/29/2012 12:31 pm Anthony Liguori

Merge remote-tracking branch 'mdroth/qga-pull-5-24-12' into staging

  • mdroth/qga-pull-5-24-12:
    qemu-ga: Fix missing environ declaration
    configure: check if environ is declared
30676153 05/29/2012 12:30 pm Anthony Liguori

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

  • kwolf/for-anthony:
    fdc-test: introduced qtest no_media_on_start and cmos qtest for floppy
    fdc: fix media detection
    fdc: floppy drive should be visible after start without media
    qemu-iotests: mark 035 qcow2-only...
7943df57 05/29/2012 12:30 pm Anthony Liguori

Merge remote-tracking branch 'kiszka/queues/slirp' into staging

  • kiszka/queues/slirp:
    slirp: Avoid redefining MAX_TCPOPTLEN
    slirp: Avoid statements without effect on Big Endian host
    slirp: Untangle TCPOLEN_* from TCPOPT_*
d501f847 05/29/2012 12:28 pm Anthony Liguori

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

  • bonzini/scsi-next:
    ISCSI: Switch to using READ16/WRITE16 for I/O to the LUN
    ISCSI: Only call READCAPACITY16 for SBC devices, use READCAPACITY10 for MMC
    ISCSI: get device type at connection time...
917cfc1f 05/28/2012 11:44 pm Andreas Färber

slirp: Avoid redefining MAX_TCPOPTLEN

MAX_TCPOPTLEN is being defined as 32. Darwin already has it as 40,
causing a warning. The value is only used to declare an array,
into which currently 4 bytes are written at most.

Therefore always override MAX_TCPOPTLEN for now....

9b24d8e9 05/28/2012 11:31 pm Andreas Färber

slirp: Avoid statements without effect on Big Endian host

Darwin has HTON*/NTOH* macros that on BE simply return the argument.
This is incompatible with SLIRP's use of these macros as a statement.

Undefine the macros in the HOST_WORDS_BIGENDIAN code path to redefine...

f4dfa67f 05/28/2012 03:04 pm Ronnie Sahlberg

ISCSI: Switch to using READ16/WRITE16 for I/O to the LUN

This allows using LUNs bigger than 2TB. Keep using READ10 for other
device types such as MMC.

Signed-off-by: Ronnie Sahlberg <>

6bcd1346 05/28/2012 03:04 pm Ronnie Sahlberg

ISCSI: Only call READCAPACITY16 for SBC devices, use READCAPACITY10 for MMC

Signed-off-by: Ronnie Sahlberg <>

c7b4a952 05/28/2012 03:04 pm Paolo Bonzini

ISCSI: change num_blocks to 64-bit

Signed-off-by: Paolo Bonzini <>

dbfff6d7 05/28/2012 03:04 pm Ronnie Sahlberg

ISCSI: get device type at connection time

This is needed to avoid READ CAPACITY for MMC devices.

Signed-off-by: Ronnie Sahlberg <>
Signed-off-by: Paolo Bonzini <>

c9b9f682 05/28/2012 03:04 pm Ronnie Sahlberg

ISCSI: redo how we set up the events

Call qemu_notify_event() after updating events. Otherwise, If we add
an event for -is-writeable but the socket is already writeable there
may be a delay before the event callback is actually triggered.

Those delays would in particular hurt performance during BIOS boot and...

e20e48a8 05/28/2012 02:45 pm Andreas Färber

slirp: Untangle TCPOLEN_* from TCPOPT_*

Commit b72210568ef0c0fb141a01cffb71a09c4efa0364 (slirp: clean up
conflicts with system headers) enclosed TCPOLEN_MAXSEG with an #ifdef
TCPOPT_EOL. This broke the build on illumos, which has TCPOPT_*
but not TCPOLEN_*....

24f50d7e 05/27/2012 08:52 pm Andreas Färber

tcg/ppc: Handle _CALL_DARWIN being undefined on Darwin

powerpc-apple-darwin9-gcc-4.2.1 (GCC) 4.2.1 (Apple Inc. build 5577)
does not define _CALL_DARWIN, leading to unexpected behavior w.r.t.
register clobbering and stack frame layout.

Since _CALL_DARWIN is a reserved identifier, define a custom...

7cd33161 05/25/2012 07:23 pm Pavel Hrdina

fdc-test: introduced qtest no_media_on_start and cmos qtest for floppy

As default a guest has always one floppy drive so 0x10 byte in CMOS
has to have 0x40 value. Higher 4 bits means that the first floppy drive
is 1.44 Mb 3"5 drive and lower 4 bits means the second drive is not present....

cfb08fba 05/25/2012 07:21 pm Pavel Hrdina

fdc: fix media detection

We have to set up 'media_changed' after guest start so floppy driver
could detect that there is no media in drive. For this purpose we call
'fdctrl_change_cb' instead of 'fd_revalidate' in 'fdctrl_connect_drives'.
'fd_revalidate' is called inside 'fdctrl_change_cb'....

9ecd3947 05/25/2012 07:18 pm Pavel Hrdina

fdc: floppy drive should be visible after start without media

If you start guest with floppy drive but without media inserted, guest
still should see floppy drive pressent.

Signed-off-by: Pavel Hrdina <>
Signed-off-by: Kevin Wolf <>

b84762e2 05/25/2012 07:13 pm Stefan Hajnoczi

qemu-iotests: mark 035 qcow2-only

The 035 parallel aio write test relies on knowledge of qcow2 metadata
layout to stress parallel L2 table accesses. This only works for qcow2
unless we add additional calculations for qed or other formats.

Mark this test as qcow2-only....

b6c14762 05/25/2012 07:12 pm Jim Meyering

qcow2: don't leak buffer for unexpected qcow_version in header

Signed-off-by: Jim Meyering <>
Signed-off-by: Kevin Wolf <>

9fda6ab1 05/25/2012 07:12 pm Richard W.M. Jones

qemu-img: Explain how rebase operation can be used to perform a 'diff' operation.

Signed-off-by: Richard W.M. Jones <>
Signed-off-by: Kevin Wolf <>

622b6057 05/25/2012 07:12 pm MORITA Kazutaka

sheepdog: mark image as snapshot when tag is specified

When a snapshot tag is specified in the filename, the opened image is
a snapshot.

Signed-off-by: MORITA Kazutaka <>
Signed-off-by: Kevin Wolf <>

cb595887 05/25/2012 07:12 pm MORITA Kazutaka

sheepdog: return -errno on error

On error, BlockDriver APIs should return -errno instead of -1.

Signed-off-by: MORITA Kazutaka <>
Signed-off-by: Kevin Wolf <>

b6fc8245 05/25/2012 07:12 pm MORITA Kazutaka

sheepdog: use heap instead of stack for BDRVSheepdogState

bdrv_create() is called in coroutine context now, so we cannot use
more stack than 1 MB in the function if we use ucontext coroutine.
This patch allocates BDRVSheepdogState, whose size is 4 MB, on the...

df021791 05/25/2012 07:12 pm Kevin Wolf

qcow2: Check qcow2_alloc_clusters_at() return value

When using qcow2_alloc_clusters_at(), the cluster allocation code
checked the wrong variable for an error code.

Signed-off-by: Kevin Wolf <>

12badfc2 05/25/2012 02:00 pm Jim Meyering

scsi: declare vmstate_info_scsi_requests to be static

Signed-off-by: Jim Meyering <>

2c02cbf6 05/24/2012 09:06 pm Luiz Capitulino

qemu-ga: Fix missing environ declaration

Commit 3674838cd05268954bb6473239cd7f700a79bf0f uses the environ global
variable, but is relying on environ to be declared somewhere else.

This worked for me because on F16 environ is declared in <unistd.h>, but
that doesn't happen in OpenBSD for example, causing a build failure....

8ab1bf12 05/24/2012 09:06 pm Luiz Capitulino

configure: check if environ is declared

Some systems may declare environ automatically, others don't. Check for it.

Signed-off-by: Luiz Capitulino <>
Signed-off-by: Michael Roth <>

aeb29b64 05/24/2012 06:35 pm Jan Kiszka

audio: Always call fini on exit

Not only clean up enabled voices but any registered one. Backends like
pulsaudio rely on unconditional fini handler invocations.

This fixes "Memory pool destroyed but not all memory blocks freed!"
warnings on VM shutdowns when pa is used and lockups of QEMU on shutdown...

f8687bab 05/24/2012 01:03 am Stefan Weil

es1370: Fix debug code

When DEBUG_ES1370 is defined, the compiler shows these warnings:

hw/es1370.c: In function ?es1370_update_voices?:
hw/es1370.c:414: warning: format ?%d? expects type ?int?, but argument 3 has type ?size_t?
hw/es1370.c: In function ?es1370_writel?:...

c48b0c80 05/22/2012 05:21 pm Anthony Liguori

Update version for 1.1.0-rc3

Signed-off-by: Anthony Liguori <>

a3400466 05/21/2012 11:40 pm dunrong huang

qdev: Fix memory leak

The str allocated in visit_type_str was not freed.

The visit_type_str function is an input visitor(<QMP/String/etc>-to-native)
here, it will allocate memory for caller, so the caller is responsible for
freeing the memory.

Reviewed-by: Stefan Weil <>...

4accd107 05/21/2012 11:40 pm Anthony PERARD

xen: Fix PV-on-HVM

In the context of PV-on-HVM under Xen, the emulated nics are supposed to be
unplug before the guest drivers are initialized, when the guest write to a
specific IO port.

Without this patch, the guest end up with two nics with the same MAC, the...

80a2ba3d 05/21/2012 11:40 pm Mark Langsdorf

use an uint64_t for the max_sz parameter in load_image_targphys

Allow load_image_targphys to load files on systems with more than 2G of
emulated memory by changing the max_sz parameter from an int to an
uint64_t.

Reviewed-by: Andreas F=E4rber <>...

f34e73cd 05/21/2012 11:40 pm Paolo Bonzini

virtio-blk: report non-zero status when failing SG_IO requests

Linux really looks only at scsi->errors for SG_IO requests; it does
not look at the virtio request status at all. Because of this, when
a SG_IO request is failed early with virtio_blk_req_complete(req,...

0e47931b 05/21/2012 11:40 pm Paolo Bonzini

virtio-blk: blockdev_mark_auto_del is transport-independent

Move it from virtio_blk_exit_pci to virtio_blk_exit.

This is included here because the next patch removes proxy->block.

Signed-off-by: Paolo Bonzini <>
Signed-off-by: Anthony Liguori <>

12c5674b 05/21/2012 11:40 pm Paolo Bonzini

virtio-blk: define VirtIOBlkConf

We will have to add another field to the virtio-blk configuration in
the next patch. Avoid a proliferation of arguments to virtio_blk_init.

Signed-off-by: Paolo Bonzini <>
Signed-off-by: Anthony Liguori <>

a6c5c84a 05/21/2012 11:40 pm Paolo Bonzini

virtio-blk: always enable VIRTIO_BLK_F_SCSI

VIRTIO_BLK_F_SCSI is supposed to mean whether the host can parse
SCSI requests, not execute them. You could run QEMU with scsi=on
and a file-backed disk, and QEMU would fail all SCSI requests even
though it advertises VIRTIO_BLK_F_SCSI....

2a633c46 05/21/2012 11:40 pm Orit Wassermann

virtio: check virtio_load return code

Otherwise we crash on error.

Signed-off-by: Ulrich Obergfell <>
Signed-off-by: Orit Wassermann <>
Signed-off-by: Paolo Bonzini <>
Signed-off-by: Anthony Liguori <>

b4f1a7ca 05/21/2012 11:31 pm Anthony Liguori

Merge remote-tracking branch 'mdroth/qga-pull-5-15-12' into staging

  • mdroth/qga-pull-5-15-12:
    qemu-ga: align versioning with QEMU_VERSION
    qemu-ga: fix segv after failure to open log file
    qemu-ga: guest-shutdown: use only async-signal-safe functions...
fba0c40b 05/21/2012 11:31 pm Stefan Weil

tests: Add rtc-test (fix test regression)

Commit 93e9eb6808c886f5f1c903b7ced1eed65de2ba39 added fdc-test,
but accidentally removed rtc-test because check-qtest-i386-y was
not enhanced but set twice.

This patch adds rtc-test again (and sorts both tests alphabetically)....

39853bbc 05/21/2012 07:22 pm Jan Kiszka

kvm: Introduce kvm_irqchip_add/remove_irqfd

Add services to associate an eventfd file descriptor as input with an
IRQ line as output. Such a line can be an input pin of an in-kernel
irqchip or a virtual line returned by kvm_irqchip_add_route.

Signed-off-by: Jan Kiszka <>...

bbf3b804 05/21/2012 07:22 pm Jan Kiszka

kvm: Enable use of kvm_irqchip_in_kernel in hwlib code

Provide a dummy kvm_kernel_irqchip so that kvm_irqchip_in_kernel can be
used by code that is not under CONFIG_KVM protection.

Signed-off-by: Jan Kiszka <>
Signed-off-by: Avi Kivity <>

cb697aaa 05/21/2012 07:22 pm Jan Kiszka

msix: Add msix_nr_vectors_allocated

Analogously to msi_nr_vectors_allocated, add a service for MSI-X. Will
be used by the virtio-pci layer.

Signed-off-by: Jan Kiszka <>
Signed-off-by: Avi Kivity <>

7d37d351 05/21/2012 07:22 pm Jan Kiszka

virtio/vhost: Add support for KVM in-kernel MSI injection

Make use of the new vector notifier to track changes of the MSI-X
configuration of virtio PCI devices. On enabling events, we establish
the required virtual IRQ to MSI-X message route and link the signaling...

bc4caf49 05/21/2012 07:22 pm Jan Kiszka

msix: Factor out msix_get_message

This helper will also be used by the upcoming config notifier.

Signed-off-by: Jan Kiszka <>
Signed-off-by: Avi Kivity <>

5b5f1330 05/21/2012 07:22 pm Jan Kiszka

msix: Invoke msix_handle_mask_update on msix_mask_all

In preparation of firing vector notifiers on mask changes, call
msix_handle_mask_update also from msix_mask_all. So far, this will have
no real effect.

Signed-off-by: Jan Kiszka <>...

2cdfe53c 05/21/2012 07:22 pm Jan Kiszka

msix: Introduce vector notifiers

Vector notifiers shall be triggered by the MSI/MSI-X core whenever a
relevant configuration change is programmed by the guest. In case of
MSI-X, changes are reported when the effective mask (global &&
per-vector) alters its state. On unmask, the current vector...

1df186df 05/21/2012 07:22 pm Jan Kiszka

kvm: Rename kvm_irqchip_add_route to kvm_irqchip_add_irq_route

We will add kvm_irqchip_add_msi_route, so let's make the difference
clearer.

Signed-off-by: Jan Kiszka <>
Signed-off-by: Avi Kivity <>

92b4e489 05/21/2012 07:22 pm Jan Kiszka

kvm: Introduce kvm_irqchip_add_msi_route

Add a service that establishes a static route from a virtual IRQ line to
an MSI message. Will be used for IRQFD and device assignment. As we will
use this service outside of CONFIG_KVM protected code, stub it properly....

1e2aa8be 05/21/2012 07:22 pm Jan Kiszka

kvm: Publicize kvm_irqchip_release_virq

This allows to drop routes created by kvm_irqchip_add_irq/msi_route
again.

Signed-off-by: Jan Kiszka <>
Signed-off-by: Avi Kivity <>

e7b20308 05/21/2012 07:22 pm Jan Kiszka

kvm: Make kvm_irqchip_commit_routes an internal service

Automatically commit route changes after kvm_add_routing_entry and
kvm_irqchip_release_virq. There is no performance relevant use case for
which collecting multiple route changes is beneficial. This makes...

fd4567d9 05/19/2012 06:53 pm Stefan Weil

tests: Fix linker failure for fdc-test

When QEMU was built with the simple trace backend, linking failed:

LINK  tests/fdc-test
oslib-posix.o: In function `trace_qemu_memalign':
qemu/bin/debug/x86/./trace.h:31: undefined reference to `trace3'
oslib-posix.o: In function `trace_qemu_vmalloc':...
d7f66b52 05/19/2012 06:51 pm Richard Sandiford

mips: Fix BC1ANY24F instructions

There's some dodgy application of De Morgan's law in the emulation
of the MIPS BC1ANY24F instructions: they end up branching only
if all CCs are false, rather than if one CC is.

Tested on mips64-linux-gnu, where it fixes the GCC MIPS3D tests....

77a8f1a5 05/19/2012 06:49 pm Alexander Graf

linux-user: Fix stale tbs after mmap

If we execute linux-user code that does the following:

  • A = mmap()
  • execute code in A
  • munmap(A)
  • B = mmap(), but mmap returns the same address as A
  • execute code in B

we end up executing a stale cached tb that contains translated code...

4636b9d1 05/19/2012 06:41 pm Blue Swirl

virtio-pci: add missing 'static'

There are no outside references to virtio_portio.
Add missing 'static' specifier.

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

5f2bf0fe 05/19/2012 06:39 pm Blue Swirl

sparc64: fix initrd loading

Initrd load address is too low, it conflicts with kernel load
address:
rom: requested regions overlap (rom phdr #0: /tmp/vmlinux-debian-6.0.4-sparc64. free=0x0000000000742519, addr=0x0000000000400000)
rom loading failed

Fix by making the initrd address variable, load initrd after kernel...

a2885387 05/18/2012 02:19 pm Roger Pau Monne

audio: split IN_T into two separate constants

Split IN_T into BSIZE and ITYPE, to avoid expansion if the OS has
defined macros for the intX_t and uintX_t types. The IN_T constant is
then defined in mixeng_template.h so it can be used by the
functions/macros on this header file....

ace2e4da 05/18/2012 01:17 pm Peter A. G. Crosthwaite

target-microblaze: impelemented swapx instructions

Implemented the swapb and swaph byte/halfword reversal instructions added
to microblaze v8.30

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

287d55c6 05/18/2012 05:30 am Avi Kivity

kvm: update vmxcap for EPT A/D, INVPCID, RDRAND, VMFUNC

Signed-off-by: Avi Kivity <>
Signed-off-by: Marcelo Tosatti <>

180640ea 05/17/2012 01:52 pm John V. Baboval

Call xc_domain_shutdown with the reboot flag when the guest requests a reboot.

Signed-off-by: John V. Baboval <>
Signed-off-by: Tom Goetz <>
Signed-off-by: Anthony PERARD <>...

a4f1a758 05/17/2012 01:52 pm Anthony PERARD

xen: Fix PV-on-HVM

In the context of PV-on-HVM under Xen, the emulated nics are supposed to be
unplug before the guest drivers are initialized, when the guest write to a
specific IO port.

Without this patch, the guest end up with two nics with the same MAC, the...

ba1dffed 05/17/2012 01:43 pm Stefano Stabellini

xen_disk: remove syncwrite option

This patch removes a dead option.

The same can be achieved removing BDRV_O_NOCACHE and BDRV_O_CACHE_WB
from the flags passed to bdrv_open.

Signed-off-by: Stefano Stabellini <>

c6961b7d 05/17/2012 01:43 pm Stefano Stabellini

xen_disk: use bdrv_aio_flush instead of bdrv_flush

Use bdrv_aio_flush instead of bdrv_flush.

Make sure to call bdrv_aio_writev/readv after the presync bdrv_aio_flush is fully
completed and make sure to call the postsync bdrv_aio_flush after
bdrv_aio_writev/readv is fully completed....

ed547766 05/17/2012 01:43 pm Jan Beulich

xen_disk: properly update stats in ioreq_release()

While for the "normal" case (called from blk_send_response_all())
decrementing requests_finished is correct, doing so in the parse error
case is wrong; requests_inflight needs to be decremented instead.
...

95d5d75e 05/17/2012 01:43 pm Stefano Stabellini

xen: disable rtc_clock

rtc_clock is only used by the RTC emulator (mc146818rtc.c), however Xen
has its own RTC emulator in the hypervisor so we can disable it.

Signed-off-by: Stefano Stabellini <>