Statistics
| Branch: | Revision:

root @ a2623021

# Date Author Comment
1147bb15 01/25/2013 07:18 pm Jason Baron

ahci: Remove unused AHCIDevice fields

'dma_status' and 'dma_cb' are written to, but never read.
Remove these fields in preparation for AHCI migration bits.

Signed-off-by: Jason Baron <>
Reviewed-by: Juan Quintela <>
Signed-off-by: Kevin Wolf <>

4ac557c8 01/25/2013 07:18 pm Kevin Wolf

ahci: Change data types in preparation for migration

The size of an int depends on the host, so in order to be able to
migrate these fields, make them either int32_t or bool, depending on the
use.

Signed-off-by: Kevin Wolf <>

a2623021 01/25/2013 07:18 pm Jason Baron

ahci: Add migration support

Jason tested these patches by migrating Windows 7 and Fedora 17 guests
(while under I/O) on both piix with ahci attached and on q35 (which has
a built-in AHCI controller).

Signed-off-by: Andreas Färber <>
Signed-off-by: Jason Baron <>...

402a4741 01/25/2013 07:18 pm Paolo Bonzini

mirror: support more than one in-flight AIO operation

With AIO support in place, we can start copying more than one chunk
in parallel. This patch introduces the required infrastructure for
this: the buffer is split into multiple granularity-sized chunks,...

884fea4e 01/25/2013 07:18 pm Paolo Bonzini

mirror: support arbitrarily-sized iterations

Yet another optimization is to extend the mirroring iteration to include more
adjacent dirty blocks. This limits the number of I/O operations and makes
mirroring efficient even with a small granularity. Most of the infrastructure...

02582abd 01/25/2013 07:18 pm Stefan Weil

block: Add special error code for wrong format

The block drivers need a special error code for "wrong format".
From the available error codes EMEDIUMTYPE fits best.
It is not available on all platforms, so a definition in
qemu-common.h and a specific error report are needed....

15bac0d5 01/25/2013 07:18 pm Stefan Weil

block: Use error code EMEDIUMTYPE for wrong format in some block drivers

This improves error reports for bochs, cow, qcow, qcow2, qed and vmdk
when a file with the wrong format is selected.

Signed-off-by: Stefan Weil <>
Reviewed-by: Eric Blake <>...

9f0470bb 01/25/2013 07:18 pm Stefan Weil

block/vdi: Improve debug output for signature

The signature is a 32 bit value and needs up to 8 hex digits for printing.

Signed-off-by: Stefan Weil <>
Reviewed-by: Eric Blake <>
Signed-off-by: Kevin Wolf <>

8937f822 01/25/2013 07:18 pm Stefan Weil

block/vdi: Improved return values from vdi_open

vdi_open returned -1 in case of any error, but it should return an
error code (negative value of errno or -EMEDIUMTYPE).

Signed-off-by: Stefan Weil <>
Reviewed-by: Eric Blake <>...

0e87ba2c 01/25/2013 07:18 pm Stefan Weil

block/vdi: Check for bad signature

vdi_open did not check for a bad signature.
This check was only in vdi_probe.

Signed-off-by: Stefan Weil <>
Reviewed-by: Eric Blake <>
Signed-off-by: Kevin Wolf <>

88ff0e48 01/25/2013 07:18 pm Paolo Bonzini

mirror: do nothing on zero-sized disk

On a zero-sized disk we need to break out of the job successfully
before bdrv_dirty_iter_init is called, otherwise you will get an
assertion failure with the next patch.

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

1b095244 01/25/2013 07:18 pm Paolo Bonzini

hbitmap: add assertion on hbitmap_iter_init

hbitmap_iter_init causes an out-of-bounds access when the "first"
argument is or greater than or equal to the size of the bitmap.
Forbid this with an assertion, and remove the failing testcase.

Reported-by: Kevin Wolf <>...

50717e94 01/25/2013 07:18 pm Paolo Bonzini

block: allow customizing the granularity of the dirty bitmap

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

eee13dfe 01/25/2013 07:18 pm Paolo Bonzini

mirror: allow customizing the granularity

The desired granularity may be very different depending on the kind of
operation (e.g. continuous replication vs. collapse-to-raw) and whether
the VM is expected to perform lots of I/O while mirroring is in progress....

bd48bde8 01/25/2013 07:18 pm Paolo Bonzini

