Statistics
| Branch: | Revision:

root / qmp-commands.hx @ f487b677

History | View | Annotate | Download (77.8 kB)

# Date Author Comment
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'....

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

8ca27ce2 05/02/2013 06:57 pm Anthony Liguori

Merge remote-tracking branch 'afaerber/qom-cpu' into staging

  1. By Igor Mammedov (21) and others
  2. Via Andreas Färber
    • afaerber/qom-cpu: (29 commits)
      Drop redundant resume_all_vcpus() from main()
      cpus: Fix pausing TCG CPUs while in vCPU thread
      target-i386: Replace cpuid_*features fields with a feature word array...
805a2505 05/01/2013 07:55 pm Stefan Weil

Trivial grammar and spelling fixes

similiar -> similar
recieve -> receive
transfered -> transferred
preperation -> preparation

Most changes are in comments, one modifies a parameter name in a function
prototype.

The spelling fixes were made using codespell....

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

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

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

817c6045 03/26/2013 02:30 pm Juan Quintela

migration: Improve QMP documentation

Signed-off-by: Juan Quintela <>
Reviewed-by: Eric Blake <>

28c4fa32 03/25/2013 10:21 pm Corey Bryant

QMP: TPM QMP and man page documentation updates

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

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

af347aa5 02/27/2013 05:10 pm Markus Armbruster

qmp: netdev_add is like -netdev, not -net, fix documentation

Cc:
Signed-off-by: Markus Armbruster <>
Reviewed-by: Laszlo Ersek <>
Signed-off-by: Stefan Hajnoczi <>

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

dbca1b37 02/01/2013 09:32 am Orit Wasserman

Fix example for query-migrate-capabilities

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

Signed-off-by: Juan Quintela <>

99f42808 01/30/2013 12:19 pm Michal Privoznik

qmp-commands.hx: s/tray-open/tray_open/ to match qapi schema

Currently, we are using 'tray_open' in QMP and 'tray-open' in
HMP. However, the QMP documentation was mistakenly using the
HMP version.

Signed-off-by: Michal Privoznik <>
Reviewed-by: Eric Blake <>...

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

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

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

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

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

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

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

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

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

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

86759aa8 08/22/2012 09:33 pm Anthony Liguori

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

  • qmp/queue/qmp:
    migration: move total_time from ram stats to migration info
    monitor: avoid declaring unused variables
    qapi: Fix memory leak
99afc91d 08/22/2012 06:47 pm Daniel P. Berrange

qapi: add 'query-target' command to return target arch

Add a 'query-target' QAPI command to allow management applications
to determine what target architecture a QEMU binary is emulating
without having to parse the binary name or -help output

$ qmp-shell -p /tmp/qemu...
7aa939af 08/21/2012 09:06 pm Juan Quintela

migration: move total_time from ram stats to migration info

Signed-off-by: Juan Quintela <>
Signed-off-by: Luiz Capitulino <>

ba1c048a 08/15/2012 11:48 am Corey Bryant

qapi: Introduce add-fd, remove-fd, query-fdsets

This patch adds support that enables passing of file descriptors
to the QEMU monitor where they will be stored in specified file
descriptor sets.

A file descriptor set can be used by a client like libvirt to...

633decd7 08/14/2012 12:12 am Anthony Liguori

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

  • qmp/queue/qmp: (48 commits)
    target-ppc: add implementation of query-cpu-definitions (v2)
    target-i386: add implementation of query-cpu-definitions (v2)
    qapi: add query-cpu-definitions command (v2)...
1daa31b9 08/13/2012 10:10 pm Anthony Liguori

qmp: introduce device-list-properties command

This can be used in conjunction with qom-list-types to determine the supported
set of devices and their parameters.

Signed-off-by: Anthony Liguori <>
Signed-off-by: Luiz Capitulino <>

01d3c80d 08/13/2012 10:10 pm Anthony Liguori

qapi: add query-machines command

This provides the same output as -M ? but in a structured way.

Signed-off-by: Anthony Liguori <>
Signed-off-by: Luiz Capitulino <>

e4e31c63 08/13/2012 10:10 pm Anthony Liguori

qapi: add query-cpu-definitions command (v2)

This command attempts to map to the behavior of -cpu ?. Unfortunately, the
output of this command differs wildly across targets.

