diff options
author | Daniel P. Berrange <berrange@redhat.com> | 2012-08-20 15:31:38 +0100 |
---|---|---|
committer | Anthony Liguori <aliguori@us.ibm.com> | 2012-08-22 10:47:17 -0500 |
commit | 99afc91d6ccdbe45258cff66fd0ce0142820c366 (patch) | |
tree | 43ed327cc24a401174b977859c8a62e0a7f5540d /qmp-commands.hx | |
parent | 67c332fd12326a6ef572f07b9d71370ada6a287f (diff) | |
download | qemu-99afc91d6ccdbe45258cff66fd0ce0142820c366.zip qemu-99afc91d6ccdbe45258cff66fd0ce0142820c366.tar.gz qemu-99afc91d6ccdbe45258cff66fd0ce0142820c366.tar.bz2 |
qapi: add 'query-target' command to return target arch
Add a 'query-target' QAPI command to allow management applications
to determine what target architecture a QEMU binary is emulating
without having to parse the binary name or -help output
$ qmp-shell -p /tmp/qemu
(QEMU) query-target
{ u'return': { u'arch': u'x86_64' }}
Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'qmp-commands.hx')
-rw-r--r-- | qmp-commands.hx | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/qmp-commands.hx b/qmp-commands.hx index 2ce4ce6..00d798f 100644 --- a/qmp-commands.hx +++ b/qmp-commands.hx @@ -2509,3 +2509,8 @@ EQMP .mhandler.cmd_new = qmp_marshal_input_query_cpu_definitions, }, + { + .name = "query-target", + .args_type = "", + .mhandler.cmd_new = qmp_marshal_input_query_target, + }, |