mirror: switch mirror_iteration to AIO

There is really no change in the behavior of the job here, since
there is still a maximum of one in-flight I/O operation between
the source and the target. However, this patch already introduces
the AIO callbacks (which are unmodified in the next patch)...

08e4ed6c 01/25/2013 07:18 pm Paolo Bonzini

mirror: add buf-size argument to drive-mirror

This makes sense when the next commit starts using the extra buffer space
to perform many I/O operations asynchronously.

Signed-off-by: Paolo Bonzini <>
Signed-off-by: Kevin Wolf <>

8f0720ec 01/25/2013 07:18 pm Paolo Bonzini

block: implement dirty bitmap using HBitmap

This actually uses the dirty bitmap in the block layer, and converts
mirroring to use an HBitmapIter.

Reviewed-by: Laszlo Ersek <> (except block/mirror.c parts)
Reviewed-by: Eric Blake <>...

343bded4 01/25/2013 07:18 pm Paolo Bonzini

block: make round_to_clusters public

This is needed in the following patch.

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

b812f671 01/25/2013 07:18 pm Paolo Bonzini

mirror: perform COW if the cluster size is bigger than the granularity

When mirroring runs, the backing files for the target may not yet be
ready. However, this means that a copy-on-write operation on the target
would fill the missing sectors with zeros. Copy-on-write only happens...

acc906c6 01/25/2013 07:18 pm Paolo Bonzini

block: return count of dirty sectors, not chunks

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

e7c033c3 01/25/2013 07:18 pm Paolo Bonzini

add hierarchical bitmap data type and test cases

HBitmaps provides an array of bits. The bits are stored as usual in an
array of unsigned longs, but HBitmap is also optimized to provide fast
iteration over set bits; going from one bit to the next is O(logB n)...

4c37ef02 01/25/2013 07:18 pm Paolo Bonzini

host-utils: add ffsl

We can provide fast versions based on the other functions defined
by host-utils.h. Some care is required on glibc, which provides
ffsl already.

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

11c29918 01/24/2013 08:56 pm Anthony Liguori

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

  1. By Paolo Bonzini (1) and Peter Lieven (1)
  2. Via Paolo Bonzini
    • bonzini/scsi-next:
      iscsi: add support for iovectors
      iscsi: do not leak acb->buf when commands are aborted
b37a2e45 01/24/2013 05:45 pm Michael Tokarev

Revert "serial: fix retry logic"

This reverts commit 67c5322d7000fd105a926eec44bc1765b7d70bdd:

I'm not sure if the retry logic has ever worked when not using FIFO mode.  I
found this while writing a test case although code inspection confirms it is...
4790b03d 01/24/2013 04:37 pm Paolo Bonzini

iscsi: do not leak acb->buf when commands are aborted

acb->buf is freed in the WRITE callback, but this may not
get called at all when commands are aborted. Add another
free in the ABORT TASK callback, which requires setting acb->buf
to NULL everywhere....

7371d56f 01/24/2013 04:37 pm Peter Lieven

iscsi: add support for iovectors

This patch adds support for directly passing the iovec
array from QEMUIOVector if libiscsi supports it (1.8.0
or newer).

