Statistics
| Branch: | Revision:

root @ 6ce2d77a

# Date Author Comment
049255b6 02/29/2012 04:48 pm Stefan Hajnoczi

qemu-iotests: export TEST_DIR for non-bash tests

Since qemu-iotests may need to create large image files it is possible
to specify the test directory. The TEST_DIR variable needs to be
exported so non-bash tests can make use of it.

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

f345cfd0 02/29/2012 04:48 pm Stefan Hajnoczi

qemu-iotests: add iotests Python module

Block layer tests that involve QMP commands rather than qemu-img or
qemu-io are not well-suited for shell scripting. This patch adds a
Python module which allows tests to be written in Python instead.

The basic API is:...

37ce63eb 02/29/2012 04:48 pm Stefan Hajnoczi

test: add image streaming tests

This patch adds a test suite for the image streaming feature. It
exercises the 'block_stream', 'block_job_cancel', 'block_job_set_speed',
and 'query-block-jobs' QMP commands.

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

a06d5cc2 02/29/2012 04:48 pm Kevin Wolf

qemu-iotests: Filter out DOS line endings

This one makes it possible to run qemu-iotests on a Windows build using Wine
and get somewhat meaningful results.

Signed-off-by: Kevin Wolf <>
Reviewed-by: Stefan Hajnoczi <>

92ab69b6 02/29/2012 04:48 pm Kevin Wolf

qemu-iotests: 026: Reduce output changes for cache=none qcow2

qemu-iotests supports the -nocache option which makes the tests run with
cache=none. For blkdebug tests with qcow2 this means that we may see
test results that differ from cache=writethrough. This patch makes the...

6ce2d77a 02/29/2012 04:48 pm Kevin Wolf

qemu-iotests: Test rebase with short backing file

This tests that qemu-img rebase doesn't assume that the backing file has
the same size as the image, but considers that it can be smaller.

Signed-off-by: Kevin Wolf <>
Reviewed-by: Stefan Hajnoczi <>

c186402c 02/29/2012 04:48 pm Jeff Cody

QMP: Add qmp command for blockdev-group-snapshot-sync

This adds the QMP command for blockdev-group-snapshot-sync. It
takes an array in as the input, for the argument devlist. The
array consists of the following elements:

+ device:        device to snapshot. e.g. "ide-hd0", "virtio0"...
8802d1fd 02/29/2012 04:48 pm Jeff Cody

qapi: Introduce blockdev-group-snapshot-sync command

This is a QAPI/QMP only command to take a snapshot of a group of
devices. This is similar to the blockdev-snapshot-sync command, except
blockdev-group-snapshot-sync accepts a list devices, filenames, and...

423477e5 02/29/2012 01:48 pm Kevin Wolf

qcow2: Fix build with DEBUG_EXT enabled

Signed-off-by: Kevin Wolf <>

56116a14 02/29/2012 01:48 pm Paolo Bonzini

block: remove unused fields in BlockDriverState

sync_aiocb is unused since commit ce1a14d (Dynamically allocate AIO
Completion Blocks., 2006-08-07).

private is unused since commit 56a1493 (drive cleanup fixes., 2009-09-25).

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

b6a127a1 02/29/2012 01:48 pm Paolo Bonzini

block: drop aio_multiwrite in BlockDriver

These were never used.

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

fd29b4bb 02/29/2012 01:48 pm Kevin Wolf

qcow2: Fix offset in qcow2_read_extensions

The spec says that the length of extensions is padded to 8 bytes, not
the offset. Currently this is the same because the header size is a
multiple of 8, so this is only about compatibility with future changes
to the header size....

64ca6aee 02/29/2012 01:48 pm Kevin Wolf

qcow2: Reject too large header extensions

Image files that make qemu-img info read several gigabytes into the
unknown header extensions list are bad. Just fail opening the image
if an extension claims to be larger than the header extension area.

Signed-off-by: Kevin Wolf <>...

08388273 02/29/2012 01:48 pm Hervé Poussineau

fdc: take side count into account

Floppies can be simple or double-sided. However, current code
was only taking the common case into account (ie 2 sides).

