Statistics
| Branch: | Revision:

root @ 5cd8f621

# Date Author Comment
5cd8f621 10/10/2013 09:43 pm Richard Henderson

tcg: Move helper registration into tcg_context_init

No longer needs to be done on a per-target basis.

Signed-off-by: Richard Henderson <>

e5e84d22 10/10/2013 09:41 pm Richard Henderson

target-m68k: Rename helpers.h to helper.h

This brings the m68k target in line with all other targets.

Reviewed-by: Stefan Weil <>
Signed-off-by: Richard Henderson <>

6e085f72 10/10/2013 09:41 pm Richard Henderson

tcg: Use a GHashTable for tcg_find_helper

Slightly changes the interface, in that we now return name
instead of a TCGHelperInfo structure, which goes away.

Reviewed-by: Stefan Weil <>
Signed-off-by: Richard Henderson <>

7c57df0d 10/10/2013 09:41 pm Richard Henderson

tcg: Delete tcg_helper_get_name declaration

The function was deleted in 4dc81f2822187f4503d4bdb76785cafa5b28db0b.

Reviewed-by: Stefan Weil <>
Signed-off-by: Richard Henderson <>

802b5081 10/10/2013 09:31 pm Richard Henderson

tcg-hppa: Remove tcg backend

Signed-off-by: Richard Henderson <>

a1071705 10/09/2013 05:54 pm Anthony Liguori

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

  1. By Max Reitz (5) and others
  2. Via Stefan Hajnoczi
    • stefanha/block:
      block: use correct filename
      qemu-iotests: Correct 026 output
      qcow2: Free allocated L2 cluster on error
      qcow2: Switch L1 table in a single sequence...
80dfc873 10/09/2013 05:54 pm Anthony Liguori

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

  1. By Stefan Weil (5) and others
  2. Via Michael Tokarev
    • mjt/trivial-patches:
      migration: Fix compiler warning ('caps' may be used uninitialized)
      util/path: Fix type which is longer than 8 bit for MinGW...
576e81be 10/09/2013 05:52 pm Anthony Liguori

Merge remote-tracking branch 'rth/tcg-arm-pull' into staging

  1. By Richard Henderson
  2. Via Richard Henderson
    • rth/tcg-arm-pull:
      tcg-arm: Move the tlb addend load earlier
      tcg-arm: Remove restriction on qemu_ld output register
      tcg-arm: Return register containing tlb addend...
9e8f8b1c 10/09/2013 05:52 pm Anthony Liguori

Merge remote-tracking branch 'sweil/mingw' into staging

  1. By Sebastian Ottlik
  2. Via Stefan Weil
    • sweil/mingw:
      util: call socket_set_fast_reuse instead of setting SO_REUSEADDR
      slirp: call socket_set_fast_reuse instead of setting SO_REUSEADDR
      net: call socket_set_fast_reuse instead of setting SO_REUSEADDR...
dfe22799 10/09/2013 05:52 pm Anthony Liguori

Merge remote-tracking branch 'kraxel/chardev.8' into staging

  1. By Gerd Hoffmann
  2. Via Gerd Hoffmann
    • kraxel/chardev.8:
      chardev: handle qmp_chardev_add(KIND_MUX) failure

Message-id:
Signed-off-by: Anthony Liguori <>

ce079abb 10/09/2013 05:51 pm Anthony Liguori

Merge remote-tracking branch 'sweil/tci' into staging

  1. By Stefan Weil
  2. Via Stefan Weil
    • sweil/tci:
      misc: Use new rotate functions
      bitops: Add rotate functions (rol8, ror8, ...)
      tci: Add implementation of rotl_i64, rotr_i64

Message-id: ...

e3b21ef9 10/07/2013 02:23 pm Max Reitz

qcow2: Free allocated L2 cluster on error

If an error occurs in l2_allocate, the allocated (but unused) L2 cluster
should be freed.

Signed-off-by: Max Reitz <>
Reviewed-by: Benoit Canet <>
Signed-off-by: Stefan Hajnoczi <>

5c1fa877 10/07/2013 02:23 pm Max Reitz

qemu-iotests: Correct 026 output

Because l2_allocate now frees the unused L2 cluster on error, the
according test cases in 026 don't result in one leaked cluster anymore.

Signed-off-by: Max Reitz <>
Signed-off-by: Stefan Hajnoczi <>

