Statistics
| Branch: | Revision:

root / qapi-schema.json @ f487b677

History | View | Annotate | Download (99.8 kB)

# Date Author Comment
ef993ba7 06/28/2013 09:10 pm Gerd Hoffmann

qemu-char: fix documentation for telnet+wait socket flags

Signed-off-by: Gerd Hoffmann <>
Reviewed-by: Laszlo Ersek <>
Signed-off-by: Michael Tokarev <>

3037f364 06/28/2013 10:20 am Stefan Hajnoczi

blockdev: add DriveBackup transaction

This patch adds a transactional version of the drive-backup QMP command.
It allows atomic snapshots of multiple drives along with automatic
cleanup if there is a failure to start one of the backup jobs.

Note that QMP events are emitted for block job completion/cancellation...

78b18b78 06/28/2013 10:20 am Stefan Hajnoczi

blockdev: add Abort transaction

The Abort action can be used to test QMP 'transaction' failure. Add it
as the last action to exercise the .abort() and .cleanup() code paths
for all previous actions.

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

99a9addf 06/28/2013 10:20 am Stefan Hajnoczi

block: add drive-backup QMP command

@drive-backup

Start a point-in-time copy of a block device to a new destination. The
status of ongoing drive-backup operations can be checked with
query-block-jobs where the BlockJobInfo.type field has the value 'backup'....

7e114f8c 06/27/2013 03:38 am Michael R. Hines

rdma: export throughput w/ MigrationStats QMP

This exposes throughput (in megabits/sec) through QMP.

Reviewed-by: Juan Quintela <>
Reviewed-by: Paolo Bonzini <>
Reviewed-by: Chegu Vinod <>
Tested-by: Chegu Vinod <>...

60d9222c 06/27/2013 03:38 am Michael R. Hines

rdma: introduce capability x-rdma-pin-all

This capability allows you to disable dynamic chunk registration
for better throughput on high-performance links.

For example, using an 8GB RAM virtual machine with all 8GB of memory in
active use and the VM itself is completely idle using a 40 gbps infiniband link:...

ad0f171e 06/21/2013 09:52 pm Amos Kong

qapi: lack of two commas in dict

Signed-off-by: Amos Kong <>
Signed-off-by: Michael Tokarev <>

c02a9552 06/14/2013 05:33 pm Paolo Bonzini

build: drop TARGET_TYPE

Just use the TARGET_NAME free string.

Signed-off-by: Paolo Bonzini <>
Reviewed-by: Eric Blake <>
Message-id:
Signed-off-by: Peter Maydell <>

553a7e87 06/07/2013 02:37 pm Wenchao Xia

qmp: add ImageInfo in BlockDeviceInfo used by query-block

Now image info will be retrieved as an embbed json object inside
BlockDeviceInfo, backing chain info and all related internal snapshot
info can be got in the enhanced recursive structure of ImageInfo. New...

c8a83e85 05/24/2013 05:17 pm Kevin Wolf

blockdev: Rename BlockdevAction -> TransactionAction

There's no reason to restrict transactions to operations related to
block devices, so rename the type now before schema introspection stops
us from doing so.

Also change the schema documentation of 'transaction' to not refer to...

6a85e60c 05/22/2013 03:40 pm Lei Li

chardev: Make the name of memory device consistent

Now we have memory char device, but the backend name of it
is a little confusion. We actually register it by 'memory', but
the description in qemu-option, the name of open functions
and the new api backend called it 'ringbuf'. It should keep...

08d0ab3f 05/20/2013 04:20 pm Lei Li

chardev: Make consistent with udp device for new qapi backend

When register and open a chardev udp, the backend name should be udp
not dgram, and we do not have backend dgram in the chardev list. This
patch makes the new qapi udp backend consistent with the original...

8e8aba50 05/06/2013 08:16 pm Eduardo Habkost

target-i386: Add "feature-words" property to X86CPU

