Statistics
| Branch: | Revision:

root @ feature-archipelago

# Date Author Comment
d0277315 03/05/2014 12:38 pm Chrysostomos Nanakos

block: Support Archipelago as a QEMU block backend

d3113fb8 03/05/2014 12:38 pm Chrysostomos Nanakos

block: Free memory on AIO failure

f55ea629 03/04/2014 10:20 pm Andreas Färber

block/gluster: Add missing argument to qemu_gluster_init() call

Commit adccfbcd6020e928db93b2b4faf0dbd05ffbe016 (block: gluster - add
reopen support.) did not supply the qemu_gluster_init() Error **
argument, needed since commit a7451cb850d115f257080aff3fbc54f255ebf8f7...

ac458e12 03/04/2014 08:12 pm Peter Maydell

Merge remote-tracking branch 'remotes/mjt/tags/trivial-patches-2014-03-04' into staging

trivial patches for 2014-03-04

  1. gpg: Signature made Tue 04 Mar 2014 06:13:56 GMT using RSA key ID 74F0C838
  2. gpg: Good signature from "Michael Tokarev <>"...
e00ef747 03/04/2014 07:01 pm Peter Maydell

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

  • remotes/qmp-unstable/queue/qmp: (32 commits)
    qapi: Add missing null check to opts_start_struct()
    qapi: Clean up superfluous null check in qapi_dealloc_type_str()
    qapi: Clean up null checking in generated visitors...
4a29420e 03/04/2014 06:33 pm Peter Maydell

Merge remote-tracking branch 'remotes/stefanha/tags/block-pull-request' into staging

Block pull request

  1. gpg: Signature made Fri 28 Feb 2014 18:27:24 GMT using RSA key ID 81AB73C8
  2. gpg: Good signature from "Stefan Hajnoczi <>"
  3. gpg: aka "Stefan Hajnoczi <>"...
4fd42afe 03/04/2014 05:53 pm Peter Maydell

Merge remote-tracking branch 'remotes/rth/i386-fix' into staging

  • remotes/rth/i386-fix:
    target-i386: Fix ucomis and comis memory access
    target-i386: Fix SSE status flag corruption
    target-i386: Fix CC_OP_CLR vs PF

Signed-off-by: Peter Maydell <>

c2cb92f9 03/04/2014 04:50 pm Peter Maydell

Merge remote-tracking branch 'remotes/borntraeger/tags/kvm-s390-20140227' into staging

Several features, fixes and cleanups for kvm/s390:

- sclp event facility: cleanup structure. This allows to use
realize/unrealize as well as migration support via vmsd...

739aa555 03/04/2014 04:25 pm Peter Maydell

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

  • remotes/bonzini/scsi-next:
    block/iscsi: fix segfault if writesame fails
    scsi-disk: Add support for port WWN and index descriptors in VPD page 83h
    block/iscsi: query for supported VPD pages...
d47e95c0 03/04/2014 03:09 pm Peter Maydell

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

  • remotes/mcayland/qemu-sparc:
    sun4m: Add Sun CG3 framebuffer initialisation function
    sun4m: Add Sun CG3 framebuffer and corresponding OpenBIOS FCode ROM
    sun4m: fix slavio timer RUN/STOP bit...
57f45b62 03/04/2014 03:02 pm Stefan Weil

Makefile: Add missing dependency for system emulation (fix build)

Comment from Makefile.objs:

The system emulation needs this dependency (which was missing in Makefile),
otherwise builds without tools (or massive parallel builds) fail.

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

25a70175 03/03/2014 06:17 pm Markus Armbruster

qapi: Clean up superfluous null check in qapi_dealloc_type_str()

Argument can't be null. No other Visitor method type_str() checks for
null.

Signed-off-by: Markus Armbruster <>
Reviewed-by: Eric Blake <>
Signed-off-by: Luiz Capitulino <>

b7745397 03/03/2014 06:17 pm Markus Armbruster

qapi: Add missing null check to opts_start_struct()