d4cea8df 10/07/2013 02:23 pm Dunrong Huang

block: use correct filename

The content filename point to may be erased by qemu_opts_absorb_qdict()
in raw_open_common() in drv->bdrv_file_open()

So it's better to use bs->filename.

Signed-off-by: Dunrong Huang <>
Reviewed-by: Max Reitz <>...

387eedeb 10/05/2013 01:02 pm Michael Tokarev

migration: Fix compiler warning ('caps' may be used uninitialized)

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

ddd23638 10/05/2013 01:01 pm Stefan Weil

util/path: Fix type which is longer than 8 bit for MinGW

While dirent->d_type is 8 bit for most systems, it is 32 bit for MinGW.
Reducing it to 8 bit results in a compiler warning because the macro
is_dir_maybe compares that 8 bit value with 32 bit constants....

e3fdc535 10/05/2013 12:05 pm Markus Armbruster

vl: Clean up unnecessary boot_order complications

Messed up in commit 8281abd.

Signed-off-by: Markus Armbruster <>
Signed-off-by: Michael Tokarev <>

8af00205 10/05/2013 12:05 pm Daniel P. Berrange

hw/9pfs: Fix errno value for xattr functions

If there is no operation driver for the xattr type the
functions return '-1' and set errno to '-EOPNOTSUPP'.
When the calling code sets 'ret = -errno' this turns
into a large positive number.

In Linux 3.11, the kernel has switched to using 9p...

49aa4058 10/05/2013 12:05 pm Stefan Weil

qemu-char: Fix potential out of bounds access to local arrays

Latest gcc-4.8 supports a new option -fsanitize=address which activates
an AddressSanitizer. This AddressSanitizer stops the QEMU system emulation
very early because two character arrays of size 8 are potentially written...

016e9d62 10/02/2013 09:55 pm Amos Kong

exec: cleanup DEBUG_SUBPAGE

Touched some error after enabling DEBUG_SUBPAGE.

Signed-off-by: Amos Kong <>
Reviewed-by: Paolo Bonzini <>
Signed-off-by: Michael Tokarev <>

3a6f2703 10/02/2013 09:55 pm Stefan Weil

block: Remove unused assignment (fixes warning from clang)

blockdev.c:1929:13: warning: Value stored to 'ret' is never read
ret = 0;
^ ~

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

00fdef65 10/02/2013 09:55 pm Stefan Weil

target-i386: Fix compiler warning (integer constant is too large)

From buildbot default_i386_rhel61:

CC    i386-softmmu/target-i386/arch_memory_mapping.o
target-i386/arch_memory_mapping.c: In function 'walk_pde':
target-i386/arch_memory_mapping.c:110: warning:...
9b2caaf4 10/02/2013 09:55 pm Stefan Weil

hw/alpha: Fix compiler warning (integer constant is too large)

From buildbot default_i386_rhel61:

CC    alpha-softmmu/hw/alpha/typhoon.o
hw/alpha/typhoon.c: In function 'typhoon_translate_iommu':
hw/alpha/typhoon.c:703: warning: integer constant is too large for 'long' type...
84faf7c3 10/02/2013 09:55 pm Guenter Roeck

sh4: Fix serial line access for Linux kernels later than 3.2

With Linux kernel version 3.3 or later, qemu fails with the following message:

sh_serial: unsupported read from 0x18
Aborted

Reported-and-analyzed-by: Rob Landley <>
Signed-off-by: Guenter Roeck <>...

4b351a0f 10/02/2013 09:55 pm Ján Veselý

pci-ohci: Add missing 'break' in ohci_service_td

Device communication errors need to be reported to driver.
Add a debug message while at it.

Signed-off-by: Jan Vesely <>
Acked-by: Gerd Hoffmann <>
Signed-off-by: Michael Tokarev <>

d8039e58 10/02/2013 09:55 pm Markus Armbruster

tests: Fix schema parser test for in-tree build

Commit 4f193e3 added the test, but screwed up in-tree builds
(SRCDIR=.): the tests's output overwrites the expected output, and is
thus compared to itself.

Cc:
Reported-by: Laszlo Ersek <>...

606600a1 10/02/2013 08:20 pm Sebastian Ottlik

util: add socket_set_fast_reuse function which will replace setting SO_REUSEADDR