This property will be useful for libvirt, as libvirt already has logic
based on low-level feature bits (not feature names), so it will be
really easy to convert the current libvirt logic to something using the...

69ca3ea5 05/01/2013 02:06 pm Igor Mammedov

QMP: Add cpu-add command

Adds "cpu-add id=xxx" QMP command.

cpu-add's "id" argument is a CPU number in a range [0..max-cpus)

Example QMP command:
> { "execute": "cpu-add", "arguments": { "id": 2 } }
<
{ "return": {} }

Signed-off-by: Igor Mammedov <>...

ede085b3 04/30/2013 06:30 pm Hu Tao

add a new runstate: RUN_STATE_GUEST_PANICKED

The guest will be in this state when it is panicked.

Signed-off-by: Wen Congyang <>
Signed-off-by: Hu Tao <>
Reviewed-by: Markus Armbruster <>
Message-id: ...

1f8f987d 04/25/2013 05:07 pm Amos Kong

monitor: introduce query-command-line-options

Libvirt has no way to probe if an option or property is supported,
This patch introduces a new qmp command to query command line
option information. hmp command isn't added because it's not needed.

Signed-off-by: Amos Kong <>...

315f9e1a 04/12/2013 04:41 pm Michal Novotny

Revert "New QMP command query-cpu-max and HMP command cpu_max"

This reverts commit 4d700430a20b3d53b7b15bc5f6666f7e570e3f2c as asked by
Luiz. The patch has been obsoleted by extending MachineInfo structure
by cpu-max field.

Signed-off-by: Michal Novotny <>...

c85a1284 04/12/2013 04:41 pm Eric Blake

qapi: use valid JSON in schema

  • qapi-schema.json: JSON doesn't allow trailing commas.

Signed-off-by: Eric Blake <>
Signed-off-by: Luiz Capitulino <>

c72e7688 04/12/2013 04:41 pm Michal Novotny

New cpu-max field in query-machines QMP command output

Alter the query-machines QMP command to output information about
maximum number of CPUs for each machine type with default value
set to 1 in case the number of max_cpus is not set.

Signed-off-by: Michal Novotny <>...

8ccbad5c 04/05/2013 03:23 am Laszlo Ersek

qapi schema: add AcpiTableOptions

Signed-off-by: Laszlo Ersek <>
Reviewed-by: Anthony Liguori <>
Message-id:
Signed-off-by: Anthony Liguori <>

ec396014 04/03/2013 11:09 pm Jason Wang

help: add docs for missing 'queues' option of tap

Cc: Markus Armbruster <>
Cc:
Signed-off-by: Jason Wang <>
Message-id:
Signed-off-by: Anthony Liguori <>

404e7a4f 03/26/2013 11:16 pm Anthony Liguori

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

virtio,pci,qom

Work by Alex to support VGA assignment,
pci and virtio fixes by Stefan, Jason and myself, and a
new qmp event for hotplug support by myself.

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

18501ae6 03/26/2013 08:38 pm Anthony Liguori

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

  1. By Peter Lieven (9) and others
  2. Via Juan Quintela
    • quintela/migration.next: (22 commits)
      Use qemu_put_buffer_async for guest memory pages
      Add qemu_put_buffer_async
      Use writev ops if available...
f1c72795 03/26/2013 02:32 pm Peter Lieven

migration: do not sent zero pages in bulk stage

during bulk stage of ram migration if a page is a
zero page do not send it at all.
the memory at the destination reads as zero anyway.

even if there is an madvise with QEMU_MADV_DONTNEED
at the target upon receipt of a zero page I have observed...

88ca7bcf 03/25/2013 10:21 pm Corey Bryant

QMP: Remove duplicate TPM type from query-tpm

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

4d700430 03/25/2013 10:21 pm Michal Novotny

New QMP command query-cpu-max and HMP command cpu_max

These commands return the maximum number of CPUs supported by the
currently running emulator instance, as defined in its QEMUMachine
struct.

