Statistics
| Branch: | Revision:

root / qmp-commands.hx @ dbfe06c6

History | View | Annotate | Download (50.3 kB)

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

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

qapi: Convert pmemsave

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

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

qapi: Convert cont

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

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

qapi: Convert inject-nmi

Signed-off-by: Luiz Capitulino <>

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

qapi: Convert set_link

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

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

qapi: Convert block_passwd

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

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

22e1bb9c 12/06/2011 03:40 pm Luiz Capitulino

qapi: Complete system_powerdown conversion

Commit 5bc465e4b1b6f4582a400c0a7033a1c841744278 converted only
the HMP part of the system_powerdown command to the QAPI, this
commit completes it by converting the QMP part too.

Signed-off-by: Luiz Capitulino <>

0cfd6a9a 12/06/2011 03:40 pm Luiz Capitulino

qapi: Convert memsave

Please, note that the QMP command has a new 'cpu-index' parameter.

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

727f005e 12/05/2011 03:51 pm Zhi Yong Wu

hmp/qmp: add block_set_io_throttle

Signed-off-by: Zhi Yong Wu <>
Signed-off-by: Stefan Hajnoczi <>
Signed-off-by: Kevin Wolf <>

96b3d73f 10/31/2011 06:02 pm Anthony Liguori

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

Conflicts:
ui/spice-core.c

de0b36b6 10/27/2011 04:48 pm Luiz Capitulino

qapi: Convert query-cpus

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

b2023818 10/27/2011 04:48 pm Luiz Capitulino

qapi: Convert query-block

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

f11f57e4 10/27/2011 04:48 pm Luiz Capitulino

qapi: Convert query-blockstats

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

2b54aa87 10/27/2011 04:48 pm Luiz Capitulino

qapi: Convert query-vnc

There are three important remarks in relation to the non-qapi command:

1. This commit also fixes the behavior of the 'query-vnc' and 'info vnc'
commands to return an error when qemu is built without VNC support
(ie. --disable-vnc). The non-qapi command would return the OK...
d1f29646 10/27/2011 04:48 pm Luiz Capitulino

qapi: Convert query-spice

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

96637bcd 10/27/2011 04:48 pm Luiz Capitulino

qapi: Convert query-balloon

Please, note that some of the code supporting memory statistics is
still around (eg. virtio_balloon_receive_stats() and reset_stats()).

Also, the qmp_query_balloon() function is synchronous and thus doesn't
make any use of the (not fully working) monitor's asynchronous command...

79627472 10/27/2011 04:48 pm Luiz Capitulino

qapi: Convert query-pci

This also fixes a bug with the old version: QMP would invert device id
and vendor id. This would look ok on HMP because it was printing
"device:vendor" instead of "vendor:device".

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

e235cec3 10/27/2011 04:48 pm Luiz Capitulino

qapi: Convert query-mice

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

791e7c82 10/27/2011 04:48 pm Luiz Capitulino

qapi: Convert query-migrate

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

755f1968 10/27/2011 04:48 pm Luiz Capitulino

qapi: Convert the cpu command

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

edc5cb1a 10/25/2011 03:00 pm Yonit Halperin

spice: turn client_migrate_info to async

RHBZ 737921
Spice client is required to connect to the migration target before/as migration
starts. Since after migration starts, the target qemu is blocked and cannot accept new spice client
we trigger the connection to the target upon client_migrate_info command....

7f3850c2 10/19/2011 03:39 pm Luiz Capitulino

QMP: Fix blockdev-snapshot-sync doc example

Fix wrong command name.

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

f04ef601 10/11/2011 10:42 am Luiz Capitulino

QMP: query-status: Add 'io-status' key

Contains the I/O status for the given device. The key is only present
if the device supports it and the VM is configured to stop on errors.

Please, check the documentation being added in this commit for more
information....

292a2602 10/04/2011 05:02 pm Luiz Capitulino

qapi: Convert query-kvm

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

1fa9a5e4 10/04/2011 05:02 pm Luiz Capitulino