This repairs single-sided floppies, which where totally broken
before this patch : for track > 0, wrong sector number was...

1457a758 02/29/2012 01:48 pm Hervé Poussineau

fdc: set busy bit when starting a command

This bit must be active while a command is currently executed.

Signed-off-by: Hervé Poussineau <>
Signed-off-by: Kevin Wolf <>

a005186c 02/29/2012 01:48 pm Hervé Poussineau

fdc: most control commands do not generate interrupts

In fact, only three control commands generate an interrupt:
read_id, recalibrate and seek

Signed-off-by: Hervé Poussineau <>
Signed-off-by: Kevin Wolf <>

8510854e 02/29/2012 01:48 pm Hervé Poussineau

fdc: handle read-only floppies (abort early on write commands)

A real floppy doesn't attempt to write to read-only media either.

Signed-off-by: Hervé Poussineau <>
Signed-off-by: Kevin Wolf <>

a758f8f4 02/29/2012 01:48 pm Hervé Poussineau

fdc: add CCR (Configuration Control Register) write register

DIR and CCR registers share the same address ; DIR is read-only
while CCR is write-only

CCR register is used to change media transfer rate, which will be
checked in following changes.

Signed-off-by: Hervé Poussineau <>...

f8d3d128 02/29/2012 01:48 pm Hervé Poussineau

block: add a transfer rate for floppy types

Floppies must be read at a specific transfer rate, depending of its own format.
Update floppy description table to include required transfer rate.

Signed-off-by: Hervé Poussineau <>
Signed-off-by: Kevin Wolf <>

09c6d585 02/29/2012 01:48 pm Hervé Poussineau

fdc: add a 'check media rate' property. Not used yet

Set it to true for current Qemu versions, and false for previous ones

Signed-off-by: Hervé Poussineau <>
Signed-off-by: Kevin Wolf <>

844f65d6 02/29/2012 01:48 pm Hervé Poussineau

fdc: check if media rate is correct before doing any transfer

The programmed rate has to be the same as the required rate for the
floppy format ; if that's not the case, the transfer should abort.
This check can be disabled by using the 'check_media_rate' property....

b072a3c8 02/29/2012 01:48 pm Hervé Poussineau

fdc: fix seek command, which shouldn't check tracks

The seek command just sends step pulses to the drive and doesn't care if
there is a medium inserted of if it is banging the head against the drive.

Signed-off-by: Hervé Poussineau <>...

a2df5fa3 02/29/2012 01:48 pm Hervé Poussineau

fdc: DIR (Digital Input Register) should return status of current drive...

Signed-off-by: Hervé Poussineau <>
Signed-off-by: Kevin Wolf <>

d53cdb30 02/29/2012 01:48 pm Paolo Bonzini

ide: fail I/O to empty disk

Requesting a read or a write operation on an empty disk can lead
to QEMU dumping core.

Also fix a few braces here and there.

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

b55c952a 02/27/2012 07:19 pm Anthony Liguori

Merge remote-tracking branch 'aneesh/for-upstream' into staging

  • aneesh/for-upstream:
    hw/9pfs: Endian fixes for virtfs
    ./configure: add option for disabling VirtFS
90d7416a 02/27/2012 03:55 pm David Gibson

slirp: Fix assertion failure on rejected DHCP requests

The guest network stack might DHCPREQUEST an address that the slirp built
in dhcp server can't let it have - for example if the guest has an old
leases file from another network configuration. In this case the dhcp...

79e7e937 02/27/2012 03:54 pm Jan Kiszka

slirp: Clean up ifs_init

Remove duplicate ifs_init macros, reimplement the logic as static inline
in mbuf.h.

CC: Zhi Yong Wu <>
CC: Michael S. Tsirkin <>
Signed-off-by: Jan Kiszka <>

b248ede2 02/27/2012 03:54 pm Jan Kiszka

slirp: Fix requeuing of batchq packets in if_start

In case we requeued a packet that was the head of a longer session
queue, we failed to restore this ordering. Also, we did not properly
deal with changes to Slirp::next_m.

Instead of a cumbersome roll back, this fix simply avoids any changes...

b87ffa16 02/27/2012 03:54 pm Jan Kiszka