Signed-off-by: Michal Novotny <>
Signed-off-by: Luiz Capitulino <>

d15a9c23 03/23/2013 04:25 pm Anthony Green

Add top level changes for moxie

Signed-off-by: Anthony Green <>
Signed-off-by: Blue Swirl <>

0402a5d6 03/17/2013 01:27 pm Michael S. Tsirkin

qdev: DEVICE_DELETED event

libvirt has a long-standing bug: when removing the device,
it can request removal but does not know when the
removal completes. Add an event so we can fix this in a robust way.

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

f5a51cab 03/13/2013 11:27 am Gerd Hoffmann

chardev: add msmouse support to qapi

This patch adds 'msmouse' support to qapi and also switches over
the msmouse chardev initialization to the new qapi code path.

Signed-off-by: Gerd Hoffmann <>

2d57286d 03/13/2013 11:27 am Gerd Hoffmann

chardev: add braille support to qapi

This patch adds 'braille' support to qapi and also switches over
the braille chardev initialization to the new qapi code path.

Signed-off-by: Gerd Hoffmann <>

7c358031 03/13/2013 11:27 am Gerd Hoffmann

chardev: add stdio support to qapi

This patch adds 'stdio' support to qapi and also switches over the
stdio chardev initialization to the new qapi code path.

Signed-off-by: Gerd Hoffmann <>

d9ac374f 03/13/2013 11:27 am Gerd Hoffmann

chardev: add console support to qapi

This patch adds 'console' support to qapi and also switches over the
console chardev initialization to the new qapi code path.

Signed-off-by: Gerd Hoffmann <>

548cbb36 03/13/2013 11:27 am Gerd Hoffmann

chardev: add pipe support to qapi

This patch adds 'pipe' support to qapi and also switches over the
pipe chardev initialization to the new qapi code path.

Signed-off-by: Gerd Hoffmann <>

cd153e2a 03/13/2013 11:27 am Gerd Hoffmann

chardev: add spice support to qapi

This patch adds 'spicevmc' and 'spiceport' support to qapi and also
switches over the spice chardev initialization to the new qapi code
path.

702ec69c 03/13/2013 11:27 am Gerd Hoffmann

chardev: add vc support to qapi

This patch adds 'vc' support to qapi and also switches over the
vc chardev initialization to the new qapi code path.

Signed-off-by: Gerd Hoffmann <>

1da48c65 03/13/2013 11:27 am Gerd Hoffmann

chardev: add memory (ringbuf) support to qapi

This patch adds 'memory' support to qapi and also switches over
the memory chardev initialization to the new qapi code path.

Signed-off-by: Gerd Hoffmann <>

3ecc059d 03/13/2013 11:27 am Gerd Hoffmann

chardev: add udp support to qapi

This patch adds 'udp' support to qapi.

Signed-off-by: Gerd Hoffmann <>

edb2fb3c 03/13/2013 11:27 am Gerd Hoffmann

chardev: add mux chardev support to qapi

This adds mux chardev support to the qapi and also makes the qapi-based
chardev creation path handle the "mux=on" option correctly.

d1a0cf73 03/12/2013 08:40 pm Stefan Berger

Support for TPM command line options

This patch adds support for TPM command line options.
The command line options supported here are

./qemu-... -tpmdev passthrough,path=<path to TPM device>,id=<id>
-device tpm-tis,tpmdev=<id>,id=<other id>
...

e6439d78 02/22/2013 10:21 pm Stefan Hajnoczi

qemu-img: add compressed clusters to BlockFragInfo

Show how many clusters are compressed. This can be used to monitor how
many compressed clusters remain and whether to recompress the image.

Suggested-by: Cole Robinson <>
Signed-off-by: Stefan Hajnoczi <>

8599ea4c 02/22/2013 10:21 pm Federico Simoncelli

qemu-img: add json output option to the check command