qapi: Convert query-status

Please, note that the RunState type as defined in sysemu.h and its
runstate_as_string() function are being dropped in favor of the
RunState type generated by the QAPI.

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

efab767e 10/04/2011 05:02 pm Luiz Capitulino

qapi: Convert query-uuid

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

c5a415a0 10/04/2011 05:02 pm Luiz Capitulino

qapi: Convert query-chardev

Reviewed-by: Michael Roth <>
Tested-by: Michael Roth <>
Signed-off-by: Anthony Liguori <>
Signed-off-by: Luiz Capitulino <>

aa9b79bc 10/04/2011 05:02 pm Luiz Capitulino

qapi: Convert query-commands

Signed-off-by: Luiz Capitulino <>

7a7f325e 10/04/2011 05:02 pm Luiz Capitulino

qapi: Convert quit

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

5f158f21 10/04/2011 05:02 pm Luiz Capitulino

qapi: Convert stop

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

38d22653 10/04/2011 05:02 pm Luiz Capitulino

qapi: Convert system_reset

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

48a32bed 10/04/2011 05:01 pm Anthony Liguori

qapi: convert query-name

A simple example conversion 'info name'. This also adds the new files for
QMP and HMP.

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

b9c15f16 10/04/2011 05:01 pm Luiz Capitulino

qapi: Convert query-version

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

9e37b9dc 09/15/2011 10:39 pm Luiz Capitulino

QMP: query-status: Introduce 'status' key

This new key reports the current VM status to clients. Please, check
the documentation being added in this commit for more details.

Signed-off-by: Luiz Capitulino <>

e4def80b 09/12/2011 04:17 pm Markus Armbruster

block: Show whether the virtual tray is open in info block

Need to ask the device, so this requires new BlockDevOps member
is_tray_open().

Signed-off-by: Markus Armbruster <>
Signed-off-by: Kevin Wolf <>

c488c7f6 08/26/2011 07:18 pm Christoph Hellwig

block: latency accounting

Account the total latency for read/write/flush requests. This allows
management tools to average it based on a snapshot of the nr ops
counters and allow checking for SLAs or provide statistics.

Signed-off-by: Christoph Hellwig <>...

e8045d67 08/23/2011 06:41 pm Christoph Hellwig

block: include flush requests in info blockstats

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

c20cdf8b 07/27/2011 05:57 pm Zhi Yong Wu

qmp: fix efect -> effect typo in qmp-commands.hx

Signed-off-by: Zhi Yong Wu <>
Signed-off-by: Stefan Hajnoczi <>

13661089 07/23/2011 07:19 pm Daniel P. Berrange

Introduce a 'client_add' monitor command accepting an open FD

Allow client connections for VNC and socket based character
devices to be passed in over the monitor using SCM_RIGHTS.

One intended usage scenario is to start QEMU with VNC on a
UNIX domain socket. An unprivileged user which cannot access...

d967b2f1 07/21/2011 10:48 pm Jes Sorensen

QMP: add snapshot-blkdev-sync command

Add QMP bits for snapshot_blkdev command. This is the same as
snapshot_blkdev in the human monitor. The command is synchronous.

In the future async commands and or a break down of the functionality
into multiple commands might be added....

a4046664 06/01/2011 05:42 pm Lai Jiangshan

QMP: add inject-nmi qmp command

inject-nmi command injects an NMI on all CPUs of guest.
It is only supported for x86 guest currently, it will
returns "Unsupported" error for non-x86 guest.

Signed-off-by: Luiz Capitulino <>

e9b4b432 06/01/2011 05:42 pm Luiz Capitulino

HMP: Use QMP inject nmi implementation

This CHANGES the human monitor "nmi" command behavior.

Currently it accepts an CPU argument which, when provided, will send
the NMI to the specified CPU. This feature is of discussable value
though and HMP shouldn't have more features than QMP, so let's use...

d8aeeb31 05/19/2011 11:26 am Markus Armbruster

