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...
spice: connection events.
This patch adds support for connection events to spice. The events arequite simliar to the vnc events. Unlike vnc spice uses multiple tcpchannels though. qemu will report every single tcp connection (akaspice channel). If you want track spice sessions only you can filter...
QMP/qmp-shell: Introduce HMP mode
In which qmp-shell will exclusively use the HMP passthrough feature,this is useful for testing.
Example:
(QEMU) info network...
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: Revamp the qmp-shell script
This commit updates the qmp-shell script to use the new interfaceintroduced by the last commit.
Additionally, the following fixes/features are also introduced:
o TCP sockets support o Update/add documentation o Simple command-line completion...
QMP: Drop vm-info example script
It's broken and not really useful, let's just drop it.
Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com>
Trivial fix for QMP/qmp-events.txt
Fix example of STOP event that was just copy-and-pasted.
Signed-off-by: Hidetoshi Seto <seto.hidetoshi@jp.fujitsu.com>Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com>
QMP/README: Update QMP homepage address
Monitor: Introduce the qmp-commands.hx file
This file contains a copy of the following information from theqemu-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...
QMP: Update README file
A number of changes I prefer to do in one shot:
- Fix example- Small clarifications- Add multiple monitors example- Add 'Development Process' section
Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com>Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
QMP: Teach basic capability negotiation to python example
As sending "qmp_capabilities" on session start became mandatory, bothpython examples were broken.
Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com>
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.
monitor/QMP: Drop info hpet / query-hpet
This command was of minimal use before, now it is useless as the hpetbecome a qdev device and is thus easily discoverable. We shoulddefinitely not set query-hpet in QMP's stone, and there is also no goodreason to keep it for the interactive monitor....
QMP: Introduce commands documentation
One of the most important missing feature in QMP today is itssupported commands documentation.
The plan is to make it part of self-description support, howeverself-description is a big task we have been postponing for a...
QMP: Add "Downstream extension of QMP" to spec
Signed-off-by: Markus Armbruster <armbru@redhat.com>
QMP: Introduce RESUME event
It's emitted when the Virtual Machine resumes execution.
We currently have the STOP event but don't have the matchingRESUME one, this means that clients are notified when the VMis stopped but don't get anything when it resumes....
QMP: Improve RTC_CHANGE event description
Some people might think that this event is emitted whenever thetime changes, be more specific.
QMP: Introduce WATCHDOG event
It's emitted whenever the watchdog device's timer expires. The actiontaken is provided in the 'data' member.
QMP: Introduce RTC_CHANGE event
Emitted whenever the RTC time changes.
QMP: Drop DEBUG event
This event has been introduced in the first round of QMP commits,turns out that it's based on the usage of the EXCP_DEBUG macro,which has discussable semantics when exposed through QMP.
As libvirt doesn't use this, let's just drop it....
QMP: Revamp the qmp-events.txt file
Now we can say it's useful, the following changes have been made:
- Put events in alphabetical order- Add examples to all events- Document all 'data' members- Small corrections and cleanups
Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com>...
QMP: Add QEMU's version to the greeting message
With capability negotiation support clients will only have a chanceto check QEMU's version (ie. issue 'query-version') after thenegotiation procedure is done.
It might be useful to clients to check QEMU's version before...
QMP: spec: Capability negotiation updates
QMP: BLOCK_IO_ERROR event handling
This commit adds the basic definitions for the BLOCK_IO_ERRORevent, but actual event emission will be introduced by thenext commits.
QMP: Introduce VNC_INITIALIZED event
It's emitted when a VNC client session is activated by QEMU,client's information such as port, IP and auth ID (if thesession is authenticated) are provided.
Event example:
{ "event": "VNC_INITIALIZED", "timestamp": {"seconds": 1263475302, "microseconds": 150772},...
QMP: Introduce VNC_CONNECTED event
It's emitted when a VNC client connects to QEMU, client's informationsuch as port and IP address are provided.
Note that this event is emitted right when the connection isestablished. This means that it happens before authentication...
QMP: Introduce VNC_DISCONNECTED event
It's emitted when a VNC client disconnects from QEMU, client'sinformation such as port and IP address are provided.
{ "event": "VNC_DISCONNECTED", "timestamp": { "seconds": 1262976601, "microseconds": 975795 },...
QMP: Update spec file
- Remove "draft" status- Change default success response to be json-object- Change error and event data member to be a json-object- Update examples- Add new section "Compatibility Considerations" - Other fixes and clarifications...
- Fix output description- Fix command-line usage notes- Minor improvements
QMP: add human-readable description to error response
Signed-off-by: Markus Armbruster <armbru@redhat.com>Signed-off-by: Anthony Liguori <aliguori@us.ibm.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:...
QMP: Introduce vm-info
A Python script which uses qmp.py to print some simple VM info.
QMP: Introduce README file
QMP: Introduce specification
QMP: Introduce qmp-events.txt