If a socket is closed it remains in TIME_WAIT state for some time. On operating
systems using BSD sockets the endpoint of the socket may not be reused while in
this state unless SO_REUSEADDR was set on the socket. On windows on the other...

6669ca13 10/02/2013 08:20 pm Sebastian Ottlik

gdbstub: call socket_set_fast_reuse instead of setting SO_REUSEADDR

SO_REUSEADDR should be avoided on Windows but is desired on other operating
systems. So instead of setting it we call socket_set_fast_reuse that will result
in the appropriate behaviour on all operating systems....

bcbe92fb 10/02/2013 08:20 pm Sebastian Ottlik

net: call socket_set_fast_reuse instead of setting SO_REUSEADDR

SO_REUSEADDR should be avoided on Windows but is desired on other operating
systems. So instead of setting it we call socket_set_fast_reuse that will result
in the appropriate behaviour on all operating systems....

aad1239a 10/02/2013 08:20 pm Sebastian Ottlik

slirp: call socket_set_fast_reuse instead of setting SO_REUSEADDR

SO_REUSEADDR should be avoided on Windows but is desired on other operating
systems. So instead of setting it we call socket_set_fast_reuse that will result
in the appropriate behaviour on all operating systems....

04fd1c78 10/02/2013 08:20 pm Sebastian Ottlik

util: call socket_set_fast_reuse instead of setting SO_REUSEADDR

SO_REUSEADDR should be avoided on Windows but is desired on other operating
systems. So instead of setting it we call socket_set_fast_reuse that will result
in the appropriate behaviour on all operating systems....

0e19885e 10/02/2013 08:09 pm Anthony Liguori

Update MAINTAINERS

All of Paul's emails are bouncing and he hasn't been active for
some time.

Signed-off-by: Anthony Liguori <>

fda74f82 10/02/2013 04:38 pm Max Reitz

qcow2: Switch L1 table in a single sequence

Switching the L1 table in memory should be an atomic operation, as far
as possible. Calling qcow2_free_clusters on the old L1 table on disk is
not a good idea when the old L1 table is no longer valid and the address...

5641bf40 10/02/2013 04:24 pm Jeff Cody

block: vhdx - add migration blocker

This blocks migration for VHDX image files, until the
functionality can be supported.

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

2fa9aa59 10/02/2013 12:41 pm Dunrong Huang

block: use correct filename for error report

The content filename point to will be erased by qemu_opts_absorb_qdict()
in raw_open_common() in drv->bdrv_file_open()

So it's better to use bs->filename.

Signed-off-by: Dunrong Huang <>
Reviewed-by: Max Reitz <>...

db074901 10/02/2013 12:40 pm Max Reitz

qcow2: CHECK_OFLAG_COPIED is obsolete

CHECK_OFLAG_COPIED as a parameter to check_refcounts_l1 and
check_refcounts_l2 is obselete now, since the OFLAG_COPIED consistency
check is actually no longer performed by these functions (but by
check_oflag_copied)....

1e242b55 10/02/2013 12:06 pm Max Reitz

qcow2: Correct endianness in overlap check

If an inactive L1 table is loaded from disk, its entries are in big
endian and have to be converted to host byte order before using them.

Signed-off-by: Max Reitz <>
Reviewed-by: Kevin Wolf <>...

23bbc250 10/01/2013 08:20 pm Richard Henderson

tcg-arm: Use ldrd/strd for appropriate qemu_ld/st64

Reviewed-by: Aurelien Jarno <>
Signed-off-by: Richard Henderson <>

d9f4dde4 10/01/2013 08:20 pm Richard Henderson

tcg-arm: Rearrange slow-path qemu_ld/st

Use the new helper_ret_*_mmu routines. Use a conditional call
to arrange for a tail-call from the store path, and to load the
return address for the helper for the load path.

Signed-off-by: Richard Henderson <>

e5e2e4a7 10/01/2013 08:20 pm Richard Henderson

tcg-arm: Use strd for tcg_out_arg_reg64

Signed-off-by: Richard Henderson <>

f2488736 10/01/2013 08:20 pm Richard Henderson

tcg-arm: Use QEMU_BUILD_BUG_ON to verify constraints on tlb

One of the two constraints we already checked via #if, but
the tlb offset distance was only checked at runtime.

Signed-off-by: Richard Henderson <>

d0ebde22 10/01/2013 08:20 pm Richard Henderson