Argument is null when visiting an unboxed struct. I can't see such a
visit in the current code. Fix it anyway.

Signed-off-by: Markus Armbruster <>
Reviewed-by: Eric Blake <>...

949ceeb3 03/03/2014 06:17 pm Markus Armbruster

qapi: Clean up null checking in generated visitors

Visitors get passed a pointer to the visited object. The generated
visitors try to cope with this pointer being null in some places, for
instance like this:

visit_start_optional(m, obj ? &(*obj)->has_name : NULL, "name", &err);...
56bed413 03/03/2014 06:16 pm Markus Armbruster

qapi: Drop unused code in qapi-commands.py

Signed-off-by: Markus Armbruster <>
Reviewed-by: Eric Blake <>
Signed-off-by: Luiz Capitulino <>

357765fe 03/03/2014 06:16 pm Markus Armbruster

tests/qapi-schema: Actually check successful QMP command response

Signed-off-by: Markus Armbruster <>
Reviewed-by: Eric Blake <>
Signed-off-by: Luiz Capitulino <>

ab22ad96 03/03/2014 06:16 pm Markus Armbruster

tests/qapi-schema: Cover optional command arguments

Signed-off-by: Markus Armbruster <>
Reviewed-by: Eric Blake <>
Signed-off-by: Luiz Capitulino <>

c2216a8a 03/03/2014 06:16 pm Markus Armbruster

tests/qapi-schema: Cover simple argument types

Signed-off-by: Markus Armbruster <>
Reviewed-by: Eric Blake <>
Signed-off-by: Luiz Capitulino <>

2c38b600 03/03/2014 06:16 pm Markus Armbruster

tests/qapi-schema: Cover anonymous union types

Signed-off-by: Markus Armbruster <>
Reviewed-by: Eric Blake <>
Signed-off-by: Luiz Capitulino <>

aabbd472 03/03/2014 06:16 pm Markus Armbruster

tests/qapi-schema: Cover complex types with base

Signed-off-by: Markus Armbruster <>
Reviewed-by: Eric Blake <>
Signed-off-by: Luiz Capitulino <>

7ad993b4 03/03/2014 06:16 pm Markus Armbruster

tests/qapi-schema: Cover union types with base

Signed-off-by: Markus Armbruster <>
Reviewed-by: Eric Blake <>
Signed-off-by: Luiz Capitulino <>

2fc00432 03/03/2014 06:16 pm Markus Armbruster

tests/qapi-schema: Cover flat union types

The test demonstrates a generator bug: the generated struct
UserDefFlatUnion doesn't include members for the indirect base
UserDefZero.

Signed-off-by: Markus Armbruster <>
Reviewed-by: Eric Blake <>...

678e48a2 03/03/2014 06:16 pm Markus Armbruster

qapi: Fix licensing of scripts

The scripts carry this copyright notice:

  1. This work is licensed under the terms of the GNU GPLv2.
  2. See the COPYING.LIB file in the top-level directory.

The sentences contradict each other, as COPYING.LIB contains the LGPL...

a105acbc 03/03/2014 06:16 pm Markus Armbruster

qapi: Drop nonsensical header guard in generated qapi-visit.c

Signed-off-by: Markus Armbruster <>
Reviewed-by: Eric Blake <>
Signed-off-by: Luiz Capitulino <>

cc99c6f5 03/03/2014 07:46 am Stefan Weil

util/iov: Use qemu/sockets.h instead of conditional code

Signed-off-by: Stefan Weil <>
Reviewed-by: Paolo Bonzini <>
Reviewed-by: Andreas Färber <>
Signed-off-by: Michael Tokarev <>

777872e5 03/03/2014 07:46 am Stefan Weil

exec: Remove unneeded include files

This file does not depend on windows.h.

Signed-off-by: Stefan Weil <>
Reviewed-by: Paolo Bonzini <>
Reviewed-by: Andreas Färber <>
Signed-off-by: Michael Tokarev <>