Signed-off-by: Peter Lieven <>
[Preserve the improvements from commit 4cc841b, iscsi: partly...

3f668b6c 01/24/2013 12:28 pm Andreas Färber

target-cris: Fix typo in D_LOG() macro

It's VA_ARGS. Fixes the build with CRIS_[OP_]HELPER_DEBUG defined.

Broken since r6338 / 93fcfe39a0383377e647b821c9f165fd927cd4e0 (Convert
references to logfile/loglevel to use qemu_log*() macros).

Cc: Eduardo Habkost <>...

9fc7577a 01/24/2013 10:15 am Grant Likely

trivial: etraxfs_eth: Eliminate checkpatch errors

This is a trivial patch to harmonize the coding style on
hw/etraxfs_eth.c. This is in preparation to split off the bitbang mdio
code into a separate file.

Cc: Peter Maydell <>
Cc: Paul Brook <>...

177f7fc6 01/23/2013 05:08 pm Anthony Liguori

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

  1. By Peter Lieven (3) and others
  2. Via Paolo Bonzini
    • bonzini/scsi-next:
      scsi: Drop useless null test in scsi_unit_attention()
      lsi: use qbus_reset_all to reset SCSI bus
      scsi: fix segfault with 0-byte disk...
36ba5804 01/23/2013 05:08 pm Anthony Liguori

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

  1. By Gerd Hoffmann
  2. Via Gerd Hoffmann
    • kraxel/usb.77:
      usb: add usb-bot device (scsi bulk-only transport).
      ohci: add missing break
      Revert "usb-storage: Drop useless null test in usb_msd_handle_data()"
a29a6b73 01/23/2013 05:07 pm Anthony Liguori

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

  1. By Alon Levy
  2. Via Gerd Hoffmann
    • spice/spice.v68:
      qxl: change rom size to 8192
      qxl: stop using non revision 4 rom fields for revision < 4
de8864e5 01/22/2013 04:07 pm Peter Lieven

iscsi: add iscsi_create support

This patch adds support for bdrv_create. This allows e.g.
to use qemu-img to convert from any supported device to
an iscsi backed storage as destination.

Signed-off-by: Peter Lieven <>
Signed-off-by: Paolo Bonzini <>

4cc841b5 01/22/2013 04:07 pm Peter Lieven

iscsi: partly avoid iovec linearization in iscsi_aio_writev

libiscsi expects all write16 data in a linear buffer. If the
iovec only contains one buffer we can skip the linearization
step as well as the additional malloc/free and pass the
buffer directly....

5b5d34ec 01/22/2013 04:07 pm Peter Lieven

iscsi: add support for iSCSI NOPs [v2]

This patch will send NOP-Out PDUs every 5 seconds to the iSCSI target.
If a consecutive number of NOP-In replies fail a reconnect is initiated.
iSCSI NOPs help to ensure that the connection to the target is still operational....

0369f06f 01/22/2013 04:07 pm Paolo Bonzini

scsi: fix segfault with 0-byte disk

When a 0-sized disk is found, READ CAPACITY will return a
LUN NOT READY error. However, because it returns -1 instead
of zero, the HBA will call scsi_req_continue. This will
typically cause a segmentation fault or an assertion failure....

032f0101 01/22/2013 04:07 pm Paolo Bonzini

lsi: use qbus_reset_all to reset SCSI bus

Signed-off-by: Paolo Bonzini <>

0bf8264e 01/22/2013 04:07 pm Markus Armbruster

scsi: Drop useless null test in scsi_unit_attention()

req was created by scsi_req_alloc(), which initializes req->dev to a
value it dereferences. req->dev isn't changed anywhere else.
Therefore, req->dev can't be null.

Drop the useless null test; it spooks Coverity....

7fa96d73 01/22/2013 12:09 pm Gerd Hoffmann

ohci: add missing break

Signed-off-by: Gerd Hoffmann <>

34707333 01/22/2013 12:09 pm Gerd Hoffmann

usb: add usb-bot device (scsi bulk-only transport).

Basically the same as usb-storage, but without automatic scsi
device setup. Also features support for up to 16 LUNs.

Signed-off-by: Gerd Hoffmann <>

f4c0e501 01/22/2013 12:01 pm Gerd Hoffmann

Revert "usb-storage: Drop useless null test in usb_msd_handle_data()"

This reverts commit a1cbfd554e11bb8af38c2f3e1f1574bf4c563cd2.

Test isn't useless. scsi_req_enqueue() may finish the request (will
actually happen for requests which don't trigger any I/O such as...

038c1879 01/22/2013 12:01 pm Alon Levy

qxl: change rom size to 8192

This is a simpler solution to 869981, where migration breaks since qxl's
rom bar size has changed. Instead of ignoring fields in QXLRom, which is what has
actually changed, we remove some of the modes, a mechanism already
accounted for by the guest. The modes left allow for portrait and...

e0ac6097 01/22/2013 12:01 pm Alon Levy

qxl: stop using non revision 4 rom fields for revision < 4

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

1356b98d 01/21/2013 09:52 pm Andreas Färber

sysbus: Drop sysbus_from_qdev() cast macro

Replace by SYS_BUS_DEVICE() QOM cast macro using a scripted conversion.
Avoids the old macro creeping into new code.

Resolve a Coding Style warning in openpic code.

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

32ed2680 01/21/2013 09:33 pm Tim Hardeck

vnc: added buffer_advance function

Following Anthony Liguori's Websocket implementation I have added the
buffer_advance function to VNC and replaced all related buffer memmove
operations with it.

Signed-off-by: Tim Hardeck <>
Reviewed-by: Anthony Liguori <>...

7536ee4b 01/21/2013 09:33 pm Tim Hardeck

vnc: added initial websocket protocol support

This patch adds basic Websocket Protocol version 13 - RFC 6455 - support
to QEMU VNC. Binary encoding support on the client side is mandatory.

Because of the GnuTLS requirement the Websockets implementation is...

6fd8e79a 01/21/2013 09:33 pm Tim Hardeck

vnc: fix possible uninitialized removals

Some VncState values are not initialized before the Websocket handshake.
If it fails QEMU segfaults during the cleanup. To prevent this behavior
intialization checks are added.

Signed-off-by: Tim Hardeck <>...

11e9235b 01/21/2013 09:23 pm KONRAD Frederic

virtio-s390-device: create a virtio-s390-bus during init.

A virtio-s390-bus is created during the init. So one VirtIODevice can be
connected on the virtio-s390-device through this bus.

Signed-off-by: KONRAD Frederic <>
Signed-off-by: Anthony Liguori <>

085bccb7 01/21/2013 09:23 pm KONRAD Frederic

virtio-pci: refactor virtio-pci device.

Create the virtio-pci device which is abstract. This transport device will
create a virtio-pci-bus, so one VirtIODevice can be connected.

Signed-off-by: KONRAD Frederic <>
Signed-off-by: Anthony Liguori <>

ea35d4f1 01/21/2013 09:23 pm KONRAD Frederic

virtio-s390-bus: add virtio-s390-bus.

This add the virtio-s390-bus which extends virtio-bus. So one VirtIODevice can
be connected on this bus.

Signed-off-by: KONRAD Frederic <>
Signed-off-by: Anthony Liguori <>

1395af6f 01/21/2013 09:23 pm KONRAD Frederic

qdev: add a maximum device allowed field for the bus.

Add a max_dev field to BusClass to specify the maximum amount of devices allowed
on the bus (has no effect if max_dev=0)

Signed-off-by: KONRAD Frederic <>

Reviewed-by: Peter Maydell <>...

ff8eca55 01/21/2013 09:23 pm KONRAD Frederic

virtio-bus: introduce virtio-bus

Introduce virtio-bus. Refactored transport device will create a bus which
extends virtio-bus.

Signed-off-by: KONRAD Frederic <>

Reviewed-by: Peter Maydell <>
Signed-off-by: Anthony Liguori <>

8e05db92 01/21/2013 09:23 pm KONRAD Frederic

virtio-device: refactor virtio-device.

Create the virtio-device which is abstract. All the virtio-device can extend
this class. It also add some functions to virtio-bus.

Signed-off-by: KONRAD Frederic <>
Signed-off-by: Anthony Liguori <>

0a2acf5e 01/21/2013 09:23 pm KONRAD Frederic

virtio-pci-bus: introduce virtio-pci-bus.

Introduce virtio-pci-bus, which extends virtio-bus. It is used with virtio-pci
transport device.

Signed-off-by: KONRAD Frederic <>
Signed-off-by: Anthony Liguori <>

016c7182 01/21/2013 09:22 pm Anthony Liguori

Merge remote-tracking branch 'quintela/thread.next' into staging

  1. By Juan Quintela (7) and Paolo Bonzini (6)
  2. Via Juan Quintela
    • quintela/thread.next:
      migration: remove argument to qemu_savevm_state_cancel
      migration: Only go to the iterate stage if there is anything to send...
e0f01837 01/21/2013 03:32 pm Anthony Liguori

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

  1. By Stefan Weil (2) and others
  2. Via Stefan Hajnoczi
    • stefanha/trivial-patches:
      hw/tpci200: Fix compiler warning (redefined symbol with MinGW)
      configure: silence pkg-config's check for curses...
f2bdbd5b 01/21/2013 03:32 pm Anthony Liguori

Merge remote-tracking branch 'kraxel/seabios-1.7.2' into staging

  1. By Gerd Hoffmann
  2. Via Gerd Hoffmann
    • kraxel/seabios-1.7.2:
      seabios: update to 1.7.2 release
a42a56c5 01/21/2013 02:36 pm Andreas Färber

target-cris: Drop unused cpu_cris_close() prototype

Such a function never existed.

Signed-off-by: Andreas Färber <>
Signed-off-by: Edgar E. Iglesias <>

56a8810d 01/21/2013 02:36 pm Andreas Färber

target-microblaze: Drop unused cpu_mb_close() prototype

Such a function never existed.

Signed-off-by: Andreas Färber <>
Signed-off-by: Edgar E. Iglesias <>

09a021fb 01/21/2013 12:39 pm Stefan Weil

hw/tpci200: Fix compiler warning (redefined symbol with MinGW)

STATUS_TIMEOUT is defined in winnt.h:

CC    hw/tpci200.o
hw/tpci200.c:34:0:
warning: "STATUS_TIMEOUT" redefined [enabled by default]
/usr/lib/gcc/x86_64-w64-mingw32/4.6/../../../../x86_64-w64-mingw32/include/winnt.h:1036:0:...
d0f54533 01/21/2013 12:08 pm Stefan Weil

hw: Spelling fix in log message

defineition -> definition

Signed-off-by: Stefan Weil <>
Reviewed-by: Andreas F=E4rber <>
Signed-off-by: Stefan Hajnoczi <>

5facfb49 01/21/2013 12:08 pm Michael Tokarev

acpitable: open the data file in binary mode

-acpitable {file|data}=file reads the content of file, but it is
in binary form, so the file should be opened usin O_BINARY flag.
On *nix it is a no-op, but on windows and other weird platform
it is really needed....

acf15c89 01/21/2013 12:08 pm Vadim Evard

configure: silence pkg-config's check for curses

Signed-off-by: Vadim Evard <>
Signed-off-by: Stefan Hajnoczi <>

3588185b 01/21/2013 10:17 am Gerd Hoffmann

seabios: update to 1.7.2 release

Not that many changes as we have a pretty recent git snapshot in master
already:

Hannes Reinecke (1):
megasas: Invert PCI device selection

Kevin O'Connor (2):
Minor: Separate UUID display from F12 boot prompt....

8b17ed4c 01/20/2013 07:01 pm Anthony Liguori

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

  1. By Kevin Wolf (4) and others
  2. Via Stefan Hajnoczi
    • stefanha/block:
      dataplane: support viostor virtio-pci status bit setting
      dataplane: avoid reentrancy during virtio_blk_data_plane_stop()...
b54c2873 01/19/2013 10:01 pm Stefan Weil

tci: Fix broken build (regression)

s390x-linux-user now also uses GETPC. Instead of adding it to the list of
targets which use GETPC, the macro is now defined unconditionally.

This avoids future build regressions like this one:

CC    s390x-linux-user/target-s390x/int_helper.o...
c36dd8a0 01/19/2013 04:35 pm Andreas Färber

block/raw-posix: Make hdev_aio_discard() available outside Linux

Fixes the build on OpenBSD among others.

Suggested-by: Kevin Wolf <>
Signed-off-by: Andreas Färber <>
Cc: Paolo Bonzini <>
Signed-off-by: Blue Swirl <>

c1db2919 01/19/2013 12:30 pm Stefan Weil

usb: Fix compilation for MinGW (regression)

84f2d0ea added an argument to function usb_host_info.
The stub function must match the declaration in usb.h.

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

249fe3f3 01/19/2013 12:29 pm Andreas Färber

cpu-defs.h: Drop qemu_work_item prototype

Commit c64ca8140e9c21cd0d44c10fbe1247cb4ade8e6e (cpu: Move
queued_work_{first,last} to CPUState) moved the qemu_work_item fields
away. Clean up the now unused prototype.

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

5256a720 01/19/2013 12:27 pm Peter Maydell

tcg/target-arm: Add missing parens to assertions

Silence a (legitimate) complaint about missing parentheses:

tcg/arm/tcg-target.c: In function ‘tcg_out_qemu_ld’:
tcg/arm/tcg-target.c:1148:5: error: suggest parentheses around
comparison in operand of ‘&’ [-Werror=parentheses]...

e4ada482 01/19/2013 12:24 pm Stefan Weil

Replace non-portable asprintf by g_strdup_printf

g_strdup_printf already handles OOM errors, so some error handling in
QEMU code can be removed.

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

0e7a7592 01/19/2013 12:22 pm Markus Armbruster

vl: Use size_t for sizes in get_boot_devices_list()

Code mixes uint32_t, int and size_t. Very unlikely to go wrong in
practice, but clean it up anyway.

Signed-off-by: Markus Armbruster <>
Signed-off-by: Blue Swirl <>

089da572 01/19/2013 12:22 pm Markus Armbruster

fw_cfg: Use void *, size_t instead of uint8_t *, uint32_t for blobs

Many callers pass size_t, which gets silently truncated to uint32_t.
Harmless, because all practical sizes are well below 4GiB. Clean it
up anyway. Size overflow now fails assertions.
...

b3dd1552 01/19/2013 12:22 pm Markus Armbruster

pc: Clean up bochs_bios_init()'s (non-)use of sizeof

Signed-off-by: Markus Armbruster <>
Signed-off-by: Blue Swirl <>

0e0d2d62 01/19/2013 12:22 pm Markus Armbruster

sun4: Fix unchecked strdup() by switching to fw_cfg_add_string()

Signed-off-by: Markus Armbruster <>
Signed-off-by: Blue Swirl <>

44687f75 01/19/2013 12:22 pm Markus Armbruster

fw_cfg: New fw_cfg_add_string()

Signed-off-by: Markus Armbruster <>
Signed-off-by: Blue Swirl <>

96f80586 01/19/2013 12:22 pm Markus Armbruster

pc: Fix unchecked strdup() by switching to fw_cfg_add_string()

Signed-off-by: Markus Armbruster <>
Signed-off-by: Blue Swirl <>

4cad3867 01/19/2013 12:22 pm Markus Armbruster

fw_cfg: Dumb down fw_cfg_add_*() not to return success / failure

No caller is checking the value, so all errors get ignored, usually
silently. assert() instead.

Signed-off-by: Markus Armbruster <>
Signed-off-by: Blue Swirl <>

f6e35343 01/19/2013 12:22 pm Markus Armbruster

fw_cfg: Replace debug prints by tracepoints

Signed-off-by: Markus Armbruster <>
Signed-off-by: Blue Swirl <>

633f6502 01/19/2013 12:13 pm Paolo Bonzini

optimize: optimize using nonzero bits

This adds two optimizations using the non-zero bit mask. In some cases
involving shifts or ANDs the value can become zero, and can thus be
optimized to a move of zero. Second, useless zero-extension or an
AND with constant can be detected that would only zero bits that are...

3a9d8b17 01/19/2013 12:13 pm Paolo Bonzini

optimize: track nonzero bits of registers

Add a "mask" field to the tcg_temp_info struct. A bit that is zero
in "mask" will always be zero in the corresponding temporary.
Zero bits in the mask can be produced from moves of immediates,
zero-extensions, ANDs with constants, shifts; they can then be...

d193a14a 01/19/2013 12:13 pm Paolo Bonzini

optimize: only write to state when clearing optimizer data

The next patch will add to the TCG optimizer a field that should be
non-zero in the default case. Thus, replace the memset of the
temps array with a loop. Only the state field has to be up-to-date,...

75f0585f 01/19/2013 11:56 am Blue Swirl

Merge branch 'ppc-for-upstream' of git://repo.or.cz/qemu/agraf

  • 'ppc-for-upstream' of git://repo.or.cz/qemu/agraf:
    PPC: KVM: Add support for EPR with KVM
    openpic: export e500 epr enable into a ppc.c function
    Update Linux kernel headers
    PPC: e500: Change in-memory order of load blobs...
67c4f2d0 01/19/2013 11:55 am Blue Swirl

Merge branch 's390-for-upstream' of git://repo.or.cz/qemu/agraf

  • 's390-for-upstream' of git://repo.or.cz/qemu/agraf:
    s390: Add a hypercall registration interface.
    target-s390x: Unregister reset callback on finalization
    s390x: fix indentation
    s390: Add CPU reset handler...
48b8599c 01/19/2013 11:54 am Blue Swirl

Merge branch 'axp-next' of git://github.com/rth7680/qemu

  • 'axp-next' of git://github.com/rth7680/qemu:
    alpha-linux-user: Correct select
    alpha-linux-user: Translate fcntl l_type
ccb084d3 01/18/2013 08:07 pm Christian Borntraeger

s390: new contributions GPLv2 or later

IBMs s390 contributions were meant to to be gplv2 or later (since
we were contributing to qemu). Several of the s390 specific files
link to gpl code anyway, so lets clarify the licence statement for
new contributions for those files that we have touched multiple...

e674a49a 01/18/2013 08:07 pm Christian Borntraeger

s390: Move IPL code into a separate device

Lets move the code to setup IPL for external kernel
or via the zipl rom into a separate file. This allows to

- define a reboot handler, setting up the PSW appropriately
- enhance the boot code to IPL disks that contain a bootmap that...

904e5fd5 01/18/2013 08:07 pm Viktor Mihajlovski

S390: Enable -cpu help and QMP query-cpu-definitions

This enables qemu -cpu help to return a list of supported CPU models
on s390 and also to query for cpu definitions in the monitor.
Initially only cpu model = host is returned. This needs to be reworked...

a158986d 01/18/2013 08:07 pm Stefan Weil

s390x: Remove inline function ebcdic_put and related data from cpu.h

The function is only used in misc_helper.c, so move it to that file.

This reduces the size of debug executables (compiled without optimization)
because they get unused code and data for each compilation which includes...

70bada03 01/18/2013 08:07 pm Jens Freimann

s390: Add CPU reset handler

Add a CPU reset handler to have all CPUs in a PoP compliant
state.

Signed-off-by: Jens Freimann <>
[agraf: move hw/hw.h into existing ifdef]
Signed-off-by: Alexander Graf <>

419831d7 01/18/2013 08:07 pm Alexander Graf

s390x: fix indentation

In one of the last commits we accidently got 3-space indentation into
the tree. Fix it up so it's 4 spaces wide.

Reported-by: Andreas Faerber <>
Signed-off-by: Alexander Graf <>

d5627ce8 01/18/2013 08:07 pm Andreas Färber

target-s390x: Unregister reset callback on finalization

Since commit "s390: Add CPU reset handler" the CPU's instance_init
registers a reset callback. Unregister that on instance_finalize.

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

28e942f8 01/18/2013 08:07 pm Cornelia Huck

s390: Add a hypercall registration interface.

Allow virtio machines to register for different diag500 function
codes and convert s390-virtio to use it.

Signed-off-by: Cornelia Huck <>
Signed-off-by: Alexander Graf <>

528e536e 01/18/2013 08:06 pm Alexander Graf

PPC: E500: Calculate loading blob offsets properly

We have 3 blobs we need to load when booting the system:

- kernel
- initrd
- dtb

We place them in physical memory in that order. At least we should.
This patch fixes the location calculation up to take any module into...

746a870b 01/18/2013 08:06 pm Alexander Graf

PPC: Provide zero SVR for -cpu e500mc and e5500

Even though our -cpu types for e500mc and e5500 are no real CPUs that
actually have version registers, a guest might still want to access
said version register and that has to succeed for a guest to be happy....

b8dec144 01/18/2013 08:06 pm Alexander Graf

PPC: e500: Change in-memory order of load blobs

Today, we load

&lt;kernel&gt; &lt;initrd&gt; &lt;dtb&gt;

into memory in that order. However, Linux has a bug where it can only
handle the dtb if it's within the first 64MB of where <kernel> starts.

So instead, let's change the order to...

d3dccee1 01/18/2013 08:06 pm Alexander Graf

Update Linux kernel headers

Based on kvm.git a843fac (next) plus dfdebc24 (master).

Signed-off-by: Alexander Graf <>

e49798b1 01/18/2013 08:06 pm Alexander Graf

openpic: export e500 epr enable into a ppc.c function

Enabling and disabling the EPR capability (mpic_proxy) is a system
wide operation. As such, it belongs into the ppc.c file, since that's
where PPC specific machine wide logic happens.

Signed-off-by: Alexander Graf <>

5b95b8b9 01/18/2013 08:06 pm Alexander Graf

PPC: KVM: Add support for EPR with KVM

This patch links KVM EPR support to the existing TCG support we have now.

Signed-off-by: Alexander Graf <>

1ac3d713 01/18/2013 08:06 pm Alexander Graf

openpic: unify gcr mode mask updates

The mode mask already masks out bits we don't care about, so the
actual handling code can stay intact regardless.

Signed-off-by: Alexander Graf <>

86e56a88 01/18/2013 08:06 pm Alexander Graf

openpic: set mixed mode as supported

The Raven MPIC implementation supports the "Mixed" mode to work with
an i8259. While we don't implement mixed mode, we should mark it as
a supported mode in the mode bitmap.

Signed-off-by: Alexander Graf <>