slirp: Refactor if_start

Replace gotos with a while loop, fix coding style.

CC: Zhi Yong Wu <>
CC: Fabien Chouteau <>
Signed-off-by: Jan Kiszka <>

b4bd0b16 02/25/2012 04:16 pm Stefan Weil

audio: Add some fall through comments

Static code analysers expect these comments for case statements without
a break statement.

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

967c0da7 02/24/2012 09:36 pm Peter Maydell

vl.c: Avoid segfault when started with no arguments

Fix a bug (introduced in commit a0abe47) where a command line which
specified no machine arguments (either explicitly or implicitly via
-kernel &co) would result in a segfault because of a NULL pointer
returned from qemu_opts_find(qemu_find_opts("machine"), 0)....

cdf84806 02/24/2012 09:36 pm Peter Maydell

configure: Check whether makecontext() is a glibc stub function

On some systems (notably ARM Linux) glibc provides implementations
of makecontext(), getcontext() and friends which are stubs which
always return failure. Make the configure test for makecontext()...

45efb161 02/24/2012 09:36 pm Gerd Hoffmann

optimize screendump for the common non-switch case

switch console only if needed, also pass down whenever the console was
switched or not because a displaysurface redraw is only needed in case
the console was switched.

Signed-off-by: Gerd Hoffmann <>...

5bc62e01 02/24/2012 09:36 pm Gerd Hoffmann

build: allow turning off debuginfo

This patch adds --{enable,disable}-debug-info switches to configure
which allows to include/exclude the '-g' switch on the gcc & ld
command lines. Not building debug info reduces ressource usage
(especially disk) alot and is quite useful for test builds....

9ebe95fb 02/24/2012 09:36 pm Gerd Hoffmann

nic: zap obsolote romloading bits from ne2k + pcnet

These days one just needs to specify the romfile in PCiDeviceInfo and
everything magically works. It also allows to disable pxe rom loading
via "romfile=<emptystring>" like it is possible for all other nics....

6595abc0 02/24/2012 09:36 pm Gerd Hoffmann

suspend: make acpi timer wakeup the guest.

Make the acpi timer wake up the guest.
Guests can enable/disable this via acpi too.

Signed-off-by: Gerd Hoffmann <>
Signed-off-by: Anthony Liguori <>

53370b78 02/24/2012 09:36 pm Gerd Hoffmann

suspend: add qmp events

Send qmp events on suspend and wakeup so libvirt
has a chance to track the vm state.

Signed-off-by: Gerd Hoffmann <>
Signed-off-by: Anthony Liguori <>

9a51f5b0 02/24/2012 09:36 pm Gerd Hoffmann

vga: simplify screendump

The displaychangelistener isn't needed at all, we can simply save the
image when vga_hw_update is done instead of hooking into the update
process.

Signed-off-by: Anthony Liguori <>

16735102 02/24/2012 09:36 pm Gerd Hoffmann

Remove screendump dummy functions.

The code in console.c verifies whenever a screen_dump function
pointer is present before calling it, so there is no need to supply an
dummy function. Remove them. Also report an error to notify the user
that he didn't got a screenshot....

da98c8eb 02/24/2012 09:36 pm Gerd Hoffmann

suspend: switch acpi s3 to new infrastructure.

This patch switches pc s3 suspend over to the new infrastructure.
The cmos_s3 qemu_irq is killed, the new notifier is used instead.
The xen hack goes away with that too, the hypercall can simply be
done in a notifier function now....

9b9df25a 02/24/2012 09:36 pm Gerd Hoffmann

suspend: add system_wakeup monitor command

This patch adds the system_wakeup monitor command which will simply
wake up suspended guests.

Signed-off-by: Gerd Hoffmann <>
Signed-off-by: Anthony Liguori <>

fd214d18 02/24/2012 09:36 pm Gerd Hoffmann

suspend: make ps/2 devices wakeup the guest

This patch adds wakeup support to ps/2 emulation. Any key press on the
ps/2 keyboard will wakeup the guest. Likewise any mouse button press
will wakeup the guest. Mouse moves are ignored, so the guest will not...

