Statistics
| Branch: | Revision:

root / QMP / qmp.py @ 8cfd0495

History | View | Annotate | Download (5.6 kB)

# Date Author Comment
9eb80ead 10/24/2012 11:26 am Paolo Bonzini

qmp: add pull_event function

This function is unlike get_events in that it makes it easy to process
one event at a time. This is useful in the mirroring test cases, where
we want to process just one event (BLOCK_JOB_ERROR) and leave the others
to a helper function....

b3d0380e 10/24/2012 11:26 am Jeff Cody

qmp: fix __accept() in qmp.py

In QEMUMonitorProtocol, commit e9d17b6 removed the __sockfile creation
from __negotiate_capabilities(), which breaks _accept(). This causes
failures in qemu-io python based tests (i.e. tests 030 and 040).

This patch creates the sockfile in __accept() as well....

e9d17b68 09/26/2012 04:45 pm Ryota Ozaki

Make negotiation optional in QEMUMonitorProtocol

This is a preparation for qemu-ga-client which uses
QEMUMonitorProtocol class. The class tries to
negotiate capabilities on connect, however, qemu-ga
doesn't suppose it and fails.

This change makes the negotiation optional, though...

e37b350a 09/26/2012 04:45 pm Ryota Ozaki

Support settimeout in QEMUMonitorProtocol

This method is used in the following qemu-ga-client script
to implement non-blocking operations.

Signed-off-by: Ryota Ozaki <>
Signed-off-by: Luiz Capitulino <>

9f68f7fb 02/22/2012 08:18 pm Anthony Liguori

qmp: make qmp.py easier to use

Signed-off-by: Anthony Liguori <>
Signed-off-by: Michael Roth <>
Signed-off-by: Anthony Liguori <>

91b8eddf 06/01/2011 05:43 pm Stefan Hajnoczi

QMP: add get_events(wait=True) option

The get_events() function polls for new QMP events and then returns. It
can be useful to wait for the next QMP event so add the boolean 'wait'
keyword argument.

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

37628f11 06/01/2011 05:43 pm Stefan Hajnoczi

QMP: add server mode to QEMUMonitorProtocol

QEMU supports socket chardevs that establish connections like a server
or a client. The QEMUMonitorProtocol class only supports connecting as
a client. It is not possible to connect race-free when launching QEMU...

1d00a07d 11/17/2010 01:51 pm Luiz Capitulino

QMP: Revamp the Python class example

This commit simplifies and fixes a number of problems in the Python
QEMUMonitorProtocol example class.

It's almost a rewrite and it DOES BREAK the qmp-shell script (which
is going to be fixed in the next commit).

However, I'm not going to split this in different commits because it...

bbafc7a8 07/01/2010 08:27 pm Jan Kiszka

QMP: Fix python helper /wrt long return strings

Remove the arbitrary limitation of 1024 characters per return string and
read complete lines instead. Required for device_show.

Signed-off-by: Jan Kiszka <>
Signed-off-by: Luiz Capitulino <>

cedebdac 12/03/2009 05:41 pm Luiz Capitulino

QMP: Introduce qmp-shell

This is a very simple shell written in Python for demonstration
purposes.

Unfortunately it's a bit awkward right now, as the user has
to specify the arguments names and the printed data can be
a raw dictionary or list, like the following example:...