Revision:

Revisions

# Date Author Comment
be813ef0 03/11/2014 09:52 pm Peter Maydell

Merge remote-tracking branch 'remotes/mst/tags/for_upstream' into staging

acpi,pc,test bug fixes

More small fixes: the issues annoy developers so
I thought they are worth fixing quickly.

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

  1. gpg: Signature made Tue 11 Mar 2014 11:27:44 GMT using RSA key ID D28D5469...
23961870 03/11/2014 09:39 pm Peter Maydell

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

  • remotes/kvm/uq/master:
    target-i386: bugfix of Intel MPX
    file_ram_alloc: unify mem-path,mem-prealloc error handling
    kvm-all: exit in case max vcpus exceeded

Signed-off-by: Peter Maydell <>

01207d0b 03/11/2014 08:19 pm Jan Kiszka

qemu-thread-posix: Fix build against older glibc version

pthread_setname_np was introduced with 2.12.

Signed-off-by: Jan Kiszka <>
Reviewed-by: Dr. David Alan Gilbert <>
Signed-off-by: Peter Maydell <>

0ca540db 03/11/2014 03:20 pm Peter Maydell

Merge remote-tracking branch 'remotes/pmaydell/tags/pull-target-arm-20140310' into staging

target-arm queue: * implement WFE as yield (improves performance with emulated SMP) * fixes to avoid undefined behaviour shifting left into sign bit * libvixl format string fixes for 32 bit hosts...

ed9b103d 03/11/2014 03:03 pm Peter Maydell

Merge remote-tracking branch 'remotes/spice/tags/pull-spice-4' into staging

minor spice patches.

  1. gpg: Signature made Mon 10 Mar 2014 13:13:14 GMT using RSA key ID D3E87138
  2. gpg: Good signature from "Gerd Hoffmann (work) <>"
  3. gpg: aka "Gerd Hoffmann <>"...
c57ec324 03/11/2014 02:52 pm Peter Maydell

Merge remote-tracking branch 'remotes/kraxel/tags/pull-input-5' into staging

input: fixes for the rewrite.

  1. gpg: Signature made Mon 10 Mar 2014 12:50:25 GMT using RSA key ID D3E87138
  2. gpg: Good signature from "Gerd Hoffmann (work) <>"...
263cf436 03/11/2014 01:27 pm BALATON Zoltan

q35: Correct typo BRDIGE -> BRIDGE

Signed-off-by: BALATON Zoltan <>
Reviewed-by: Michael S. Tsirkin <>
Signed-off-by: Michael S. Tsirkin <>

b4e5a4bf 03/11/2014 01:27 pm Michael S. Tsirkin

acpi-build: don't access unaligned addresses

casting an unaligned address to e.g.
uint32_t can trigger undefined behaviour in C.
Replace cast + assignment with memcpy.

Reported-by: Peter Maydell <>
Signed-off-by: Michael S. Tsirkin <>

13f65b2e 03/11/2014 01:27 pm Michael S. Tsirkin

acpi-test: update expected SSDT files

SSDT doesn't have _SUN for non hotpluggable slots
anymore.

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

dc655404 03/11/2014 01:27 pm Michael S. Tsirkin

configure: don't modify .status on error

./configure --help
make

will try to re-run configure with --help
which isn't what was intended.

The reason is that config.status was written
even on configure error.
Defer writing config.status until configure
has completed successfully....

ac41881b 03/11/2014 01:25 pm Michael S. Tsirkin

pc: avoid duplicate names for ROM MRs

Since
commit 04920fc0faa4760f9c4fc0e73b992b768099be70
loader: store FW CFG ROM files in RAM
RAM MRs including ROM files in FW CFGs are created
and named using the file basename.

This becomes problematic if these names are...

fe6c53b4 03/11/2014 12:53 pm Peter Maydell

Merge remote-tracking branch 'remotes/kraxel/tags/pull-vnc-1' into staging

vnc dirty tracking optinizations.
various vnc bugfixes.

  1. gpg: Signature made Mon 10 Mar 2014 12:39:54 GMT using RSA key ID D3E87138
  2. gpg: Good signature from "Gerd Hoffmann (work) <>"...