9826fd59 02/24/2012 09:36 pm Gerd Hoffmann

suspend: make serial ports wakeup the guest.

Add a 'wakeup' property to the serial port. It is off by default. When
enabled any incoming character on the serial line will wake up the
guest. Useful for guests which have a serial console configured.

Signed-off-by: Gerd Hoffmann <>...

62aeb0f7 02/24/2012 09:36 pm Gerd Hoffmann

suspend: make rtc alarm wakeup the guest.

Make the rtc wake up the guest when the alarm fires.
Add acpi windup to property support RTC_EN, so guests
can enable and disable this.

Signed-off-by: Gerd Hoffmann <>
Signed-off-by: Anthony Liguori <>

067866d6 02/24/2012 09:36 pm Gerd Hoffmann

acpi: move around structs

Group all structs at the top of hw/acpi.h.
Just moving around lines, no code changes.

Signed-off-by: Gerd Hoffmann <>
Signed-off-by: Anthony Liguori <>

355bf2e5 02/24/2012 09:36 pm Gerd Hoffmann

acpi: add ACPIREGS

All those acpi structs are not independent from each other.
Various acpi functions expecting multiple acpi structs passed
in are a clean indicator for that ;)

So this patch bundles all acpi structs in the new ACPIREGS
struct, then use it everythere pass around acpi state....

2886be1b 02/24/2012 09:36 pm Gerd Hoffmann

acpi: don't pass overflow_time to acpi_pm1_evt_get_sts

Pretty pointless, can easily be reached via ACPIREGS now.

Signed-off-by: Gerd Hoffmann <>
Signed-off-by: Anthony Liguori <>

8283c4f5 02/24/2012 09:36 pm Gerd Hoffmann

acpi: add acpi_pm1_evt_write_en

Do APCIREGS->pm1.evt.en updates using the new acpi_pm1_evt_write_en
function, so the acpi code will see those updates.

Signed-off-by: Gerd Hoffmann <>
Signed-off-by: Anthony Liguori <>

95b363b5 02/24/2012 09:36 pm Gerd Hoffmann

suspend: add infrastructure

This patch adds some infrastructure to handle suspend and resume to
qemu. First there are two functions to switch state and second there
is a suspend notifier:

  • qemu_system_suspend_request is supposed to be called when the...
85f38553 02/24/2012 05:51 pm Anthony Liguori

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

  • stefanha/trivial-patches:
    slirp/misc: fix gcc __warn_memset_zero_len warnings
    vl.c: Increase width of machine name column in "-M ?" output
    tcg: Remove unneeded include statements
18ac5499 02/24/2012 05:50 pm Anthony Liguori

Merge remote-tracking branch 'mdroth/qga-win32-pull-2-23-12' into staging

  • mdroth/qga-win32-pull-2-23-12:
    qemu-ga: add win32 guest-shutdown command
    qemu-ga: add Windows service integration
    qemu-ga: add initial win32 support
    qemu-ga: fixes for win32 build of qemu-ga...
7c1daf34 02/24/2012 05:45 pm Anthony Liguori

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

  • qmp/queue/qmp:
    qmp: add DEVICE_TRAY_MOVED event
    ide: drop ide_tray_state_post_load()
    block: Don't call bdrv_eject() if the tray state didn't change
    block: bdrv_eject(): Make eject_flag a real bool...
5105b6d8 02/24/2012 05:37 pm Anthony Liguori

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

  • kwolf/for-anthony: (46 commits)
    qemu-iotests: common.config: Allow use of arbitrary qemu* paths
    qemu-iotests: check: print relevant path information
    qemu-iotests: test loading internal snapshots...
9ef1300b 02/24/2012 05:33 pm Anthony Liguori

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

  • bonzini/virtio-scsi:
    scsi-block: always use scsi_generic_ops for cache != none
    scsi: fix searching for an empty id
    scsi: fix wrong return for target INQUIRY
    virtio-scsi: add migration support...
d9a5954d 02/24/2012 05:06 pm Markus Armbruster

vl.c: Error locations for options using add_device_config()

These are -bt, -serial, -virtcon, -parallel, -debugcon, -usbdevice.
Improves messages emitted via proper error reporting interfaces. For
instance:

$ qemu-system-x86_64 -nodefaults -S -usb -usbdevice net:vlan=xxx...
ef0c4a0d 02/24/2012 05:06 pm Markus Armbruster

gdbstub: Error locations for -gdb

Stash away the option argument with add_device_config(), so we still
have its location when we get around to parsing it.

This doesn't improve any messages I can see just yet, but that'll
change shortly.

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

136faa36 02/24/2012 05:06 pm Markus Armbruster

sockets: Drop sockets_debug debug code

I'm trying to improve this code's error reporting, and the debug code
is getting in my way: it clutters the code, it clobbers errno in
inconvenient places, and it uses the same fprintf() both for error
reporting and debug output in a few places....

877691f9 02/24/2012 05:06 pm Markus Armbruster

sockets: Clean up inet_listen_opts()'s convoluted bind() loop

Signed-off-by: Markus Armbruster <>
Signed-off-by: Anthony Liguori <>

8811e1e1 02/24/2012 05:06 pm Markus Armbruster

console: Eliminate text_consoles[]

Simply use consoles[] instead.

Signed-off-by: Markus Armbruster <>
Signed-off-by: Anthony Liguori <>

ed5e1ec3 02/24/2012 05:06 pm Andreas Färber

target-i386: Introduce x86_cpuid_version_set_family()

Move the logic for setting the family and extended family into a
helper function.

To make the helper self-contained and in preparation of future
unordered/multiple uses, mask out any previous family values first....

b0704cbd 02/24/2012 05:06 pm Andreas Färber

target-i386: Introduce x86_cpuid_version_set_model()

Move the logic for setting the model and extended model fields
into a helper function.

To make the function self-contained and to prepare for future
unordered/multiple uses, mask out any previous model values first....

38c3dc46 02/24/2012 05:06 pm Andreas Färber

target-i386: Introduce x86_cpuid_version_set_stepping()

Move the logic for setting the stepping field into a helper function.

To make the function self-contained and to prepare for future
unordered/multiple uses, mask out any previous stepping values first....

dcce6675 02/24/2012 05:06 pm Andreas Färber

target-i386: Introduce x86_cpuid_set_model_id()

Move the logic to transform the 48-char model ID into the 12-word model
value into a helper.

Signed-off-by: Andreas Färber <>
Signed-off-by: Anthony Liguori <>

b181e047 02/24/2012 05:06 pm Markus Armbruster

qemu-char: Use qemu_open() to avoid leaking fds to children

Fixed silently in commit aad04cd0, but that just got reverted.
Re-apply the fixes, plus one missed instance: parport on Linux.

Reviewed-by: Anthony Liguori <>
Signed-off-by: Markus Armbruster <>...

a89dd6c3 02/24/2012 05:06 pm Markus Armbruster

qemu-char: Re-apply style fixes from just reverted aad04cd0

Reviewed-by: Anthony Liguori <>
Signed-off-by: Markus Armbruster <>
Signed-off-by: Anthony Liguori <>

d7378ee1 02/24/2012 05:06 pm Markus Armbruster

qemu-char: qemu_chr_open_fd() can't fail, don't check

Cleaned up silently in commit aad04cd0, but that just got reverted.
Re-apply this part.

Reviewed-by: Anthony Liguori <>
Signed-off-by: Markus Armbruster <>
Signed-off-by: Anthony Liguori <>

1f51470d 02/24/2012 05:06 pm Markus Armbruster

Revert "qemu-char: Print strerror message on failure" and deps

The commit's purpose is laudable:

The only way for chardev drivers to communicate an error was to
return a NULL pointer, which resulted in an error message that
said that something went wrong, but not why....
06114d72 02/24/2012 03:54 pm Paolo Bonzini

virtio-scsi: process control queue requests

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

5db1764c 02/24/2012 03:54 pm Paolo Bonzini

virtio-scsi: add migration support

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

9fac25bf 02/24/2012 03:54 pm Paolo Bonzini

scsi: fix wrong return for target INQUIRY

Signed-off-by: Paolo Bonzini <>

d3d250bd 02/24/2012 03:54 pm Paolo Bonzini