tcg-arm: Move load of tlb addend into tcg_out_tlb_read

This allows us to make more intelligent decisions about the relative
offsets of the tlb comparator and the addend, avoiding any need of
writeback addressing.

Signed-off-by: Richard Henderson <>

d3e440be 10/01/2013 08:20 pm Richard Henderson

tcg-arm: Return register containing tlb addend

Preparatory to rescheduling the tlb load, and changing said register.
Continues to use R1 for now.

Signed-off-by: Richard Henderson <>

66c2056f 10/01/2013 08:20 pm Richard Henderson

tcg-arm: Remove restriction on qemu_ld output register

The main intent of the patch is to allow the tlb addend register
to be changed, without tying that change to the constraint. But
the most common side-effect seems to be to enable usage of ldrd
with the r0,r1 pair....

ee06e230 10/01/2013 08:20 pm Richard Henderson

tcg-arm: Move the tlb addend load earlier

There are free scheduling slots between the sequence of
comparison instructions. This requires changing the
register in use to avoid conflict with those compares.

Signed-off-by: Richard Henderson <>

d1c295f5 10/01/2013 03:06 pm Fam Zheng

.gitignore: ignore tests/qemu-iotests/socket_scm_helper

Signed-off-by: Fam Zheng <>
Reviewed-by: Wenchao Xia<>
Signed-off-by: Michael Tokarev <>

9dbb52e8 10/01/2013 03:06 pm Markus Armbruster

tests: Update .gitignore for test-int128 and test-bitops

Forgotten in commit 6046c62 and 3464700.

Cc:
Reviewed-by: Andreas Färber <>
Reviewed-by: Laszlo Ersek <>
Signed-off-by: Markus Armbruster <>...

ee6ee83d 10/01/2013 11:16 am Gerd Hoffmann

chardev: handle qmp_chardev_add(KIND_MUX) failure

Cc: Markus Armbruster <>
Signed-off-by: Gerd Hoffmann <>

a684f3cf 10/01/2013 01:15 am Anthony Liguori

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

  1. By Gerd Hoffmann
  2. Via Gerd Hoffmann
    • kraxel/seabios-1.7.3.2:
      update seabios from 1.7.2.2 to 1.7.3.2

Message-id:

349cd52c 10/01/2013 01:15 am Anthony Liguori

Merge remote-tracking branch 'kraxel/roms.1' into staging

  1. By Gerd Hoffmann
  2. Via Gerd Hoffmann
    • kraxel/roms.1:
      roms: add support for building sgabios
      roms: enable parallel seabios / seavgabios builds
      roms: enable ipxe cross builds
      roms: add rules to build slof...
eb322b81 10/01/2013 01:15 am Anthony Liguori

Merge remote-tracking branch 'mst/tags/for_anthony' into staging

pc,pci,virtio fixes and cleanups

This includes pc and pci cleanups and enhancements,
and a virtio-net bugfix related to softmac programming.

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

4235d773 10/01/2013 01:14 am Anthony Liguori

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

  1. By Max Reitz (10) and others
  2. Via Kevin Wolf
    • kwolf/for-anthony: (30 commits)
      qcow2: Remove useless count_contiguous_clusters() parameter
      qcow2: COMPRESSED on count_contiguous_clusters...
3469a60d 10/01/2013 01:14 am Anthony Liguori

Merge remote-tracking branch 'sstabellini/xen-2013-09-25' into staging

  1. By Anthony PERARD (2) and Liu, Jinsong (2)
  2. Via Stefano Stabellini
    • sstabellini/xen-2013-09-25:
      xen: Enable cpu-hotplug on xenfv machine.
      xen: Fix vcpu initialization.
      qemu: Add qemu xen logic for Xen HVM S3 resume...
28b9d47d 10/01/2013 01:14 am Anthony Liguori

Merge remote-tracking branch 'rth/tcg-ppc-pull' into staging

  1. By Richard Henderson (19) and Paolo Bonzini (2)
  2. Via Richard Henderson
    • rth/tcg-ppc-pull: (21 commits)
      tcg-ppc64: Implement CONFIG_QEMU_LDST_OPTIMIZATION
      tcg-ppc64: Add _noaddr functions for emitting forward branches...
