Statistics
| Branch: | Revision:

root @ 136be99e

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

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

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

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

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

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

xen: do not initialize the interval timer and PCSPK emulator

PIT and PCSPK are emulated by the hypervisor so we don't need to emulate
them in Qemu: this patch prevents Qemu from waking up needlessly at
PIT_FREQ on Xen.

Signed-off-by: Stefano Stabellini <>

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

8efacc43 05/15/2012 05:17 pm Michael Roth

qemu-ga: align versioning with QEMU_VERSION

Previously qemu-ga version was defined seperately. Since it is aligned
with QEMU releases, use QEMU_VERSION instead. This also implies the
version bump for 1.1[-rcN] release of qemu-ga.

Reviewed-by: Michal Privoznik <>...

6c615ec5 05/15/2012 05:16 pm Michael Roth

qemu-ga: fix segv after failure to open log file

Currently, if we fail to open the specified log file (generally due to a
permissions issue), we'll assign NULL to the logfile handle (stderr,
initially) used by the logging routines, which can cause a segfault to...

d34b867d 05/15/2012 05:15 pm Luiz Capitulino

qapi: add support for command options

Options allow for changes in commands behavior. This commit introduces
the QCO_NO_SUCCESS_RESP option, which causes a command to not emit a
success response.

This is needed by commands such as qemu-ga's guest-shutdown, which...

ce8c8b7b 05/15/2012 05:15 pm Luiz Capitulino

qemu-ga: don't warn on no command return

This is a valid condition when a command chooses to not emit a
success response.

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

89268172 05/15/2012 05:15 pm Luiz Capitulino

qemu-ga: guest-shutdown: don't emit a success response

Today, qemu-ga may not be able to emit a success response when
guest-shutdown completes. This happens because the VM may vanish
before qemu-ga is able to emit a response.

This semantic is a bit confusing, as it's not clear for clients if...

c6fcc10a 05/15/2012 05:15 pm Luiz Capitulino

qemu-ga: guest-suspend-disk: don't emit a success response

Today, qemu-ga may not be able to emit a success response when
guest-suspend-disk completes. This happens because the VM may
vanish before qemu-ga is able to emit a response.

This semantic is a bit confusing, as it's not clear for clients if...

432d29db 05/15/2012 05:15 pm Luiz Capitulino

qemu-ga: guest-suspend-ram: don't emit a success response

Today, qemu-ga may not be able to emit a success response when
guest-suspend-ram completes. This happens because the VM may
suspend before qemu-ga is able to emit a response.

This semantic is a bit confusing, as it's not clear for clients if...

d9fcd2a1 05/15/2012 05:15 pm Luiz Capitulino

qemu-ga: guest-suspend-hybrid: don't emit a success response

Today, qemu-ga may not be able to emit a success response when
guest-suspend-hybrid completes. This happens because the VM may
suspend before qemu-ga is able to emit a response.

This semantic is a bit confusing, as it's not clear for clients if...

04b4e75f 05/15/2012 05:15 pm Luiz Capitulino

qemu-ga: make reopen_fd_to_null() public

The next commit wants to use it.

Signed-off-by: Luiz Capitulino <>
Reviewed-by: Eric Blake <>
Signed-off-by: Michael Roth <>

226a4894 05/15/2012 05:15 pm Luiz Capitulino

qemu-ga: become_daemon(): reopen standard fds to /dev/null

This fixes a bug where qemu-ga doesn't suspend the guest because it
fails to detect suspend support even when the guest does support
suspend. This happens because of the way qemu-ga fds are managed in...

dc8764f0 05/15/2012 05:15 pm Luiz Capitulino

qemu-ga: guest-suspend: make the API synchronous

Currently, qemu-ga has a SIGCHLD handler that automatically reaps terminated
children processes. The idea is to avoid having qemu-ga commands blocked
waiting for children to terminate.

That approach has two problems:...

d5dd3498 05/15/2012 05:15 pm Luiz Capitulino

qemu-ga: guest-shutdown: become synchronous

Last commit dropped qemu-ga's SIGCHLD handler, used to automatically
reap terminated children processes. This introduced a bug to
qmp_guest_shutdown(): it will generate zombies.

This problem probably doesn't matter in the success case, as the VM...

3674838c 05/15/2012 05:15 pm Luiz Capitulino

qemu-ga: guest-shutdown: use only async-signal-safe functions

POSIX mandates1 that a child process of a multi-thread program uses
only async-signal-safe functions before exec(). We consider qemu-ga
to be multi-thread, because it uses glib.

However, qmp_guest_shutdown() uses functions that are not...

76ee152a 05/15/2012 01:56 am Anthony Liguori

Update version to 1.1.0-rc2

Signed-off-by: Anthony Liguori <>

c82e5848 05/14/2012 11:53 pm Andreas Färber

tcg/ppc64: Don't hardcode register numbers for qemu_ld/st

Facilitates using r3 for prepended AREG0.

Signed-off-by: Andreas F?rber <>
Signed-off-by: malc <>

f4f7d01a 05/14/2012 11:53 pm Andreas Färber