67d065c3 03/03/2014 07:46 am Stefan Weil

qemu-img: Remove unneeded include files

There is no dependency on windows.h, and the standard include files are
already included by qemu-common.h.

Signed-off-by: Stefan Weil <>
Reviewed-by: Paolo Bonzini <>
Reviewed-by: Andreas Färber <>...

cae8a928 03/03/2014 07:46 am Stefan Weil

qga: Remove unneeded include file

This file does not depend on windows.h.

Signed-off-by: Stefan Weil <>
Reviewed-by: Paolo Bonzini <>
Reviewed-by: Andreas Färber <>
Signed-off-by: Michael Tokarev <>

25254a71 03/03/2014 07:46 am Stefan Weil

vl: Remove unneeded include file

This file does not depend on windows.h.

Cc: Anthony Liguori <>
Signed-off-by: Stefan Weil <>
Reviewed-by: Paolo Bonzini <>
Reviewed-by: Andreas Färber <>...

aa830cdc 03/03/2014 07:45 am Peter Maydell

qjson.h: Remove spurious GCC_FMT_ATTR markup from qobject_from_json() declaration

The function qobject_from_json() doesn't actually allow its
argument to be a format string -- it passes a NULL va_list*
to qobject_from_jsonv(), and the parser code will then never...

7edd9ddc 03/02/2014 03:20 pm Peter Maydell

tests/test-int128: Don't use noclone attribute on clang

clang doesn't support the noclone attribute and emits a warning about
it. Fortunately clang also implements a mechanism for asking if a particular
attribute is implemented; use it. We assume that if the compiler doesn't...

8ead6018 03/02/2014 03:13 pm Stefan Weil

stubs: Optimize dependencies for gdbstub.c

It does not need qemu-common.h. Including exec/gdbstub.h fixes a warning
from static code analyzers and avoids mismatching declarations for
xml_builtin.

Signed-off-by: Stefan Weil <>
Signed-off-by: Michael Tokarev <>

c5d3c498 03/02/2014 03:12 pm Stefan Weil

tcg: Fix typo in comment (dependancies -> dependencies)

Signed-off-by: Stefan Weil <>
Signed-off-by: Michael Tokarev <>

1c884abe 03/02/2014 03:12 pm Dr. David Alan Gilbert

include/qemu/host-utils.h: Trivial typo: ctz->cto

Signed-off-by: Dr. David Alan Gilbert <>
Signed-off-by: Michael Tokarev <>

de580daf 03/02/2014 03:12 pm Hani Benhabiles

object: Report type in error when not user creatable.

Signed-off-by: Hani Benhabiles <>
Reviewed-by: Hu Tao <>
Acked-by: Paolo Bonzini <>
Signed-off-by: Michael Tokarev <>

0064aceb 03/02/2014 03:12 pm Stefan Weil

bswap: Modify prototype of stb_p (avoid type conversions)

The function uses an uint8_t value, so show this in the function
prototype. Non-optimizing compilers will avoid unnecessary type
conversions from (u)int8_t to int and back to uint8_t when generating...

55e7c29e 03/02/2014 03:12 pm Stefan Weil

bswap: Modify prototypes of st[wl]_{le, be}_p (avoid type conversions)

The functions use uint16_t or uint32_t values, so show this in the function
prototypes. Non-optimizing compilers will avoid unnecessary type
conversions when generating calls of these inline functions....

de92f3f8 02/28/2014 08:49 pm Hani Benhabiles

monitor: Remove left-over code in do_info_profile.

This is a left-over from 4a1418e.

Signed-off-by: Hani Benhabiles <>
Signed-off-by: Luiz Capitulino <>

ffe9fe3a 02/28/2014 08:39 pm Hani Benhabiles

qerror: Improve QERR_DEVICE_NOT_ACTIVE message

The error message as currently used is confusing as there are no "balloon" or
"spice" devices.

(qemu) balloon 1024
balloon: Device 'balloon' has not been activated

With this patch:

(qemu) balloon 1024
balloon: No balloon device has been activated...

48645123 02/28/2014 08:35 pm Fam Zheng

qmp: Check for returned data from __json_read in get_events

When QEMU process aborts and socket is closed, qmp client will not
detect it. When this happens, some qemu-iotests scripts will enter an
endless loop waiting for qmp events.

It's better we raise an exception in qmp.py to catch this and make the...

4b350f1d 02/28/2014 07:59 pm Benoît Canet

qemu-io-test: Disable Quorum test when not compiled in.

Quorum is not compiled by default: make the quorum 081 test aware of this.

Signed-off-by: Benoit Canet <>
Reviewed-by: Fam Zheng <>
Signed-off-by: Stefan Hajnoczi <>

69bef793 02/28/2014 07:59 pm Amit Shah

block: use /var/tmp instead of /tmp for -snapshot

If TMPDIR is not specified, the default was to use /tmp for the working
copy of the block devices. Update this to /var/tmp instead, so systems
using tmp-on-tmpfs don't end up inadvertently using RAM for the block...

9147d019 02/28/2014 07:59 pm Loic Dachary

discard rbd error output when not relevant in qemu-iotests

Suppress rbd progress messages with --no-progress so they are not
confused with an error output when comparing test results ( progress is
displayed on stderr ).

Signed-off-by: Loic Dachary <>...

3eba13ec 02/28/2014 07:59 pm Peter Lieven

block/vmdk: do not report file offset for compressed extents

Signed-off-by: Peter Lieven <>
Reviewed-by: Fam Zheng <>
Signed-off-by: Stefan Hajnoczi <>

9a05feab 02/28/2014 07:59 pm Paolo Bonzini

qemu-iotests: add more tests to the "quick" group

None of these needs QEMU_PROG, and they all take but a few seconds.
We need to point the launching script to qemu-nbd, though.

Signed-off-by: Paolo Bonzini <>
Signed-off-by: Stefan Hajnoczi <>

1b37b344 02/28/2014 07:59 pm Jeff Cody

block: gluster - code movements, state storage changes

In preparation for supporting reopen on gluster, move flag
parsing out to a function. Also, add a NULL check in the
gconf cleanup.

Signed-off-by: Jeff Cody <>
Signed-off-by: Stefan Hajnoczi <>

adccfbcd 02/28/2014 07:59 pm Jeff Cody

block: gluster - add reopen support.

Gluster does parse open flags in its .bdrv_open() implementation,
and the .bdrv_reopen_* implementations need to do the same.

A new gluster connection to the image file to be created is established
in the .bdrv_reopen_prepare(), and the image file opened with the new...

a9e6a0cb 02/28/2014 07:59 pm Benoît Canet

qmp: Fix BlockdevOptionQuorum.

Fix some nits before QEMU 2.0 freeze.

Signed-off-by: Benoit Canet <>
Reviewed-by: Eric Blake <>
Signed-off-by: Stefan Hajnoczi <>

0c762736 02/28/2014 07:59 pm Benoît Canet

qmp: Make Quorum error events more palatable.

Insert quorum QMP events documentation alphabetically.

Also change the "ret" errno value by an optional "error" being an strerror(-ret)
in the QUORUM_REPORT_BAD qmp event.

Signed-off-by: Benoit Canet <>...

607dacd0 02/28/2014 06:52 pm qiaonuohan

dump: add support for lzo/snappy

kdump-compressed format supports three compression format, zlib/lzo/snappy.
Currently, only zlib is available. This patch is used to support lzo/snappy.
'--enable-lzo/--enable-snappy' is needed to be specified with configure to make...

7aad248d 02/28/2014 06:52 pm qiaonuohan

dump: add members to DumpState and init some of them

add some members to DumpState that will be used in writing vmcore in
kdump-compressed format. some of them, like page_size, will be initialized
in the patch.

Signed-off-by: Qiao Nuohan <>...

298f1168 02/28/2014 06:52 pm qiaonuohan