scsi: fix searching for an empty id

The conditions for detecting no free target or LUN were wrong.

The LUN loop was followed by an "if" condition that is never
true, because the loop is exited as soon as lun becomes equal
to bus->info->max_lun, and never becomes greater than it....

eaccf49e 02/24/2012 03:54 pm Paolo Bonzini

scsi-block: always use scsi_generic_ops for cache != none

Signed-off-by: Paolo Bonzini <>

f293d8b1 02/24/2012 03:24 pm Alon Levy

slirp/misc: fix gcc __warn_memset_zero_len warnings

By removing memset altogether (Patch from Stefan Hajnoczi, tested
compile only by me).

Signed-off-by: Alon Levy <>
Signed-off-by: Stefan Hajnoczi <>

67d6fa53 02/24/2012 10:31 am Benjamin Herrenschmidt

hw/9pfs: Endian fixes for virtfs

This patch fixes several endian bugs in virtfs.

Cc: Aneesh Kumar K.V <>

Signed-off-by: Benjamin Herrenschmidt <>
Signed-off-by: David Gibson <>...

983eef5a 02/24/2012 10:30 am Meador Inge

./configure: add option for disabling VirtFS

Signed-off-by: Meador Inge <>
Signed-off-by: Aneesh Kumar K.V <>

bc62fa03 02/23/2012 11:43 pm Michael Roth

qemu-ga: add Windows service integration

This allows qemu-ga to function as a Windows service:

- to install the service (will auto-start on boot):
qemu-ga --service install
- to start the service:
net start qemu-ga
- to stop the service:
net stop qemu-ga...
546b60d0 02/23/2012 11:43 pm Michael Roth

qemu-ga: add win32 guest-shutdown command

Implement guest-shutdown RPC for Windows. Functionally this should be
equivalent to the posix implementation.

Original patch by Gal Hammer <>

7868e26e 02/23/2012 11:43 pm Michael Roth

qemu-ga: add initial win32 support

This adds a win32 channel implementation that makes qemu-ga functional
on Windows using virtio-serial (unix-listen/isa-serial not currently
implemented). Unlike with the posix implementation, we do not use
GIOChannel for the following reasons:...

125b310e 02/23/2012 11:40 pm Michael Roth

qemu-ga: move channel/transport functionality into wrapper class

This is mostly in preparation for the win32 port, which won't use
GIO channels for reasons that will be made clearer later. Here the
GAChannel class is just a loose wrapper around GIOChannel...

42074a9d 02/23/2012 11:40 pm Michael Roth

qemu-ga: separate out common commands from posix-specific ones

Many of the current RPC implementations are very much POSIX-specific
and require complete re-writes for Windows. There are however a small
set of core guest agent commands that are common to both, and other...

c216e5ad 02/23/2012 11:40 pm Michael Roth

qemu-ga: rename guest-agent-commands.c -> commands-posix.c

d8ca685a 02/23/2012 11:40 pm Michael Roth

qemu-ga: fixes for win32 build of qemu-ga

Various stubs and #ifdefs to compile for Windows using mingw
cross-build. Still has 1 linker error due to a dependency on the
forthcoming win32 versions of the GAChannel/transport class.

54383726 02/23/2012 11:40 pm Michael Roth

qemu-ga: Add schema documentation for types

Document guest agent schema types in similar fashion to qmp schema
types.

d06cddf5 02/23/2012 11:35 am Kevin Wolf

Merge qemu-iotests into for-anthony

5177c512 02/23/2012 11:29 am Christoph Hellwig

qemu-iotests: only run 016 for file and sheepdog protocols

016 writes past EOF which isn't support by most protocols, so limit
it to file and sheepdog, which explicitly support it.

Pointed out by Josh Durgin <>.

Signed-off-by: Christoph Hellwig <>

5e654e08 02/23/2012 11:29 am Mitnick Lyu

qemu-iotests: common.config: Fix no $TEST_DIR directory

mkdir $TEST_DIR on common.config first run

Signed-off-by: Mitnick Lyu <>
Signed-off-by: Christoph Hellwig <>

92eeab5b 02/23/2012 11:29 am Josh Durgin