b0f15a5d 03/11/2014 12:49 pm Liu, Jinsong

target-i386: bugfix of Intel MPX

The correct size of cpuid 0x0d sub-leaf 4 is 0x40, not 0x10.
This is confirmed by Anvin H Peter and Mallick Asit K.

Signed-off-by: Liu Jinsong <>
Cc: H. Peter Anvin <>
Cc: Asit K Mallick <>...

118760df 03/10/2014 09:14 pm Peter Maydell

Merge remote-tracking branch 'remotes/mst/tags/for_upstream' into staging

acpi,pc,pci,virtio,memory bug fixes

This collects several small fixes from all over the place.
Additionally, Marcel's changes make acpi unit tests more robust.

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

b304bf00 03/10/2014 06:43 pm Christian Borntraeger

s390/kvm: Add Maintainers for s390/kvm

Lets add Conny and myself as maintainers for s390/kvm and
related code. This does not include any tcg related code,
which is maintained by Richard and Alex.

Signed-off-by: Christian Borntraeger <>...

3f150670 03/10/2014 06:22 pm Peter Maydell

Merge remote-tracking branch 'remotes/riku/linux-user-for-upstream' into staging

  • remotes/riku/linux-user-for-upstream:
    linux-user: set minimum kernel version to 2.6.32
    linux-user: correct handling of break exception for MIPS
    linux-user: translate signal number on return from sigtimedwait...
0c126db2 03/10/2014 05:36 pm Peter Maydell

Merge remote-tracking branch 'remotes/mcayland/qemu-openbios' into staging

  • remotes/mcayland/qemu-openbios:
    Update OpenBIOS images

Signed-off-by: Peter Maydell <>

c8f8f9fb 03/10/2014 04:56 pm Peter Maydell

hw/ssi/xilinx_spips.c: Avoid shifting left into sign bit

Add missing 'U' suffix to avoid shifting left into sign bit of
a signed integer.

Signed-off-by: Peter Maydell <>
Message-id:

2b194951 03/10/2014 04:56 pm Peter Maydell

hw/arm/musicpal: Avoid shifting left into sign bit

Add missing 'U' suffixes to avoid shifting left into sign
bit of a signed integer.

Signed-off-by: Peter Maydell <>
Message-id:

72c1d3af 03/10/2014 04:56 pm Peter Maydell

target-arm: Implement WFE as a yield operation

Implement WFE to yield our timeslice to the next CPU.
This avoids slowdowns in multicore configurations caused
by one core busy-waiting on a spinlock which can't possibly
be unlocked until the other core has an opportunity to run....

0624976f 03/10/2014 04:56 pm Richard Henderson

target-arm: Fix intptr_t vs tcg_target_long

Fixes a build error when these are different, e.g. x32.

Signed-off-by: Richard Henderson <>
Message-id:
Signed-off-by: Peter Maydell <>

b29c8f11 03/10/2014 04:56 pm Stefan Weil

libvixl: Fix format strings for several int64_t values

"%d" or "%x" won't work on hosts where int values are smaller than 64 bit.

Signed-off-by: Stefan Weil <>
Message-id:
Signed-off-by: Peter Maydell <>

43a32ed6 03/10/2014 04:56 pm Peter Maydell

pxa2xx: Don't shift into sign bit

Add missing 'U' suffixes to avoid potentially shifting into
the sign bit of a signed integer.

Signed-off-by: Peter Maydell <>
Message-id:

d2f41a11 03/10/2014 04:56 pm Peter Maydell

hw/arm/omap1.c: Avoid shifting left into sign bit

Add missing 'U' suffix to avoid shifting left into sign bit.

Signed-off-by: Peter Maydell <>
Message-id:

af519934 03/10/2014 04:56 pm Peter Maydell

target-arm: Fix incorrect setting of E bit in CPSR

Commit 4cc35614a moved the exception mask bits out of env->uncached_cpsr
and into env->daif. However the env->daif contents are AArch64 style
mask bits, which include not just the AArch32 AIF bits but also the...