8429d63b 10/01/2013 01:13 am Anthony Liguori

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

  1. By Isaku Yamahata (4) and others
  2. Via Juan Quintela
    • quintela/migration.next:
      migration: ram_handle_compressed
      arch_init: make is_zero_page accept size
      migration: Fix debug print type...
d7f0efcb 10/01/2013 01:13 am Anthony Liguori

Merge remote-tracking branch 'kraxel/audio.1' into staging

  1. By Bandan Das (3) and Gerd Hoffmann (1)
  2. Via Gerd Hoffmann
    • kraxel/audio.1:
      audio: remove CONFIG_MIXEMU configure option
      hda-codec: make mixemu selectable at runtime
      hda-codec: refactor common definitions into a header file...
1b365b2e 10/01/2013 01:13 am Anthony Liguori

Merge remote-tracking branch 'borntraeger/tags/s390-next-20130924' into staging

This is a bunch of fixes/changes for the s390 architecture. It also
contains the fixes from the previous pull request, which did not make
it yet.
Overall it contains
- a fix for kexec without kdump (which uses diag308 subcode 0 instead of 1)...

1cf9412b 09/30/2013 12:18 pm Gerd Hoffmann

update seabios from 1.7.2.2 to 1.7.3.2

'git shortlog d4f7d90f..ece025f5' says:

Alex Williamson (4):
seabios q35: Enable all PIRQn IRQs at startup
seabios q35: Add new PCI slot to irq routing function
seabios: Add a dummy PCI slot to irq mapping function...

774e80ea 09/30/2013 10:44 am Gerd Hoffmann

roms: add support for building sgabios

Signed-off-by: Gerd Hoffmann <>

68875817 09/30/2013 10:44 am Gerd Hoffmann

roms: add 'make clean'

Signed-off-by: Gerd Hoffmann <>

1ede4dd0 09/30/2013 10:44 am Gerd Hoffmann

roms: enable parallel builds for 'make lgplvgabios'

Recurse into vgabios once, adjust dependencies, call make using
$(MAKE) $(MAKEFLAGS) so jobserver mode works.

Signed-off-by: Gerd Hoffmann <>

5a7bd333 09/30/2013 10:44 am Gerd Hoffmann

roms: build lgplvgabios isavga variant

Add logic to also build+install the isavga vgabios variant.

Signed-off-by: Gerd Hoffmann <>

46ef7f33 09/30/2013 10:44 am Gerd Hoffmann

roms: parallel ipxe builds

Enable parallel ipxe builds. Reduce the recursive make calls. Call
recursive make properly using $(MAKE) $(MAKEFLAGS).

Signed-off-by: Gerd Hoffmann <>

93a2b3c4 09/30/2013 10:44 am Gerd Hoffmann

roms: rewrite scripts/refresh-pxe-roms.sh

Just use the Makefile in roms/

Signed-off-by: Gerd Hoffmann <>

bcf06c15 09/30/2013 10:44 am Gerd Hoffmann

roms: add rules to build slof

Add some logic to detect cross compilers. Add support for "make slof",
which should JustWork[tm] if you are on a ppx64 machine or have a ppc64
cross compiler installed somewhere in your path.

Signed-off-by: Gerd Hoffmann <>

779fa9d7 09/30/2013 10:44 am Gerd Hoffmann

roms: enable ipxe cross builds

95f7c680 09/30/2013 10:44 am Gerd Hoffmann

roms: enable parallel seabios / seavgabios builds

Signed-off-by: Gerd Hoffmann <>

ec2df8c1 09/28/2013 11:49 pm Markus Armbruster

smbios: Improve diagnostics for conflicting entries

We allow either tables or fields for the same type. Makes sense,
because SeaBIOS uses fields only when no tables are present.

We do this by searching the SMBIOS blob for a previously added table
or field. Error messages look like this:...

fc3b3295 09/28/2013 11:49 pm Markus Armbruster

smbios: Make multiple -smbios type= accumulate sanely

Currently, -smbios type=T,NAME=VAL,... adds one field (T,NAME) with
value VAL to fw_cfg for each unique NAME. If NAME occurs multiple
times, the last one's VAL is used (before the QemuOpts conversion, the...

e26d3e73 09/28/2013 11:49 pm Markus Armbruster

smbios: Factor out smbios_maybe_add_str()

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

4f953d2f 09/28/2013 11:49 pm Markus Armbruster

smbios: Convert to QemuOpts

So that it can be set in config file for -readconfig.

