History | View | Annotate | Download (5.6 kB)
qmp: add pull_event function
This function is unlike get_events in that it makes it easy to processone event at a time. This is useful in the mirroring test cases, wherewe want to process just one event (BLOCK_JOB_ERROR) and leave the othersto a helper function....
qmp: fix __accept() in qmp.py
In QEMUMonitorProtocol, commit e9d17b6 removed the __sockfile creationfrom __negotiate_capabilities(), which breaks _accept(). This causesfailures in qemu-io python based tests (i.e. tests 030 and 040).
This patch creates the sockfile in __accept() as well....
Make negotiation optional in QEMUMonitorProtocol
This is a preparation for qemu-ga-client which usesQEMUMonitorProtocol class. The class tries tonegotiate capabilities on connect, however, qemu-gadoesn't suppose it and fails.
This change makes the negotiation optional, though...
Support settimeout in QEMUMonitorProtocol
This method is used in the following qemu-ga-client scriptto implement non-blocking operations.
Signed-off-by: Ryota Ozaki <ozaki.ryota@gmail.com>Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com>
qmp: make qmp.py easier to use
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
QMP: add get_events(wait=True) option
The get_events() function polls for new QMP events and then returns. Itcan be useful to wait for the next QMP event so add the boolean 'wait'keyword argument.
Signed-off-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>...
QMP: add server mode to QEMUMonitorProtocol
QEMU supports socket chardevs that establish connections like a serveror a client. The QEMUMonitorProtocol class only supports connecting asa client. It is not possible to connect race-free when launching QEMU...
QMP: Revamp the Python class example
This commit simplifies and fixes a number of problems in the PythonQEMUMonitorProtocol example class.
It's almost a rewrite and it DOES BREAK the qmp-shell script (whichis going to be fixed in the next commit).
However, I'm not going to split this in different commits because it...
QMP: Fix python helper /wrt long return strings
Remove the arbitrary limitation of 1024 characters per return string andread complete lines instead. Required for device_show.
Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com>
QMP: Introduce qmp-shell
This is a very simple shell written in Python for demonstrationpurposes.
Unfortunately it's a bit awkward right now, as the user hasto specify the arguments names and the printed data can bea raw dictionary or list, like the following example:...