block QMP: Deprecate query-block's "type", drop info block's "type="

query-block's specification documents response member "type" with
values "hd", "cdrom", "floppy", "unknown".

Its value is unreliable: a block device used as floppy has type
"floppy" if created with if=floppy, but type "hd" if created with...

ff73edf5 03/22/2011 03:39 pm Jes Sorensen

qmp-commands.hx: Clean up mess of client_migrate_info

client_migrate_info was put into qmp-commands.hx in the middle of
migrate_set_speed, between the command and it's description. In
addition client_migrate_info put the description before the command
itself, which is the wrong order....

dc7a09cf 03/16/2011 10:11 pm Jan Kiszka

Expose thread_id in info cpus

Based on patch by Glauber Costa:

To allow management applications like libvirt to apply CPU affinities to
the VCPU threads, expose their ID via info cpus. This patch provides the
pre-existing and used interface from qemu-kvm....

9363ee31 02/01/2011 11:22 pm Anthony Liguori

Merge remote branch 'spice/spice.v29.pull' into staging

Conflicts:
trace-events

6d4a2b3a 01/31/2011 11:03 am Christoph Hellwig

block: add block_resize monitor command

Add a monitor command that allows resizing of block devices while
qemu is running. It uses the existing bdrv_truncate method already
used by qemu-img to do it's work. Compared to qemu-img the size
parsing is very simplicistic, but I think having a properly numering...

e866e239 01/24/2011 04:13 pm Gerd Hoffmann

spice/vnc: client migration.

Handle spice client migration, i.e. inform a spice client connected
about the new host and connection parameters, so it can move over the
connection automatically.

The monitor command has a not-yet used protocol argument simliar to...

818c2e1b 12/27/2010 11:59 pm Aurelien Jarno

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

  • 'spice.v23.pull' of git://anongit.freedesktop.org/spice/qemu:
    vnc/spice: add set_passwd monitor command.
    vnc: support password expire
    vnc: auth reject cleanup
    spice: add qmp 'query-spice' and hmp 'info spice' commands....
5569fd7c 12/27/2010 10:43 pm Luiz Capitulino

Fix migrate set speed doc arg

We used to ignore any fractional part in 0.13, but due to recent
changes (started with 9f9b17a4f0865286391e4d3a0a735230122a2289)
migrate_set_speed will reject the fractional part.

We don't expect existing clients to be relying on this, but we...

7572150c 12/09/2010 03:23 pm Gerd Hoffmann

vnc/spice: add set_passwd monitor command.

This patch adds new set_password and expire_password monitor commands
which allows to change and expire the password for spice and vnc
connections. See the doc update patch chunk for details.

Signed-off-by: Gerd Hoffmann <>

cb42a870 12/09/2010 03:23 pm Gerd Hoffmann

spice: add qmp 'query-spice' and hmp 'info spice' commands.

The patch adds a 'query-spice' monitor command which returns
informations about the spice server configuration and also a list of
channel connections.

Signed-off-by: Gerd Hoffmann <>

3a019b6e 12/06/2010 01:51 pm Wen Congyang

correct migrate_set_speed's args_type

The args_type of migrate_set_speed in qmp-commands.hx is wrong.
When we set migrate speed by json, qemu will be core dumped.

This bug was caused by 07de3e60b05 and hence affects master only.

Signed-off-by: Wen Congyang <>...

0268d97c 11/17/2010 01:52 pm Luiz Capitulino

QMP: Introduce Human Monitor passthrough command

This command allows QMP clients to execute HMP commands.

Please, check the documentation added to the qmp-commands.hx file
for additional details about the interface and its limitations.

Signed-off-by: Luiz Capitulino <>

82a56f0d 10/01/2010 04:20 pm Luiz Capitulino

Monitor: Introduce the qmp-commands.hx file

This file contains a copy of the following information from the
qemu-monitor.hx file:

o QObject handlers entries
o QMP documentation (all SQMP/EQMP sections)

Right now it's only used to generate the QMP docs in QMP/, but...