qemu-iotests: Update rbd support

rbd implements bdrv_truncate, so test 025 will work.

Signed-off-by: Josh Durgin <>
Signed-off-by: Christoph Hellwig <>

25bb8a36 02/23/2012 11:29 am Stefan Hajnoczi

qemu-iotests: add qed support to 025 image resize test

QED now supports the truncate (aka resize) operation for growing images.
Update test 025 so it runs for QED.

Signed-off-by: Stefan Hajnoczi <>
Signed-off-by: Christoph Hellwig <>

bfe85248 02/23/2012 11:29 am Kevin Wolf

qemu-iotests: Update filter for default cluster size

Until recently, qemu-img create displayed cluster_size=0 for the default
cluster size. It is changed to display the real cluster size now, which results
in the cluster size not being filtered out any more....

8455e4ee 02/23/2012 11:29 am Kevin Wolf

qemu-iotests: test loading internal snapshots

Test loading internal snapshots where the L1 table of the snapshot
is smaller than the current L1 table.

Signed-off-by: Kevin Wolf <>
Signed-off-by: Christoph Hellwig <>

df4b627e 02/23/2012 11:29 am Lucas Meneghel Rodrigues

qemu-iotests: check: print relevant path information

Print the paths of the programs under test
(qemu, qemu-img and qemu-io).

Signed-off-by: Lucas Meneghel Rodrigues <>
Signed-off-by: Christoph Hellwig <>

d305fd5d 02/23/2012 11:29 am Lucas Meneghel Rodrigues

qemu-iotests: common.config: Allow use of arbitrary qemu* paths

Since we might want to test arbitrary qemu, qemu-img and
qemu-io paths, allow users to specify environment variable
values for QEMU_PROG, QEMU_IMG_PROG and QEMU_IO_PROG so
the testsuite will use those values rather than find them...

f5a4bbd9 02/23/2012 11:29 am Stefan Hajnoczi

qemu-iotests: add support for qed format

Signed-off-by: Stefan Hajnoczi <>
Signed-off-by: Christoph Hellwig <>

657c166f 02/23/2012 11:29 am Stefan Weil

qemu-iotests: README: Fix spelling

Signed-off-by: Stefan Weil <>
Signed-off-by: Christoph Hellwig <>

62284d17 02/23/2012 11:29 am Stefan Hajnoczi

qemu-iotests: filter IMGFMT correctly in 019

Test 019 can be run with qcow2 and qed image formats. Replace the
specific image format value with "IMGFMT" so the golden output does not
hardcode qcow2 or qed.

This patch also includes a typo fix for "occurrences"....

9cdfa1b3 02/23/2012 11:29 am MORITA Kazutaka

qemu-iotests: add support for rbd and sheepdog protocols

This patch introduces tests for protocols other than file, and
initially supports rbd and sheepdog.

Signed-off-by: MORITA Kazutaka <>
Signed-off-by: Christoph Hellwig <>

dd0c35d6 02/23/2012 11:29 am Stefan Hajnoczi

qemu-iotests: Use zero-based offsets for IO patterns

The io_pattern style functions have the following loop:

for i in `seq 1 $count`; do
echo ... $(( start + i * step )) ...
done

Offsets are 1-based so start=1024, step=512, count=4 yields:
1536, 2048, 2560, 3072...

2684871a 02/23/2012 11:29 am Christoph Hellwig

qemu-iotests: filter TEST_DIR correctly in 019

Signed-off-by: Kevin Wolf <>

a97e45c8 02/23/2012 10:59 am Stefan Weil

tcg: Remove unneeded include statements

The standard include files are already included in qemu-common.h.

malloc.h and alloca.h were needed for alloca() which was removed
from TCG code some years ago when switching from dyngen to TCG
(see commit 49516bc0d622112caac9df628caf19010fda8b67)....

3b26486a 02/23/2012 10:59 am Peter Maydell

vl.c: Increase width of machine name column in "-M ?" output

Increase the width of the column used for the machine name in
the "-M ?" output from 10 to 20 spaces. This fixes the formatting
so it looks nice for architectures where a few of the machines
have overly long names. (Our current longest machine name is...