This tightens parsing of -smbios, and makes it more consistent with
other options: unknown parameters are rejected, numbers with trailing
junk are rejected, when a parameter is given multiple times, last...

351a6a73 09/28/2013 10:40 pm Markus Armbruster

smbios: Normalize smbios_entry_add()'s error handling to exit(1)

It exits on all error conditions but one, where it returns -1.
Normalize, and return void.

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

be0b742e 09/27/2013 06:22 pm Max Reitz

qcow2: Always use error path in l2_allocate

Just returning -errno in some cases prevents
trace_qcow2_l2_allocate_done from being executed (and, in one case, also
the unused allocated L2 table from being freed). Always going down the
error path fixes this....

320c7066 09/27/2013 06:22 pm Max Reitz

qcow2: Free only newly allocated clusters on error

In expand_zero_clusters_in_l1, a new cluster is only allocated if it was
not already preallocated. On error, such preallocated clusters should
not be freed, but only the newly allocated ones.

Signed-off-by: Max Reitz <>...

15684a47 09/27/2013 06:22 pm Max Reitz

qcow2: count_contiguous_clusters and compression

The function is not intended to be used on compressed clusters and will
not work correctly, if used anyway, since L2E_OFFSET_MASK is not the
right mask for determining the offset of compressed clusters. Therefore,...

22f0dd29 09/27/2013 06:22 pm Max Reitz

qcow2: COMPRESSED on count_contiguous_clusters

Compressed clusters can never be contiguous, therefore the corresponding
flag does not need to be given explicitly to count_contiguous_clusters.

Signed-off-by: Max Reitz <>
Signed-off-by: Kevin Wolf <>

61653008 09/27/2013 06:22 pm Kevin Wolf

qcow2: Remove useless count_contiguous_clusters() parameter

All callers pass start = 0, and it's doubtful if any other value would
actually do what you expect. Remove the parameter.

Signed-off-by: Kevin Wolf <>
Reviewed-by: Jeff Cody <>

8585afd8 09/27/2013 12:31 pm Max Reitz

qcow2: Don't put invalid L2 table into cache

In l2_allocate, the fail path is executed if qcow2_cache_flush fails.
However, the L2 table has not yet been fetched from the L2 table cache.
The qcow2_cache_put in the fail path therefore basically gives an
undefined argument as the L2 table address (in this case)....

fd9e03e6 09/27/2013 12:16 pm Max Reitz

qemu-iotests: Preallocated zero clusters in 061

Add a test case for zero cluster expansion on an image completely filled
with preallocated zero clusters to test 061.

Signed-off-by: Max Reitz <>
Signed-off-by: Kevin Wolf <>

e390cf5a 09/27/2013 12:16 pm Max Reitz

qcow2: Correct bitmap size in zero expansion

Since the expanded_clusters bitmap is addressed using host offsets in
the underlying image file, the correct size to use for allocating the
bitmap is not determined by the guest disk image but by the underlying...

fef9c191 09/27/2013 12:10 pm Jeff Cody

qemu-iotests: Quote $TEST_IMG* and $TEST_DIR usage

A lot of image filename and paths are used unquoted. Quote these to
make sure that directories / filenames with spaces are not problematic.

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

85edbd37 09/27/2013 11:59 am Jeff Cody

qemu-iotests: Add basic ability to use binary sample images

For image formats that are not "QEMU native", but supported for
compatibility, it is useful to verify that an image created with
the 'gold standard' native tool can be read / written to successfully...

212774c5 09/26/2013 05:04 pm Fam Zheng

qemu-iotests: fix qmp.py search path

QMP/qmp.py is renamed to scripts/qmp/qmp.py, fix the search path in iotests.py.

Signed-off-by: Fam Zheng <>
Signed-off-by: Kevin Wolf <>

d055a1fe 09/26/2013 03:11 pm Fam Zheng

block: use DIV_ROUND_UP in bdrv_co_do_readv

Signed-off-by: Fam Zheng <>
Reviewed-by: Eric Blake <>
Signed-off-by: Kevin Wolf <>

c01dbccb 09/25/2013 10:57 pm Max Reitz

qcow2: Assert against currently impossible overflow