tcg/ppc64: Fix CONFIG_TCG_PASS_AREG0

In qemu_ld/st load the registers for the helper calls directly rather
than rotating them around afterwards for AREG0.

Also clobber the additional register.

Signed-off-by: Andreas F?rber <>
Signed-off-by: malc <>

9cc31772 05/14/2012 08:45 pm Anthony Liguori

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

  • kwolf/for-anthony:
    qemu-img: Fix segmentation fault
    qcow2: Don't ignore failure to clear autoclear flags
    coroutine: Fix setup of sigaltstack coroutines
981b1628 05/14/2012 06:18 pm Anthony Liguori

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

  • qmp/queue/qmp:
    qapi: QMP input visitor, handle floats parsed as ints
8592d525 05/14/2012 06:15 pm Anthony Liguori

Merge remote-tracking branch 'afaerber-or/qom-1.1' into staging

  • afaerber-or/qom-1.1:
    mips_fulong2e: Don't register "cpu" VMState twice
    pc: Add back PCI.rombar compat property
    qdev: Fix adding of ptr properties
    qdev: Use object_property_print() in info qtree...
7a85d1cf 05/14/2012 06:07 pm Anthony Liguori

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

  • kraxel/usb.50:
    usb-host: handle guest-issued clear halt
caa3d6d3 05/14/2012 06:07 pm Anthony Liguori

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

  • spice/spice.v55:
    qxl: set size of PCI IO BAR correctly (16) for revision 2
82ac96a7 05/14/2012 06:06 pm Anthony Liguori

Merge remote-tracking branch 'sweil/for-1.1' into staging

  • sweil/for-1.1:
    qemu-doc: Use QEMU instead of qemu for product name
    qemu-doc: Fix executable name in examples
    qemu-doc: Add missing parameter in description of -D option
    configure: Use QEMU instead of Qemu...
90ca64a9 05/14/2012 06:06 pm Paolo Bonzini

qdev: fix -device foo,?

Since most property types do not have a parse property now, this was
broken. Fix it by looking at the setter instead.

Reviewed-by: Anthony Liguori <>
Acked-by: Andreas F=E4rber <>
Signed-off-by: Paolo Bonzini <>...

99b5beba 05/14/2012 06:02 pm Jan Kiszka

coroutine: Fix setup of sigaltstack coroutines

Use pthread_kill instead of process-wide kill to invoke the signal
handler used for stack switching. This may fix spurious lock-ups with
this backend, easily triggerable by extending the time window between
kill and sigsuspend....

c44bfe46 05/14/2012 06:02 pm Kevin Wolf

qcow2: Don't ignore failure to clear autoclear flags

Signed-off-by: Kevin Wolf <>

fa170c14 05/14/2012 06:02 pm Charles Arnold

qemu-img: Fix segmentation fault

The following command generates a segmentation fault.
qemu-img convert -O vpc -o ? test test2
This is because the 'goto out;' statement calls qemu_progress_end
before qemu_progress_init is called resulting in a NULL pointer...

77f4c9a6 05/14/2012 04:44 pm Anthony Liguori

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

  • origin/master:
    sun4u: implement interrupt clearing registers
    sun4u: initialize OBIO interrupt mappings
    fix block loads broken in commit 30038fd818
    Implement address masking for SPARC v9 CPUs...
1ee51876 05/14/2012 04:08 pm Michael Roth

qapi: QMP input visitor, handle floats parsed as ints

JSON numbers can be interpreted as either integers or floating point
values depending on their representation. As a result, QMP input visitor
might visit a QInt when it was expecting a QFloat, so add handling to...

a2498f76 05/14/2012 11:22 am Gerd Hoffmann

usb-host: handle guest-issued clear halt

Most important here is to update our internal endpoint state so we know
the endpoint isn't in halted state any more. Without this usb-host
tries to clear halt again with the next data transfer submitted. Doing
this twice is (a) not correct and (b) confuses some usb devices,...

3f6297b9 05/14/2012 11:22 am Uri Lublin

qxl: set size of PCI IO BAR correctly (16) for revision 2

Also move it up into switch(qxl->revision) block

Signed-off-by: Uri Lublin <>
Signed-off-by: Gerd Hoffmann <>

8bd383b4 05/14/2012 08:27 am Stefan Weil

qemu-doc: Add missing parameter in description of -D option

'logfile' is a place holder for a non optional parameter.

Signed-off-by: Stefan Weil <>

3804da9d 05/14/2012 08:27 am Stefan Weil

qemu-doc: Fix executable name in examples

The executable name qemu was replaced some time ago by qemu-system-i386.
Fix all examples accordingly.

Some examples will only work with qemu-system-i386 or qemu-system-x86_64
for obvious reasons ("dos.img").

To keep things simple, I did not vary the executable name....

b65ee4fa 05/14/2012 08:27 am Stefan Weil

qemu-doc: Use QEMU instead of qemu for product name

When 'qemu' was used as a product name or as a generic process name,
it is now replaced by the official upper case 'QEMU'.

v2:
Added missing period (hint from Andreas Färber).

Reviewed-by: Andreas Färber <>...