To accommodate this, we use a weak symbol to implement a default version of the...

de253f14 08/13/2012 08:17 pm Luiz Capitulino

qmp: switch to the new error format on the wire

IMPORTANT: this BREAKS QMP's compatibility for the error response.

This commit changes QMP's wire protocol to make use of the simpler
error format introduced by previous commits.

There are two important (and mostly incompatible) changes:...

9e1ba4cc 08/08/2012 02:51 pm Orit Wasserman

Add migrate_set_cache_size command

Change XBZRLE cache size in bytes (the size should be a power of 2, it will be
rounded down to the nearest power of 2).
If XBZRLE cache size is too small there will be many cache miss.

New query-migrate-cache-size QMP command and 'info migrate_cache_size' HMP...

62d4e3fe 08/08/2012 02:51 pm Orit Wasserman

Change total_time to total-time in MigrationStats

migration total_time was introduced in commit
d5f8a5701d3690b5ec0c34b6a5c0b5a24d274540 for QEMU 1.2

Signed-off-by: Orit Wasserman <>

Reviewed-by: Luiz Capitulino <>...

004d4c10 08/08/2012 02:51 pm Orit Wasserman

Add migration accounting for normal and duplicate pages

Signed-off-by: Benoit Hudzia <>
Signed-off-by: Petter Svard <>
Signed-off-by: Aidan Shribman <>
Signed-off-by: Orit Wasserman <>...

f36d55af 08/08/2012 02:51 pm Orit Wasserman

Add XBZRLE statistics

Signed-off-by: Benoit Hudzia <>
Signed-off-by: Petter Svard <>
Signed-off-by: Aidan Shribman <>
Signed-off-by: Orit Wasserman <>
Signed-off-by: Juan Quintela <>...

bbf6da32 08/08/2012 02:51 pm Orit Wasserman

Add migration capabilities

The management can query the current migration capabilities using
query-migrate-capabilities QMP command.
The user can use 'info migrate_capabilities' HMP command.
Currently only XBZRLE capability is available.

Signed-off-by: Orit Wasserman <>...

00458433 08/08/2012 02:51 pm Orit Wasserman

Add migrate-set-capabilities

The management can enable/disable a capability for the next migration by using
migrate-set-capabilities QMP command.
The user can use migrate_set_capability HMP command.

Signed-off-by: Orit Wasserman <>
Signed-off-by: Juan Quintela <>...

2e3e3317 08/03/2012 04:10 pm Benoît Canet

block: Use bdrv_get_backing_file_depth()

Use the dedicated counting function in qmp_query_block in order to
propagate the backing file depth to HMP and add backing_file_depth
to qmp-commands.hx

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

208c9d1b 07/13/2012 07:46 pm Corey Bryant

qapi: Convert getfd and closefd

Signed-off-by: Corey Bryant <>
Signed-off-by: Luiz Capitulino <>

928059a3 06/04/2012 07:49 pm Luiz Capitulino

qapi: convert netdev_add

This is not a full QAPI conversion, but an intermediate step.

In essence, do_netdev_add() is split into three functions:

1. netdev_add(): performs the actual work. This function is fully
converted to Error (thus, it's "qapi-friendly")...
5f964155 06/04/2012 07:49 pm Luiz Capitulino

qapi: convert netdev_del

Signed-off-by: Anthony Liguori <>
Signed-off-by: Luiz Capitulino <>
Reviewed-By: Laszlo Ersek <>

4860853d 06/04/2012 07:49 pm Daniel P. Berrange

Add 'query-events' command to QMP to query async events

Sometimes it is neccessary for an application to determine
whether a particular QMP event is available, so they can
decide whether to use compatibility code instead. This
introduces a new 'query-events' command to QMP to do just...

783e9b48 06/04/2012 07:49 pm Wen Congyang

introduce a new monitor command 'dump-guest-memory' to dump guest's memory

The command's usage:
dump-guest-memory [-p] protocol [begin] [length]
The supported protocol can be file or fd:
1. file: the protocol starts with "file:", and the following string is...

31155b9b 05/10/2012 11:32 am Paolo Bonzini

block: add mode argument to blockdev-snapshot-sync

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

882ec7ce 04/27/2012 05:44 pm Stefan Hajnoczi

block: change block-job-set-speed argument from 'value' to 'speed'

Signed-off-by: Stefan Hajnoczi <>
Acked-by: Kevin Wolf <>
Signed-off-by: Luiz Capitulino <>

c83c66c3 04/27/2012 05:44 pm Stefan Hajnoczi

block: add 'speed' optional parameter to block-stream

Allow streaming operations to be started with an initial speed limit.
This eliminates the window of time between starting streaming and
issuing block-job-set-speed. Users should use the new optional 'speed'...

db58f9c0 04/23/2012 07:02 pm Stefan Hajnoczi

qmp: make block job command naming consistent

The block streaming and job commands used '_' instead of '-' for reasons
of compatibility with libvirt, which already included support for the
'_' naming. However, the semantics of block_job_cancel have changed and...

a15fef21 04/09/2012 08:35 pm Luiz Capitulino

qapi: convert device_del

Signed-off-by: Anthony Liguori <>
Signed-off-by: Luiz Capitulino <>
Reviewed-by: Stefan Hajnoczi <>

b9f8978c 03/27/2012 03:15 pm Paolo Bonzini

qmp: add and use q type specifier

"O" is being used by the transaction and qom-set commands to mean "any
QObject", but it really means "do not validate the argument list".
Add a new specifier with the correct meaning.

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

33cf629a 03/19/2012 08:39 pm Anthony Liguori

Merge remote-tracking branch 'sstabellini/saverestore-8' into staging

  • sstabellini/saverestore-8:
    xen: do not allocate RAM during INMIGRATE runstate
    xen mapcache: check if memory region has moved.
    xen: record physmap changes to xenstore
    Set runstate to INMIGRATE earlier...
a7ae8355 03/19/2012 08:21 pm Stefano Stabellini

Introduce "xen-save-devices-state"

- add an "is_ram" flag to SaveStateEntry;

- register_savevm_live sets is_ram for live_savevm devices;

- introduce a "xen-save-devices-state" QAPI command that can be used to save
the state of all devices, but not the RAM or the block devices of the...

e1c37d0e 03/15/2012 03:39 pm Luiz Capitulino

qapi: Convert migrate

The migrate command is one of those commands where HMP and QMP completely
mix up together. This made the conversion to the QAPI (which separates the
command into QMP and HMP parts) a bit difficult.

The first important change to be noticed is that this commit completes the...

52e7c241 03/12/2012 04:14 pm Paolo Bonzini

rename blockdev-group-snapshot-sync

We will add other kinds of operation. Prepare for this by adjusting
the schema.

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

bc8b094f 03/12/2012 04:14 pm Paolo Bonzini

add mode field to blockdev-snapshot-sync transaction item

The mode field lets a management application create the snapshot
destination outside QEMU.

Right now, the only modes are "existing" and "absolute-paths". Mirroring
introduces "no-backing-file". In the future "relative-paths" could be...

6cc2a415 03/12/2012 04:14 pm Paolo Bonzini

qmp: convert blockdev-snapshot-sync to a wrapper around transactions

Simplify the blockdev-snapshot-sync code and gain failsafe operation
by turning it into a wrapper around the new transaction command. A new
option is also added matching "mode".

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

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

f1f5f407 02/21/2012 11:36 am Daniel P. Berrange

Add SPICE support to add_client monitor command

With the acceptance of some new APIs to libspice-server.so it
is possible to add support for SPICE to the 'add_client'
monitor command, bringing parity with VNC. Since SPICE can
use TLS or plain connections, the command also gains a new...

5eeee3fa 02/03/2012 06:41 pm Anthony Liguori

qom: add new command to search for types

This adds a command that allows searching for types that implement a property.
This allows you to do things like search for all available PCIDevices. In the
future, we'll also have a standard interface for things with a BlockDriverState...

370521a1 01/26/2012 03:49 pm Stefan Hajnoczi

qmp: add block_job_cancel command

Add block_job_cancel, which stops an active block streaming operation.
When the operation has been cancelled the new BLOCK_JOB_CANCELLED event
is emitted.

Signed-off-by: Stefan Hajnoczi <>
Acked-by: Luiz Capitulino <>...

fb5458cd 01/26/2012 03:49 pm Stefan Hajnoczi

qmp: add query-block-jobs

Add query-block-jobs, which shows the progress of ongoing block device
operations.

Signed-off-by: Stefan Hajnoczi <>
Acked-by: Luiz Capitulino <>
Signed-off-by: Kevin Wolf <>

2d47c6e9 01/26/2012 03:49 pm Stefan Hajnoczi

qmp: add block_job_set_speed command

Add block_job_set_speed, which sets the maximum speed for a background
block operation.

Signed-off-by: Stefan Hajnoczi <>
Acked-by: Luiz Capitulino <>
Signed-off-by: Kevin Wolf <>

12bd451f 01/26/2012 03:49 pm Stefan Hajnoczi

qmp: add block_stream command

Add the block_stream command, which starts copy backing file contents
into the image file. Also add the BLOCK_JOB_COMPLETED QMP event which
is emitted when image streaming completes. Later patches add control
over the background copy speed, cancelation, and querying running...

c245b6a3 01/18/2012 02:23 pm Luiz Capitulino

qapi: Convert eject

Signed-off-by: Anthony Liguori <>
Signed-off-by: Luiz Capitulino <>

270b243f 01/18/2012 02:23 pm Luiz Capitulino

qapi: Introduce change-vnc-password

New QMP command to change the VNC password.

Signed-off-by: Anthony Liguori <>
Signed-off-by: Luiz Capitulino <>

Signed-off-by: Luiz Capitulino <>

333a96ec 01/18/2012 02:23 pm Luiz Capitulino

qapi: Convert change

Signed-off-by: Anthony Liguori <>
Signed-off-by: Luiz Capitulino <>

80047da5 01/18/2012 02:23 pm Luiz Capitulino

qapi: Convert block_set_io_throttle

Signed-off-by: Luiz Capitulino <>

fbf796fd 01/18/2012 02:23 pm Luiz Capitulino

qapi: Convert set_password

Signed-off-by: Anthony Liguori <>
Signed-off-by: Luiz Capitulino <>

9ad5372d 01/18/2012 02:23 pm Luiz Capitulino

qapi: Convert expire_password

Signed-off-by: Anthony Liguori <>
Signed-off-by: Luiz Capitulino <>

b4b12c62 12/15/2011 05:20 pm Anthony Liguori

qmp: add qom-list command

This can be used to list properties in the device model.

Signed-off-by: Anthony Liguori <>

eb6e8ea5 12/15/2011 05:20 pm Anthony Liguori

qom: qom_{get, set} monitor commands (v2)

This allows clients to read and write device model properties through QMP. QAPI
doesn't support Visitor types yet and these commands are special in that they
don't work with fixed types.

I've added a documentation stub to qapi-schema.json so we can keep consistency...

d72f3264 12/06/2011 03:40 pm Luiz Capitulino

qapi: Convert balloon

Note that the command being dropped uses the deprecated MONITOR_CMD_ASYNC
API, but the new command is a regular synchronous command. There shouldn't
be visible differences though, as MONITOR_CMD_ASYNC is internal only.

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

5e7caacb 12/06/2011 03:40 pm Luiz Capitulino

qapi: Convert block_resize

Signed-off-by: Luiz Capitulino <>

6106e249 12/06/2011 03:40 pm Luiz Capitulino

qapi: Convert blockdev_snapshot_sync

Unfortunately, this conversion required an additional change.

In the old QMP command, the 'snapshot-file' argument is specified as
optional. The idea is to take the snapshot internally if 'snapshot-file'
is not passed. However, internal snapshots are not supported yet so...

d51a67b4 12/06/2011 03:40 pm Luiz Capitulino

qapi: Convert human-monitor-command

Signed-off-by: Anthony Liguori <>
Signed-off-by: Luiz Capitulino <>

6cdedb07 12/06/2011 03:40 pm Luiz Capitulino

qapi: Convert migrate_cancel

Signed-off-by: Luiz Capitulino <>

4f0a993b 12/06/2011 03:40 pm Luiz Capitulino

qapi: Convert migrate_set_downtime

Signed-off-by: Luiz Capitulino <>

3dc85383 12/06/2011 03:40 pm Luiz Capitulino

qapi: Convert migrate_set_speed

Signed-off-by: Luiz Capitulino <>