7c2cb42b 03/10/2014 04:56 pm Alistair Francis

target-arm: Implements the ARM PMCCNTR register

This patch implements the ARM PMCCNTR register including
the disable and reset components of the PMCR register.

Signed-off-by: Alistair Francis <>
Message-id: ...

c9dd4074 03/10/2014 02:57 pm Stefan Weil

configure: Prettify message for hosts without spice support

Instead of

spice support     no (/)

configure now prints

spice support     no

Signed-off-by: Stefan Weil <>
Signed-off-by: Gerd Hoffmann <>

9b74d0d5 03/10/2014 02:55 pm Gerd Hoffmann

spice: QemuUIInfo windup

Signed-off-by: Gerd Hoffmann <>

4b87dc4c 03/10/2014 02:55 pm Gerd Hoffmann

spice: fix simple display surface handling

Signed-off-by: Gerd Hoffmann <>

c3aa84b6 03/10/2014 02:49 pm Gerd Hoffmann

input: sdl: fix guest_cursor logic.

Unbreaks relative mouse mode with SDL.

Reported-by: Gabriel L. Somlo <>
Signed-off-by: Gerd Hoffmann <>

dbb2a132 03/10/2014 02:49 pm Gerd Hoffmann

input: map INPUT_BUTTON_WHEEL_{UP,DOWN} to legacy input z axis moves.

Unbreaks mouse wheel.

Reported-by: BALATON Zoltan <>
Signed-off-by: Gerd Hoffmann <>

e9d818b8 03/10/2014 02:34 pm Peter Maydell

Merge remote-tracking branch 'remotes/rth/tcg-aarch-6-1' into staging

  • remotes/rth/tcg-aarch-6-1:
    tcg-aarch64: Remove nop from qemu_st slow path
    tcg-aarch64: Simplify tcg_out_ldst_9 encoding
    tcg-aarch64: Use intptr_t apropriately
    tcg-aarch64: Remove the shift_imm parameter from tcg_out_cmp...
cbc14e6f 03/10/2014 01:55 pm Riku Voipio

linux-user: set minimum kernel version to 2.6.32

Popular glibc based distributions1 require minimum
2.6.32 as kernel version. For some targets 2.6.18
would be enough, but dropping so low would mean some
suboptimal system calls could get used.

Set the minimum kernel advertized to 2.6.32 for...

16513b1b 03/10/2014 01:48 pm Peter Maydell

Merge remote-tracking branch 'remotes/juanquintela/tags/migration/20140308-1' into staging

migration/next for 20140308

  1. gpg: Signature made Sat 08 Mar 2014 21:26:01 GMT using RSA key ID 5872D723
  2. gpg: Can't check signature: public key not found
  • remotes/juanquintela/tags/migration/20140308-1:...
2e7bcdb9 03/10/2014 01:35 pm Markus Armbruster

vnc: Fix tight_detect_smooth_image() for lossless case

VncTight member uint8_t quality is either (uint8_t)-1 for lossless or
less than 10 for lossy.

tight_detect_smooth_image() first promotes it to int, then compares
with -1. Always unequal, so we always execute the lossy code. Reads...

e3c1adf1 03/10/2014 01:35 pm Gonglei (Arei)

vnc: Fix qemu crashed when vnc client disconnect suddenly

Hi,