This option --output=[human|json] makes qemu-img check output a human
or JSON representation at the choice of the user.

Signed-off-by: Federico Simoncelli <>
Reviewed-by: Eric Blake <>...

2ca81baa 02/22/2013 12:33 am Jason Wang

help: add docs for multiqueue tap options

Cc: Markus Armbruster <>
Cc: Jason Wang <>
Signed-off-by: Jason Wang <>
Message-id:
Signed-off-by: Anthony Liguori <>

d36b2b90 02/13/2013 07:57 pm Markus Armbruster

qapi: Flatten away ChardevPort

Simplifies the schema and the code.

QMP command

{ "execute" : "chardev-add",
"arguments" : { "id" : "ser0",
"backend" : { "type" : "port",
"data" : { "type": "serial",...
58fa4325 02/11/2013 09:22 pm Markus Armbruster

qapi: Improve chardev-add documentation

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

3949e594 02/07/2013 12:35 am Markus Armbruster

qemu-char: Saner naming of memchar stuff & doc fixes

New device, has never been released, so we can still improve things
without worrying about compatibility.

Naming is a mess. The code calls the device driver CirMemCharDriver,
the public API calls it "memory", "memchardev", or "memchar", and the...

82e59a67 02/07/2013 12:35 am Markus Armbruster

qmp: Fix design bug and read beyond buffer in memchar-write

Command memchar-write takes data and size parameter. Begs the
question what happens when data doesn't match size.

With format base64, qmp_memchar_write() copies the full data argument,
regardless of size argument....

3ab651fc 02/07/2013 12:35 am Markus Armbruster

qmp: Clean up design of memchar-read

The data returned has a well-defined size, which makes the size
returned along with it redundant at best. Drop it.

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

1a69278e 02/07/2013 12:35 am Markus Armbruster

qmp: Use generic errors in memchar-read, memchar-write

New errors should be generic unless there's a real use case for rich
errors.

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

264986e2 02/01/2013 07:03 pm Jason Wang

tap: multiqueue support

Recently, linux support multiqueue tap which could let userspace call TUNSETIFF
for a signle device many times to create multiple file descriptors as
independent queues. User could also enable/disabe a specific queue through
TUNSETQUEUE....

503cb22e 01/28/2013 10:46 pm Anthony Liguori

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

  1. By Paolo Bonzini (14) and others
  2. Via Kevin Wolf
    • kwolf/for-anthony: (24 commits)
      ide: Add fall through annotations
      block: Create proper size file for disk mirror
      ahci: Add migration support...
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....

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 <>

49b6d722 01/25/2013 03:46 pm Lei Li

QAPI: Introduce memchar-read QMP command

Signed-off-by: Lei Li <>
Signed-off-by: Luiz Capitulino <>

1f590cf9 01/25/2013 03:23 pm Lei Li

QAPI: Introduce memchar-write QMP command

Signed-off-by: Lei Li <>
Signed-off-by: Luiz Capitulino <>

01ceb97e 01/25/2013 02:36 pm Luiz Capitulino

balloon: drop old stats code & API

Next commit will re-enable balloon stats with a different interface, but
this old code conflicts with it. Let's drop it.

It's important to note that the QMP and HMP interfaces are also dropped
by this commit. That shouldn't be a problem though, because:...

f1a1a356 01/16/2013 07:58 am Gerd Hoffmann

chardev: add qmp hotplug commands, with null chardev support

Add chardev-add and chardev-remove qmp commands. Hotplugging
a null chardev is supported for now, more will be added later.

Signed-off-by: Gerd Hoffmann <>

ffbdbe59 01/16/2013 07:58 am Gerd Hoffmann

chardev: add file chardev support to chardev-add (qmp)

Add support for file chardevs. Output file is mandatory,
input file is optional.

Signed-off-by: Gerd Hoffmann <>

d59044ef 01/16/2013 07:58 am Gerd Hoffmann

chardev: add serial chardev support to chardev-add (qmp)

Similar to file, except that no separate in/out files are supported
because it's pointless for direct device access. Also the special
tty ioctl hooks (pass through linespeed settings etc) are activated...

88a946d3 01/16/2013 07:58 am Gerd Hoffmann

chardev: add parallel chardev support to chardev-add (qmp)

Also alias the old parport name to parallel for -chardev.

Signed-off-by: Gerd Hoffmann <>

f6bd5d6e 01/16/2013 07:58 am Gerd Hoffmann

chardev: add socket chardev support to chardev-add (qmp)

qemu_chr_open_socket is split into two functions. All initialization
after creating the socket file handler is split away into the new
qemu_chr_open_socket_fd function.

chr->filename doesn't get filled from QemuOpts any more. Qemu gathers...

0a1a7fab 01/16/2013 07:58 am Gerd Hoffmann

chardev: add pty chardev support to chardev-add (qmp)

The ptsname is returned directly, so there is no need to
use query-chardev to figure the pty device path.

Signed-off-by: Gerd Hoffmann <>

63d2960b 11/15/2012 11:27 am Klaus Stengel

slirp: Add domain-search option to slirp's DHCP server

This patch will allow the user to include the domain-search option in
replies from the built-in DHCP server. The domain suffixes can be
specified by adding dnssearch= entries to the "-net user" parameter....

90c45b30 10/29/2012 05:34 pm Anthony Liguori

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

  • kwolf/for-anthony: (32 commits)
    osdep: Less restrictive F_SEFL in qemu_dup_flags()
    qemu-iotests: add testcases for mirroring on-source-error/on-target-error
    qmp: add pull_event function...
3f4331bf 10/29/2012 03:55 pm Aurelien Jarno

Merge branch 'queue/qmp' of git://repo.or.cz/qemu/qmp-unstable

  • 'queue/qmp' of git://repo.or.cz/qemu/qmp-unstable:
    migration: go to paused state after finishing incoming migration with -S
    qmp: handle stop/cont in INMIGRATE state
    hmp: fix info cpus for sparc targets
1e998146 10/24/2012 04:27 pm Paolo Bonzini

qmp: handle stop/cont in INMIGRATE state

Right now, stop followed by an incoming migration will let the
virtual machine start. cont before an incoming migration instead
will fail.

This is bad because the actual behavior is not predictable; it is
racy with respect to the start of the incoming migration. That's...

b952b558 10/24/2012 11:26 am Paolo Bonzini

mirror: add support for on-source-error/on-target-error

Error management is important for mirroring; otherwise, an error on the
target (even something as "innocent" as ENOSPC) requires to start again
with a full copy. Similar to on_read_error/on_write_error, two separate...

d9b902db 10/24/2012 11:26 am Paolo Bonzini

qmp: add drive-mirror command

This adds the monitor commands that start the mirroring job.

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

9ac54af0 10/24/2012 11:26 am Corey Bryant

monitor: Allow add-fd to any specified fd set

The first call to add an fd to an fd set was previously not
allowed to choose the fd set ID. The ID was generated as
the first available and ensuing calls could add more fds by
specifying the fd set ID. This change allows users to...

b9a9b3a4 10/24/2012 11:26 am Paolo Bonzini

block: export dirty bitmap information in query-block

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

aeae883b 10/24/2012 11:26 am Paolo Bonzini

block: add block-job-complete

While streaming can be dropped as soon as it progressed through the whole
image, mirroring needs to be completed manually for two reasons: 1) so that
management knows exactly when the VM switches to the target; 2) because
for other use cases such as replication, we may leave the operation running...

a66a2a36 10/24/2012 11:26 am Paolo Bonzini

block: introduce BLOCK_JOB_READY event

Even for jobs that need to be manually completed, management may want
to take care itself of the completion, not requiring the user to issue
a command to terminate the job. In this case we want to avoid that
they poll us continuously, waiting for completion to become available....

893f7eba 10/24/2012 11:26 am Paolo Bonzini

mirror: introduce mirror job

This patch adds the implementation of a new job that mirrors a disk to
a new image while letting the guest continue using the old image.
The target is treated as a "black box" and data is copied from the
source to the target in the background. This can be used for several...

6dd844db 10/23/2012 11:39 pm Paolo Bonzini

qmp: add NBD server commands

Adding an NBD server inside QEMU is trivial, since all the logic is
in nbd.c and can be shared easily between qemu-nbd and QEMU itself.
The main difference is that qemu-nbd serves a single unnamed export,
while QEMU serves named exports....

5be8c759 10/23/2012 08:05 pm Paolo Bonzini

qapi: add socket address types

Acked-by: Luiz Capitulino <>
Signed-off-by: Paolo Bonzini <>

9c5a9fcf 10/17/2012 07:34 pm Juan Quintela

migration: print total downtime for final phase of migration

Signed-off-by: Juan Quintela <>

Reviewed-by: Paolo Bonzini <>
Reviewed-by: Orit Wasserman <>

2c52ddf1 10/17/2012 07:34 pm Juan Quintela

migration: print expected downtime in info migrate

Signed-off-by: Juan Quintela <>

8d017193 10/17/2012 07:34 pm Juan Quintela

migration: Add dirty_pages_rate to query migrate output

It indicates how many pages were dirtied during the last second.

Signed-off-by: Juan Quintela <>

a14c7492 10/05/2012 03:56 am Anthony Liguori

Merge remote-tracking branch 'sstabellini/xen-2012-10-03' into staging

  • sstabellini/xen-2012-10-03:
    xen: Set the vram dirty when an error occur.
    exec, memory: Call to xen_modified_memory.
    exec: Introduce helper to set dirty flags.
    xen: Introduce xen_modified_memory....
05d4f2f2 10/05/2012 03:53 am Anthony Liguori

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

  • kwolf/for-anthony: (30 commits)
    qemu-iotests: add tests for streaming error handling
    qemu-iotests: map underscore to dash in QMP argument names
    blkdebug: process all set_state rules in the old state...
39f42439 10/03/2012 04:48 pm Anthony PERARD

QMP, Introduce xen-set-global-dirty-log command.

This command is used during a migration of a guest under Xen. It calls
memory_global_dirty_log_start or memory_global_dirty_log_stop according to the
argument pass to the command.

Signed-off-by: Anthony PERARD <>...

32c81a4a 09/28/2012 08:40 pm Paolo Bonzini

block: introduce block job error

The following behaviors are possible:

'report': The behavior is the same as in 1.1. An I/O error,
respectively during a read or a write, will complete the job immediately
with an error code.

'ignore': An I/O error, respectively during a read or a write, will be...

1d809098 09/28/2012 08:40 pm Paolo Bonzini

stream: add on-error argument

This patch adds support for error management to streaming.

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

92aa5c6d 09/28/2012 08:40 pm Paolo Bonzini

iostatus: move BlockdevOnError declaration to QAPI

This will let block-stream reuse the enum. Places that used the enums
are renamed accordingly.

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

8d65883f 09/28/2012 08:14 pm Paolo Bonzini

qmp: add 'busy' member to BlockJobInfo

Because pausing a job is asynchronous, we need to know whether it has
completed. This is described by the "busy" field of BlockJob; copy it
to BlockJobInfo.

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

8acc72a4 09/28/2012 08:14 pm Paolo Bonzini

block: add support for job pause/resume

Job pausing reuses the existing support for cancellable sleeps. A pause
happens at the next sleeping point and lasts until the coroutine is
re-entered explicitly. Cancellation was already doing a forced resume,
so implement it explicitly in terms of resume....

6e37fb81 09/28/2012 08:14 pm Paolo Bonzini

qmp: add block-job-pause and block-job-resume

Add QMP commands matching the functionality.

Paused jobs cannot be canceled without first resuming them. This
ensures that I/O errors are never missed by management. However, an
optional force argument can be specified to allow that....

ed61fc10 09/28/2012 07:23 pm Jeff Cody

QAPI: add command for live block commit, 'block-commit'

The command for live block commit is added, which has the following
arguments:

device: the block device to perform the commit on (mandatory)
base: the base image to commit into; optional (if not specified,...

8bde9b6f 09/27/2012 03:53 pm Paolo Bonzini

block: live snapshot documentation tweaks

Signed-off-by: Paolo Bonzini <>
Signed-off-by: Luiz Capitulino <>

9f328977 09/27/2012 03:50 pm Luiz Capitulino

qmp: qmp_send_key(): accept key codes in hex

Before the qapi conversion, the sendkey command could be used to
send key codes in hex directly to the guest. In HMP, this would
be like:

(qemu) sendkey 0xdc

However, the qapi conversion broke this, as it only supports sending...

d691180e 09/27/2012 03:46 pm Luiz Capitulino

qmp: dump-guest-memory: improve schema doc (again)

o Add a note about memory allocation with paging=true
o Fix indentation

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

b224e5e2 09/26/2012 06:42 pm Luiz Capitulino

qapi: convert add_client

Also fixes a few issues while there:

1. The fd returned by monitor_get_fd() leaks in most error conditions
2. monitor_get_fd() return value is not checked. Best case we get
an error that is not correctly reported, worse case one of the...
109820df 09/17/2012 06:23 pm Anthony Liguori

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

  • kwolf/for-anthony:
    block: Don't forget to delete temporary file
    Don't require encryption password for 'qemu-img info' command
    qemu-img: Add json output option to the info command.
    qapi: Add SnapshotInfo and ImageInfo....
6932a69b 09/14/2012 10:21 am Lei Li

qapi: Fix enumeration typo error

Signed-off-by: Lei Li <>
Reviewed-by: Luiz Capitulino <>
Signed-off-by: Stefan Hajnoczi <>

c249ee68 09/12/2012 04:50 pm Benoît Canet

qapi: Add SnapshotInfo and ImageInfo.

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

69fc2553 09/10/2012 04:32 pm Aurelien Jarno

Merge branch 'spice.v59' of git://anongit.freedesktop.org/spice/qemu

  • 'spice.v59' of git://anongit.freedesktop.org/spice/qemu:
    Remove #ifdef QXL_COMMAND_FLAG_COMPAT_16BPP
    qxl: Add set_client_capabilities() interface to QXLInterface
    spice: make number of surfaces runtime-configurable....
e4c8f004 09/05/2012 09:48 pm Amos Kong

qapi: convert sendkey

Convert 'sendkey' to use QAPI.

QAPI passes key's index of mapping table to qmp_send_key(),
not keycode. So we use help functions to convert key/code to
index of key_defs, and 'index' will be converted to 'keycode'
inside qmp_send_key()....

ad39cf6d 09/05/2012 09:48 pm Luiz Capitulino

qapi: convert screendump

Next commits will update devices to propagate errors.

Signed-off-by: Luiz Capitulino <>

411656f4 09/05/2012 09:48 pm Amos Kong

qapi: add the QKeyCode enum

key_defs[] in monitor.c is a mapping table of keys and keycodes,
this patch added a QKeyCode enum. Key's index in the enmu is same
as keycode's index in key_defs[].

Signed-off-by: Amos Kong <>
Signed-off-by: Luiz Capitulino <>

61c4efe2 09/05/2012 06:11 pm Yonit Halperin

spice: add 'migrated' flag to spice info

The flag is 'true' when spice migration has completed on the src side.
It is needed for a case where libvirt dies before migration completes
and it misses the event QEVENT_SPICE_MIGRATE_COMPLETED.
When libvirt is restored and queries the migration status, it also needs...