diff options
author | Luiz Capitulino <lcapitulino@redhat.com> | 2010-02-04 18:10:04 -0200 |
---|---|---|
committer | Anthony Liguori <aliguori@us.ibm.com> | 2010-02-10 12:46:05 -0600 |
commit | ca9567e23454ca94e3911710da4e953ad049b40f (patch) | |
tree | ba992b0a1c9ca87f2916b77ca7cda2078c6a4b70 /QMP/README | |
parent | 4ab4183d766f10f9fc35cd9ef4acee39f241986f (diff) | |
download | qemu-ca9567e23454ca94e3911710da4e953ad049b40f.zip qemu-ca9567e23454ca94e3911710da4e953ad049b40f.tar.gz qemu-ca9567e23454ca94e3911710da4e953ad049b40f.tar.bz2 |
QMP: Add QEMU's version to the greeting message
With capability negotiation support clients will only have a chance
to check QEMU's version (ie. issue 'query-version') after the
negotiation procedure is done.
It might be useful to clients to check QEMU's version before
negotiating features, though.
To allow that, this commit adds the QEMU's version object to the
greeting message.
Not really sure this is needed, but doesn't hurt anyway.
Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'QMP/README')
-rw-r--r-- | QMP/README | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -52,9 +52,11 @@ $ telnet localhost 4444 Trying 127.0.0.1... Connected to localhost. Escape character is '^]'. -{"QMP": {"capabilities": []}} +{"QMP": {"version": {"qemu": "0.12.50", "package": ""}, "capabilities": []}} +{ "execute": "qmp_capabilities" } +{"return": {}} { "execute": "query-version" } -{"return": {"qemu": "0.11.50", "package": ""}} +{"return": {"qemu": "0.12.50", "package": ""}} Contact ------- |