When I use RealVNC viewer client (http://www.realvnc.com/) to connect vnc server,
the client disconnect suddenly, and I click reconnect button immediately, then the Qemu crashed.

In the function vnc_worker_thread_loop, will call vnc_async_encoding_start...

38ee14f4 03/10/2014 01:35 pm Gerd Hoffmann

vnc: fix use-after-free in vnc_update_client_sync

Spotted by Coverity:

876 static int vnc_update_client_sync(VncState *vs, int has_dirty)
877 {

(1) Event freed_arg: "vnc_update_client(VncState *, int)" frees "vs". [details]
Also see events: [deref_arg]...

b4c85ddc 03/10/2014 01:35 pm Peter Lieven

ui/vnc: introduce VNC_DIRTY_PIXELS_PER_BIT macro

Signed-off-by: Peter Lieven <>
Reviewed-by: Wenchao Xia <>
Signed-off-by: Gerd Hoffmann <>

6cd859aa 03/10/2014 01:35 pm Peter Lieven

ui/vnc: derive cmp_bytes from VNC_DIRTY_PIXELS_PER_BIT

this allows for setting VNC_DIRTY_PIXELS_PER_BIT to different
values than 16 if desired.

Reviewed-by: Wenchao Xia <>
Signed-off-by: Peter Lieven <>
Signed-off-by: Gerd Hoffmann <>

12b316d4 03/10/2014 01:35 pm Peter Lieven

ui/vnc: optimize dirty bitmap tracking

vnc_update_client currently scans the dirty bitmap of each client
bitwise which is a very costly operation if only few bits are dirty.
vnc_refresh_server_surface does almost the same.
this patch optimizes both by utilizing the heavily optimized...

863d7c91 03/10/2014 01:35 pm Peter Lieven

ui/vnc: optimize clearing in find_and_clear_dirty_height()

The following artifical test (just the bitmap operation part) running
vnc_update_client 65536 times on a 2560x2048 surface illustrates the
performance difference:

All bits clean - vnc_update_client_new: 0.07 secs...

91937225 03/10/2014 01:35 pm Peter Lieven

ui/vnc: optimize setting in vnc_dpy_update()

Signed-off-by: Peter Lieven <>
Reviewed-by: Wenchao Xia <>
Signed-off-by: Gerd Hoffmann <>

e22492d3 03/10/2014 01:35 pm Peter Lieven

ui/vnc: disable adaptive update calculations if not needed

Signed-off-by: Peter Lieven <>
Signed-off-by: Gerd Hoffmann <>

5264917b 03/10/2014 10:48 am Mark Cave-Ayland

Update OpenBIOS images

Update OpenBIOS images to SVN r1280 built from submodule.

Signed-off-by: Mark Cave-Ayland <>

4900116e 03/09/2014 09:09 pm Dr. David Alan Gilbert

Add a 'name' parameter to qemu_thread_create

If enabled, set the thread name at creation (on GNU systems with
pthread_set_np)
Fix up all the callers with a thread name

Signed-off-by: Dr. David Alan Gilbert <>
Acked-by: Michael S. Tsirkin <>...

4a4fcdf6 03/09/2014 09:09 pm Michael S. Tsirkin

MAINTAINERS: drop an out of date address

Gleb's address seems to be out of date. Since it stayed like that for a
while now, I'm guessing he's no longer interested in getting mail.

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

262f6f51 03/09/2014 09:09 pm Marcel Apfelbaum

acpi-test: retain both asl and aml files on failure

Updated the error message while at it.

Signed-off-by: Marcel Apfelbaum <>
Reviewed-by: Michael S. Tsirkin <>
Signed-off-by: Michael S. Tsirkin <>

15d914b1 03/09/2014 09:09 pm Marcel Apfelbaum

acpi-test: issue errors instead of warnings when possible

If the expected (offline) acpi tables loaded correctly,
it is safe to assume the iasl installation is OK and
issue an error if the actual tables failed to load.

Signed-off-by: Marcel Apfelbaum <>...

175f099b 03/09/2014 09:09 pm Hervé Poussineau

pam: partly fix write-only mode

In write-only mode, writes are forwarded to RAM, while reads should not be
handled (ie should return 0xff).
Assume that in this mode, no read access is ever done, as they shouldn't
give any sensible result.

So, in write-only mode, alias PAM region to RAM, instead of PCI memory...

f1b7e0e4 03/09/2014 09:09 pm Hervé Poussineau

pckbd: return 'keyboard enabled' on read input port command

Bit 7 of Input Port is the keyboard inhibit switch.
0 means keyboard inhibited, while 1 means keyboard enabled.

Incidentaly, this also fixes an error encountered while booting
an Award BIOS: "Keyboard is locked out - Unlock the key"....

220c8ed5 03/09/2014 09:09 pm Gabriel L. Somlo

qemu: x86: ignore ioapic polarity

Both QEMU and KVM have already accumulated a significant number of
optimizations based on the hard-coded assumption that ioapic polarity
will always use the ActiveHigh convention, where the logical and
physical states of level-triggered irq lines always match (i.e.,...

98bc3ab0 03/09/2014 09:09 pm Michael S. Tsirkin

loader: rename in_ram/has_mr

we put copy of ROMs in MR for migration.
but the name rom_in_ram makes one think we
load it in guest RAM.
Rename has_mr to make intent clearer.

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

6cb46e1e 03/09/2014 09:09 pm Michael S. Tsirkin

acpi-test-data: update expected files

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

ddfa83ea 03/09/2014 09:09 pm Joel Stanley

virtio-net: remove function calls from assert

peer_{de,at}tach were called from inside assert().
We don't support building without NDEBUG but it's not tidy.
Rearrange to attach peer outside assert calls.

Signed-off-by: Joel Stanley <>
Reviewed-by: Michael S. Tsirkin <>...

8e46bbf3 03/09/2014 09:09 pm Igor Mammedov

memory_region_present: return false if address is not found in child MemoryRegion

Windows XP shows COM2 port as non functional in
"Device Manager" although no COM2 port backing device
is present in QEMU.

This regression is really due to
3bb28b7208b349e7a1b326e3c6ef9efac1d462bf?...

6e1f0a55 03/09/2014 09:09 pm Igor Mammedov

PCIE: fix regression with coldplugged multifunction device

PCIE is causing asserts each time a multifunction device is added
on command line (coldplug).

This is caused by
commit a66e657e18cd9b70e9f57ae5512c07faf2bc508f
pci/pcie: convert PCIE hotplug to use hotplug-handler API...

5d12f961 03/09/2014 09:09 pm Dr. David Alan Gilbert

Rework --name to use QemuOpts

Signed-off-by: Dr. David Alan Gilbert <>
Reviewed-by: Alex Bennée <>
Acked-by: Michael S. Tsirkin <>
Reviewed-by: Laszlo Ersek <>

8f480de0 03/09/2014 09:09 pm Dr. David Alan Gilbert

Add 'debug-threads' suboption to --name

Add flag storage to qemu-thread-* to store the namethreads flag

Signed-off-by: Dr. David Alan Gilbert <>
Acked-by: Michael S. Tsirkin <>
Reviewed-by: Laszlo Ersek <>

8dcf525a 03/09/2014 09:09 pm Michael S. Tsirkin

acpi-build: append description for non-hotplug

As reported in
http://article.gmane.org/gmane.comp.emulators.qemu/253987
Mac OSX actually requires describing all occupied slots
in ACPI - even if hotplug isn't enabled.

I didn't expect this so I dropped description of all...

2e796c76 03/09/2014 07:23 am Richard Henderson

tcg-aarch64: Remove the shift_imm parameter from tcg_out_cmp

It was unused. Let's not overcomplicate things before we need them.

Reviewed-by: Claudio Fontana <>
Signed-off-by: Richard Henderson <>

017a86f7 03/09/2014 07:23 am Richard Henderson

tcg-aarch64: Use intptr_t apropriately

As opposed to tcg_target_long.

Reviewed-by: Claudio Fontana <>
Signed-off-by: Richard Henderson <>

523fdc08 03/09/2014 07:23 am Richard Henderson

tcg-aarch64: Simplify tcg_out_ldst_9 encoding

At first glance the code appears to be using 1's compliment encoding,
a-la AArch32. Except that the constant is "off", creating a complicated
split field 2's compliment encoding.

Much clearer to just use a normal mask and shift....

f8e24843 03/09/2014 07:23 am Richard Henderson

tcg-aarch64: Remove nop from qemu_st slow path

Commit 023261ef851b22a04f6c5d76da870051031757a6 failed to remove a
nop that's no longer required.

Reviewed-by: Claudio Fontana <>
Signed-off-by: Richard Henderson <>

8d8db193 03/09/2014 07:23 am Richard Henderson

tcg-aarch64: Hoist common argument loads in tcg_out_op

This reduces the code size of the function significantly.

Reviewed-by: Alex Bennée <>
Reviewed-by: Claudio Fontana <>
Signed-off-by: Richard Henderson <>

a51a6b6a 03/09/2014 07:23 am Richard Henderson

tcg-aarch64: Don't handle mov/movi in tcg_out_op

Reviewed-by: Claudio Fontana <>
Signed-off-by: Richard Henderson <>

7763ffa0 03/09/2014 07:23 am Richard Henderson

tcg-aarch64: Change all ext variables to TCGType

We assert that the values for _I32 and _I64 are 0 and 1 respectively.
This will make a couple of functions declared by tcg.c cleaner.

Reviewed-by: Claudio Fontana <>
Signed-off-by: Richard Henderson <>

f0293414 03/09/2014 07:23 am Richard Henderson

tcg-aarch64: Set ext based on TCG_OPF_64BIT

Reviewed-by: Alex Bennée <>
Reviewed-by: Claudio Fontana <>
Signed-off-by: Richard Henderson <>

3353d0dc 03/09/2014 07:23 am Richard Henderson

tcg-aarch64: Remove redundant CPU_TLB_ENTRY_BITS check

Removed from other targets in 56bbc2f967ce185fa1c5c39e1aeb5b68b26242e9.

Reviewed-by: Alex Bennée <>
Reviewed-by: Claudio Fontana <>
Signed-off-by: Richard Henderson <>

82295d8a 03/09/2014 07:22 am Richard Henderson

tcg-aarch64: Enable builtin disassembler

Reviewed-by: Alex Bennée <>
Reviewed-by: Claudio Fontana <>
Signed-off-by: Richard Henderson <>

fd8cec93 03/08/2014 11:22 pm Gonglei

XBZRLE: Fix qemu crash when resize the xbzrle cache

Resizing the xbzrle cache during migration causes qemu-crash,
because the main-thread and migration-thread modify the xbzrle
cache size concurrently without lock-protection.

Signed-off-by: ChenLiang <>...

ac4df4e6 03/08/2014 11:22 pm Markus Armbruster

qemu_file: Fix mismerge of "use fwrite() correctly"

Reviewers accepted v2 of the patch, but what got committed was v1,
with the R-bys for v2. This is the v1->v2 followup fix.

[Amit:
This fixes commit aded6539d983280212e08d09f14157b1cb4d58cc
]

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

4fed9421 03/08/2014 11:22 pm Alexey Kardashevskiy

vl: add system_wakeup_request tracepoint

It might be useful for tracing migration.

Signed-off-by: Alexey Kardashevskiy <>
Signed-off-by: Amit Shah <>
Signed-off-by: Juan Quintela <>

464400f6 03/08/2014 11:22 pm Alexey Kardashevskiy

migration: extend section_start/end traces

This adds @idstr to savevm_section_start and savevm_section_end
tracepoints.

Signed-off-by: Alexey Kardashevskiy <>
Signed-off-by: Amit Shah <>
Signed-off-by: Juan Quintela <>

f53f3d0a 03/08/2014 02:38 pm Peter Maydell

Merge remote-tracking branch 'remotes/kvaneesh/for-upstream' into staging

  • remotes/kvaneesh/for-upstream:
    hw/9pfs: Include virtio-9p-device.o in build
    hw/9pfs: use g_strdup_printf() instead of PATH_MAX limitation
    hw/9pfs/virtio-9p-local.c: use snprintf() instead of sprintf()...
d7c698af 03/08/2014 02:17 pm Peter Maydell

Merge remote-tracking branch 'remotes/kevin/tags/for-upstream' into staging

Block patches

  1. gpg: Signature made Fri 07 Mar 2014 13:30:04 GMT using RSA key ID C88F2FD6
  2. gpg: Good signature from "Kevin Wolf <>"
  • remotes/kevin/tags/for-upstream:...
6570025e 03/08/2014 02:08 pm Lluís Vilanova

build: Fix installation of target-dependent files

Pass all the relevant sub-directory make variables.

Signed-off-by: Lluís Vilanova <>
Reviewed-by: Paolo Bonzini <>
Signed-off-by: Peter Maydell <>...

80aaa074 03/08/2014 01:27 pm Andreas Färber

xenfb: Fix graphic_console_init() build failure

In commit 5643706a095044d75df1c0588aac553a595b972b (console: add head
to index to qemu consoles.) graphic_console_init() was extended to take
an additional argument, but xenfb was not updated accordingly. Fix it....

6fc0303b 03/07/2014 08:29 pm Peter Maydell

Merge remote-tracking branch 'remotes/kraxel/tags/pull-input-4' into staging

Input handling rewrite.
SDL2 support.

  1. gpg: Signature made Wed 05 Mar 2014 11:16:08 GMT using RSA key ID D3E87138
  2. gpg: Good signature from "Gerd Hoffmann (work) <>"...
bb2b0450 03/07/2014 06:36 pm Peter Maydell

Merge remote-tracking branch 'remotes/agraf/tags/signed-ppc-for-upstream' into staging

Patch queue for ppc - 2014-03-05

This pull request includes:

- VSX emulation support
- book3s pr/hv selection
- some bug fixes
- qdev stable numbering
- eTSEC emulation...
c3f8d28e 03/07/2014 05:58 pm Peter Maydell

Merge remote-tracking branch 'remotes/cohuck/tags/virtio-ccw-20140305' into staging

One patch introducing support for adapter interrupts in virtio-ccw.

This improves performance for those guests that issue the new
CCW_CMD_SET_IND_ADAPTER channel command....

4089f7c6 03/07/2014 12:36 pm Jeff Cody

block: qemu-iotests 085 - live snapshots tests

This adds tests for live snapshots, both through the single
snapshot command, and the transaction group snapshot command.

The snapshots are done through the QMP interface, using the
following commands for snapshots:...

2c02f887 03/07/2014 12:29 pm Peter Maydell

hw/ide/ahci.h: Avoid shifting left into sign bit

Add 'U' suffixes to avoid undefined behaviour shifting left into
the signed bit of a signed integer type. Clang's sanitizer will
warn about this:

hw/ide/ahci.c:1210:27: runtime error: left shift of 1 by 31 places cannot be represented in type 'int'...
4c288acb 03/06/2014 11:26 pm Peter Maydell

configure: Always build with -fno-common

MacOSX doesn't pull .o files from .a archives if the symbol that it
requires is one which the .o file defines as a common symbol.
(Common symbols are those declared without "extern"; the linker
will merge together common symbols with the same name, so...

9c83ffd8 03/06/2014 09:59 pm Peter Maydell

configure: Make C++ test work with --enable-werror

gcc's C++ compiler complains about being passed some -W options
which make sense for C but not for C++. This means we mustn't try
a C++ compile with QEMU_CFLAGS, but only with a filtered version
that removes the offending options. This filtering was already being...

eb909c7f 03/06/2014 06:29 pm Kevin Wolf

block: Fix error path segfault in bdrv_open()

Using an invalid option for a block device that is opened with
BDRV_O_PROTOCOL led to drv = NULL, and when trying to include the driver
name in the error message, qemu dereferenced it:

$ x86_64-softmmu/qemu-system-x86_64 -drive file=/tmp/test.qcow2,file.foo=bar...
c75203c8 03/06/2014 06:28 pm Kevin Wolf

qemu-iotests: Test a few blockdev-add error cases

Signed-off-by: Kevin Wolf <>
Reviewed-by: Benoit Canet <>

c6e0bd9b 03/06/2014 06:27 pm Kevin Wolf

blockdev: Fix NULL pointer dereference in blockdev-add

If aio=native, we check that cache.direct is set as well. If however
cache wasn't specified at all, qemu just segfaulted.

The old condition didn't make any sense anyway because it effectively
only checked for the default cache mode case, but not for an explicitly...

8ae8e904 03/06/2014 06:27 pm Kevin Wolf

blockdev: Fail blockdev-add with encrypted images

Encrypted images need a password before they can be used, and we don't
want blockdev-add to create BDSes that aren't fully initialised. So for
now simply forbid encrypted images; we can come back to it later if we...

d5546c5e 03/06/2014 05:18 pm Max Reitz

block/raw-win32: Strip "file:" prefix on creation

The bdrv_create() implementation of the block/raw-win32 "file" protocol
driver should strip the "file:" prefix from filenames if present.

Signed-off-by: Max Reitz <>
Reviewed-by: Eric Blake <>...

7dc74db8 03/06/2014 05:18 pm Max Reitz

block/raw-win32: Implement bdrv_parse_filename()

The "file" protocol driver should strip the "file:" prefix from
filenames if present.

Signed-off-by: Max Reitz <>
Reviewed-by: Eric Blake <>
Reviewed-by: Benoit Canet <>...

464d9f64 03/06/2014 05:18 pm Max Reitz

block/raw-posix: Strip "file:" prefix on creation

The bdrv_create() implementation of the block/raw-posix "file" protocol
driver should strip the "file:" prefix from filenames if present.

Signed-off-by: Max Reitz <>
Reviewed-by: Eric Blake <>...

078896a9 03/06/2014 05:18 pm Max Reitz

block/raw-posix: Implement bdrv_parse_filename()

The "file" protocol driver should strip the "file:" prefix from
filenames if present.

Signed-off-by: Max Reitz <>
Reviewed-by: Eric Blake <>
Reviewed-by: Benoit Canet <>...

cd5d031e 03/06/2014 05:18 pm Max Reitz

block: Keep "filename" option after parsing

Currently, bdrv_file_open() always removes the "filename" option from
the options QDict after bdrv_parse_filename() has been (successfully)
called. However, for drivers with bdrv_needs_filename, it makes more
sense for bdrv_parse_filename() to overwrite the "filename" option and...

50c75136 03/06/2014 12:47 pm Jeff Cody

block: mirror - remove code cruft that has no function

Originally, this built up the error message with the backing filename,
so that errp was set as follows:
error_set(errp, QERR_OPEN_FILE_FAILED, backing_filename);

However, we now propagate the local_error from the...

90ce8a06 03/06/2014 12:33 pm Benoît Canet

block: make bdrv_swap rebuild the bs graph node list field.

Moving only the node_name one field could lead to some inconsitencies where a
node_name was defined on a bs which was not registered in the graph node list.

bdrv_swap between a named node bs and a non named node bs would lead to this....

47ea2de2 03/05/2014 05:58 pm Kevin Wolf

block: Fix bs->request_alignment assertion for bs->sg=1

For sg backends, bs->request_alignment is meaningless and may be 0.

Signed-off-by: Kevin Wolf <>
Reviewed-by: Benoit Canet <>
Acked-by: Paolo Bonzini <>

f47c3f5a 03/05/2014 05:58 pm Kevin Wolf

iscsi: Use bs->sg for everything else than disks

The current iscsi block driver code makes the rather arbitrary decision
that TYPE_MEDIUM_CHANGER and TYPE_TAPE devices have bs->sg = 1 and all
other device types are disks.

Instead of this, check for TYPE_DISK to expose the disk interface and...

85c09bc0 03/05/2014 04:58 pm Bharata B Rao

gluster: Change licence to GPLv2+

Pipe handling mechanism in gluster driver was based on similar implementation
in RBD driver and hence had GPLv2 and associated copyright information.
After changing gluster driver to coroutine based implementation, the pipe...

b1f7d84f 03/05/2014 04:58 pm Bharata B Rao

gluster: Remove unused defines and header include

Remove the definitions of GLUSTER_FD_WRITE and GLUSTER_FD_READ which are
no longer used. Also sockets.h isn't needed any more.

Signed-off-by: Bharata B Rao <>
Acked-by: Stefan Hajnoczi <>...

64bb01aa 03/05/2014 04:58 pm Kevin Wolf

qemu-img convert: Fix progress output

Initialise progress output only when the -p and -q options have already
been parsed, otherwise it's always disabled.

Reported-by: Peter Lieven <>
Signed-off-by: Kevin Wolf <>
Reviewed-by: Eric Blake <>

1 2 3 ... 316 Next » (1-100/31548) | Per page: 25, 50, 100

Also available in: Atom