dump: add API to write dump header

the functions are used to write header of kdump-compressed format to vmcore.
Header of kdump-compressed format includes:
1. common header: DiskDumpHeader32 / DiskDumpHeader64
2. sub header: KdumpSubHeader32 / KdumpSubHeader64...

d0686c72 02/28/2014 06:52 pm qiaonuohan

dump: add API to write dump_bitmap

functions are used to write 1st and 2nd dump_bitmap of kdump-compressed format,
which is used to indicate whether the corresponded page is existed in vmcore.
1st and 2nd dump_bitmap are same, because dump level is specified to 1 here....

64cfba6a 02/28/2014 06:52 pm qiaonuohan

dump: add APIs to operate DataCache

DataCache is used to store data temporarily, then the data will be written to
vmcore. These functions will be called later when writing data of page to
vmcore.

Signed-off-by: Qiao Nuohan <>
Reviewed-by: Laszlo Ersek <>...

d12f57ec 02/28/2014 06:52 pm qiaonuohan

dump: add API to write dump pages

functions are used to write page to vmcore. vmcore is written page by page.
page desc is used to store the information of a page, including a page's size,
offset, compression format, etc.

Signed-off-by: Qiao Nuohan <>...

b53ccc30 02/28/2014 06:52 pm qiaonuohan

dump: make kdump-compressed format available for 'dump-guest-memory'

Make monitor command 'dump-guest-memory' be able to dump in kdump-compressed
format. The command's usage:

dump [-p] protocol [begin] [length] [format]

'format' is used to specified the format of vmcore and can be:...

4ab23a91 02/28/2014 06:52 pm qiaonuohan

Define the architecture for compressed dump format

Signed-off-by: Ekaterina Tumanova <>
Reviewed-by: Laszlo Ersek <>
Reviewed-by: Qiao Nuohan <>
Signed-off-by: Luiz Capitulino <>

7d6dc7f3 02/28/2014 06:52 pm qiaonuohan

dump: add 'query-dump-guest-memory-capability' command

'query-dump-guest-memory-capability' is used to query the available formats for
'dump-guest-memory'. The output of the command will be like:

> { "execute": "query-dump-guest-memory-capability" }
<
{ "return": { "formats":...

b5ba1cc6 02/28/2014 06:49 pm qiaonuohan

dump: const-qualify the buf of WriteCoreDumpFunction

WriteCoreDumpFunction is a function pointer that points to the function used to
write content in "buf" into core file, so "buf" should be const-qualify.

Signed-off-by: Qiao Nuohan <>...

6a519918 02/28/2014 06:49 pm qiaonuohan

dump: add argument to write_elfxx_notes

write_elf32_notes/wirte_elf64_notes use fd_write_vmcore to write elf notes to
vmcore. Adding parameter "WriteCoreDumpFunction f" makes it available to choose
the method of writing elf notes

Signed-off-by: Qiao Nuohan <>...

fda05387 02/28/2014 06:49 pm qiaonuohan

dump: add API to write header of flatten format

flatten format will be used when writing kdump-compressed format. The format is
also used by makedumpfile, you can refer to the following URL to get more
detailed information about flatten format of kdump-compressed format:...

5d31babe 02/28/2014 06:49 pm qiaonuohan

dump: add API to write vmcore

Function is used to write vmcore in flatten format. In flatten format, data is
written block by block, and in front of each block, a struct
MakedumpfileDataHeader is stored there to indicate the offset and size of the
data block....

4835ef77 02/28/2014 06:49 pm qiaonuohan

dump: add API to write elf notes to buffer

the function can be used by write_elf32_notes/write_elf64_notes to write notes
to a buffer. If fd_write_vmcore is used, write_elf32_notes/write_elf64_notes
will write elf notes to vmcore directly. Instead, if buf_write_note is used,...

cb48da7f 02/28/2014 06:44 pm Richard Henderson

target-i386: Fix ucomis and comis memory access

We were loading 16 bytes for both single and double-precision
scalar comparisons.

Reported-by: Alexander Bluhm <>
Signed-off-by: Richard Henderson <>

4e47e39a 02/28/2014 06:44 pm Richard Henderson

target-i386: Fix SSE status flag corruption

When we restore the mxcsr register with FXRSTOR, or set it with gdb,
we need to update the various SSE status flags in CPUX86State

Reported-by: Richard Purdie <>
Reviewed-by: Paolo Bonzini <>...

d2fe51bd 02/28/2014 06:43 pm Richard Henderson

target-i386: Fix CC_OP_CLR vs PF

Parity should be set for a zero result.

Cc:
Reviewed-by: Paolo Bonzini <>
Reviewed-by: Edgar E. Iglesias <>
Signed-off-by: Richard Henderson <>

cd159d09 02/28/2014 06:41 pm Fam Zheng

QMP: Allow dot separated dict path arguments in qmp-shell

As another convenience to allow using commands that expect a dict as
argument, this patch adds support for foo.bar=value syntax, similar to
command line argument style:

(QEMU) blockdev-add options.driver=file options.id=drive1 options.filename=......
fbb0621a 02/28/2014 06:41 pm Luiz Capitulino

MAINTAINERS: update status for HMP, QAPI and QMP trees

This commit updates the status for the HMP, QAPI and QMP trees from
"Supported" to "Maintained".

In practice this means that patch review and pull requests may take
longer. Also, I'll rely more on reviewers such as Eric Blake so that...

d844a7b6 02/28/2014 02:30 pm Fam Zheng

modules: Fix building with --enable-modules

Compiling util/modules.c with modules enabled fails now.

Fix it by including qemu-common.h before #ifdef testing in module.c.

Signed-off-by: Fam Zheng <>
Message-id: ...

9fbee91a 02/27/2014 06:00 pm Peter Maydell

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

  • remotes/kvm/uq/master:
    KVM: Use return value for error print

Signed-off-by: Peter Maydell <>

73795cea 02/27/2014 01:31 pm Peter Maydell

Merge remote-tracking branch 'remotes/awilliam/tags/vfio-pci-for-qemu-20140226.0' into staging

Updates include:
- Coverify fixes for vfio & pci-assign (Markus)
- VFIO blacklisting support for known brokwn PCI option ROMs (Bandan)

  1. gpg: Signature made Wed 26 Feb 2014 18:15:28 GMT using RSA key ID 3BB08B22...
ead4cf04 02/27/2014 12:01 pm Mark Cave-Ayland

sun4m: fix slavio timer RUN/STOP bit

The sun4m architecture has one 'system' timer and one timer per CPU.
The CPU timers can be configured in two modes:

  • 22 bits Counter/Timer. Periodic interrupts.
  • 54 bits User timer. For profiling. In this mode, the Run/Stop bit...
9eb08a43 02/27/2014 12:01 pm Mark Cave-Ayland

sun4m: Add Sun CG3 framebuffer and corresponding OpenBIOS FCode ROM

The CG3 framebuffer is a simple 8-bit framebuffer for use with operating
systems such as early Solaris that do not have drivers for TCX.

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

af87bf29 02/27/2014 12:01 pm Mark Cave-Ayland

sun4m: Add Sun CG3 framebuffer initialisation function

In order to allow the user to choose the framebuffer for sparc-softmmu, add
-vga tcx and -vga cg3 options to the QEMU command line. If no option is
specified, the default TCX framebuffer is used.

Since proprietary FCode ROMs use a resolution of 1152x900, slightly relax the...

f9681f11 02/27/2014 12:01 pm Mark Cave-Ayland

sun4m: Set HostID in NVRAM

On SparcStations, the HostID field in the NVRAM is equal to the last
three bytes of the MAC address (which is also stored in the NVRAM).

This constant is used as an identification/serial number on Solaris.

Signed-off-by: Olivier Danet <>...

5d739a47 02/27/2014 10:51 am Christian Borntraeger

s390-ccw.img: Fix sporadic errors with ccw boot image - initialize css

We have to set the cssid to 0, otherwise the stsch code will
return an operand exception without the m bit. In the same way
we should set m=0.

This case was triggered in some cases during reboot, if for some...

0ca36112 02/27/2014 10:51 am Christian Borntraeger

s390-ccw.img: new binary rom to match latest fixes

Signed-off-by: Christian Borntraeger <>

49f5c9e9 02/27/2014 10:51 am Thomas Huth

s390x/cpu: Use ioctl to reset state in the kernel

Some of the state in the kernel can not be reset from QEMU yet.
For this we've got to use the KVM_S390_INITIAL_RESET ioctl to make
sure that the state in the kernel is set to the right values during
initial CPU reset, too....

f7d3e466 02/27/2014 10:51 am Thomas Huth

s390x/kvm: Rework SIGP INITIAL CPU RESET handler

The s390_cpu_initial_reset() function had two deficiencies: First, it
used an ioctl for the destination CPU, and this ioctl could block
nearly forever, as long as the destination CPU was running in the SIE...

04c2b516 02/27/2014 10:51 am Thomas Huth

s390x/kvm: Add missing SIGP CPU RESET order

The SIGP order CPU RESET was still missing in the list of our
supported handler. This patch now adds a simple implementation,
by using the cpu_reset() function that is already available in
target-s390x/cpu.c.

Signed-off-by: Thomas Huth <>...

1eecf41b 02/27/2014 10:51 am Frank Blaschka

s390x/kvm: Rework priv instruction handlers

The current implementation uses the second byte of the instruction
to identify the instruction handler. This is not sufficient to
support instructions not starting with 0xb2. This patch
adds separate handlers for 0xb2, 0xb9 and 0xeb to be able to...

7f00eb30 02/27/2014 10:51 am Thomas Huth

s390x/ipl: Fix crash of ELF images with arbitrary entry points

When loading S390 kernels, the current code expects an ELF file with the
start address 0x10000. Other ELF files cause a segmentation fault. To avoid
these crashes, we should get the start address from the ELF file instead...

3a553fc6 02/27/2014 10:51 am Jens Freimann

s390x/kvm: implement floating-interrupt controller device

This patch implements a floating-interrupt controller device (flic)
which interacts with the s390 flic kvm_device.

Signed-off-by: Jens Freimann <>
Reviewed-by: Cornelia Huck <>...

819bd309 02/27/2014 10:51 am Dominik Dingel

s390x/async_pf: Check for apf extension and enable pfault

S390 can also use async page faults, to enhance guest scheduling.
In case of live migration we want to disable the feature and let
all pending request finish.

Signed-off-by: Dominik Dingel <>...

0788082a 02/27/2014 10:51 am Thomas Huth

s390x/kvm: Fixed bad SIGP SET-ARCHITECTURE handler

The SET-ARCHITECTURE handler in QEMU caused a program interruption.
This is wrong according to the "Principles of Operations" specification
(since SIGP should never cause a program interrupt) and was likely only...

f2c55d17 02/27/2014 10:51 am Thomas Huth

s390x/virtio-hcall: Add range check for hypervisor call

The handler for diag 500 did not check whether the requested function
was in the supported range, so illegal values could crash QEMU in the
worst case.

Signed-off-by: Thomas Huth <>...

77319f22 02/27/2014 10:51 am Thomas Huth

s390x/virtio-hcall: Specification exception for illegal subcodes

So far, the DIAG 500 hypervisor call was only setting -EINVAL in
R2 when a guest tried to call this function with an illegal subcode.
This patch now changes the behavior so that a specification exception...

9da45bb2 02/27/2014 10:51 am Christian Borntraeger

s390x/eventfacility: mask out commands

As a followup to commit 5f04c14a10fa7f259bc0808f35a0beda49f7821e
(s390-sclp: Define New SCLP Codes) we should mask the sclp command
not only in base sclp, but also in the event facility.

Based on an initial patch from Ralf Hoppe....

a0fa2cb8 02/27/2014 10:51 am Thomas Huth

s390x/sclp: Fixed the size of sccb and code parameter

The pointer to the SCCB should not be limited to 32 bits only.
In contrast to this, the command word parameter is only 32 bits
(the upper 32 bits should be ignored).

Signed-off-by: Thomas Huth <>...

6e252802 02/27/2014 10:51 am Thomas Huth

s390x/sclp: Add missing checks to SCLP handler

If the 51 most significant bits of the SCCB address are zero or equal to
the prefix, we should throw an specification exception, too.
Also moved the check for privileged mode to sclp_service_call() to have
all program checks in one place now....

e8803d93 02/27/2014 10:51 am Thomas Huth

s390x/sclp: Fixed setting of condition code register

In the SCLP handler function, the condition code register must
only be set if no exception occured.

Signed-off-by: Thomas Huth <>
Reviewed-by: Cornelia Huck <>...

65e526c2 02/27/2014 10:51 am Heinz Graalfs

s390x/event-facility: some renaming

Do some renaming to shorten some identifiers and to emphasize sclp.

Signed-off-by: Heinz Graalfs <>
Acked-by: Cornelia Huck <>
Signed-off-by: Christian Borntraeger <>

477a72a1 02/27/2014 10:51 am Heinz Graalfs

s390x/event-facility: code restructure

Code restructure in order to simplify class hierarchy
- remove S390SCLPDevice abstract base class
and move function pointers into new SCLPEventFacilityClass
- implement SCLPEventFacility as SysBusDevice
- use define constants for instance creation strings...

6fbef18a 02/27/2014 10:51 am Heinz Graalfs

s390x/event-facility: add support for live migration

Add support for live migration using VMStateDescription.

Signed-off-by: Heinz Graalfs <>
Reviewed-by: Cornelia Huck <>
Signed-off-by: Christian Borntraeger <>

c804c2a7 02/27/2014 10:51 am Heinz Graalfs

s390x/event-facility: exploit realize/unrealize

init/exit functionality of abstract SCLPEvent class is now exploiting
realize/unrealize.

Signed-off-by: Heinz Graalfs <>
Reviewed-by: Cornelia Huck <>
Signed-off-by: Christian Borntraeger <>

d1028f1b 02/27/2014 10:51 am Christian Borntraeger

s390-ccw.img: Fix sporadic reboot hangs: Initialize next_idx

The current code does not initialize next_idx in the virtio ring.
As the ccw bios will always use guest memory at a fixed location,
this queue might != 0 after a reboot.
Lets make the initialization explicit....

216db403 02/27/2014 10:50 am Christian Borntraeger

update linux headers to kvm/next

This updates the kvm headers to
commit d3714010c307d26df251c45be9cd12ab6d41f0c4
KVM: x86: emulator_cmpxchg_emulated should mark_page_dirty
in kvm/next.

Signed-off-by: Christian Borntraeger <>

2ce5868c 02/27/2014 12:53 am Peter Maydell

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

target-arm queue: * fixes for various Coverity-spotted bugs * support new KVM device control API for VGIC * support KVM VGIC save/restore/migration * more AArch64 system mode foundations...

6f6831f6 02/27/2014 12:31 am Peter Maydell

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

migration/next for 20140225

  1. gpg: Signature made Tue 25 Feb 2014 14:04:31 GMT using RSA key ID 5872D723
  2. gpg: Can't check signature: public key not found
  • remotes/juanquintela/tags/migration/20140225:...
bc3fbad8 02/26/2014 10:04 pm Peter Maydell

Merge remote-tracking branch 'remotes/stefanha/tags/net-pull-request' into staging

Net patches

  1. gpg: Signature made Tue 25 Feb 2014 13:32:33 GMT using RSA key ID 81AB73C8
  2. gpg: Good signature from "Stefan Hajnoczi <>"
  3. gpg: aka "Stefan Hajnoczi <>"...