If qcow2_alloc_cluster_link_l2 is called with a QCowL2Meta describing a
request crossing L2 boundaries, a buffer overflow will occur. This is
impossible right now since such requests are never generated (every...

3df2b8fd 09/25/2013 10:23 pm Stefan Weil

misc: Use new rotate functions

Signed-off-by: Stefan Weil <>

6aa25b4a 09/25/2013 10:22 pm Stefan Weil

bitops: Add rotate functions (rol8, ror8, ...)

These functions were copies from include/linux/bitopts.h.

Signed-off-by: Stefan Weil <>
Reviewed-by: Richard Henderson <>

d285bf78 09/25/2013 10:22 pm Stefan Weil

tci: Add implementation of rotl_i64, rotr_i64

It is used by qemu-ppc64 when running Debian's busybox-static.

Cc: qemu-stable <>
Signed-off-by: Stefan Weil <>
Reviewed-by: Richard Henderson <>

687fb893 09/25/2013 09:51 pm Jeff Cody

block: qed - use QEMU_PACKED for on-disk structures

QEDHeader is read, and written, directly from on-disk images
via bdrv_pread()/write(). To avoid any unintentional padding,
these structs should be packed.

Signed-off-by: Jeff Cody <>
Reviewed-by: Richard Henderson <>...

c4217f64 09/25/2013 09:51 pm Jeff Cody

block: qcow2 - used QEMU_PACKED for on-disk structures

QCowHeader and QCowExtension are structs that reside in the on-disk
image format, and are read and written directly via bdrv_pread()/write(),
and as such should be packed to avoid any unintentional struct padding....

e54835c0 09/25/2013 09:51 pm Jeff Cody

block: vpc - use QEMU_PACKED for on-disk structures

The VHD footer and header structs (vhd_footer and vhd_dyndisk_header)
are on-disk structures for the image format, and as such should be
packed.

Go ahead and make these typedefs as well, with the preferred QEMU...

8368febd 09/25/2013 09:51 pm Jeff Cody

block: vdi - use QEMU_PACKED for on-disk structures

The header struct VdiHeader is an on-disk structure for the image
format, and as such should be packed.

Signed-off-by: Jeff Cody <>
Reviewed-by: Richard Henderson <>
Signed-off-by: Kevin Wolf <>

594278d9 09/25/2013 07:43 pm Anthony PERARD

xen: Enable cpu-hotplug on xenfv machine.

Signed-off-by: Anthony PERARD <>
Signed-off-by: Stefano Stabellini <>

1cd25a88 09/25/2013 07:41 pm Anthony PERARD

xen: Fix vcpu initialization.

Each vcpu need a evtchn binded in qemu, even those that are
offline at QEMU initialisation.

Signed-off-by: Anthony PERARD <>
Signed-off-by: Stefano Stabellini <>

11addd0a 09/25/2013 07:40 pm Liu, Jinsong

qemu: Add qemu xen logic for Xen HVM S3 resume

This patch is qemu patch 2 to fix Xen HVM S3 bug, adding qemu
xen logic. When qemu wakeup, qemu xen logic is notified and
hypercall to xen hypervisor to unpause domain.

Signed-off-by: Liu Jinsong <>...

4bc78a87 09/25/2013 07:38 pm Liu, Jinsong

qemu: Adjust qemu wakeup

Currently Xen hvm s3 has a bug coming from the difference between
qemu-traditioanl and qemu-xen. For qemu-traditional, the way to
resume from hvm s3 is via 'xl trigger' command. However, for
qemu-xen, the way to resume from hvm s3 inherited from standard...

7f12d649 09/25/2013 05:46 pm Richard Henderson

tcg-ppc64: Implement CONFIG_QEMU_LDST_OPTIMIZATION

Signed-off-by: Richard Henderson <>

fa94c3be 09/25/2013 05:46 pm Richard Henderson

tcg-ppc64: Implement tcg_register_jit

Signed-off-by: Richard Henderson <>

fedee3e7 09/25/2013 05:46 pm Richard Henderson

tcg-ppc64: Streamline tcg_out_tlb_read

Less conditional compilation. Merge an add insn with the indexed
memory load insn. Load the tlb addend earlier. Avoid the address
update memory form.

Fix a bug in not allowing large enough tlb offsets for some guests....

c7ca6a2b 09/25/2013 05:46 pm Richard Henderson

tcg-ppc64: Add _noaddr functions for emitting forward branches

... rather than open-coding this stuff through the file.

Signed-off-by: Richard Henderson <>