qapi: add 'query-target' command to return target arch
authorDaniel P. Berrange <berrange@redhat.com>
Mon, 20 Aug 2012 14:31:38 +0000 (15:31 +0100)
committerAnthony Liguori <aliguori@us.ibm.com>
Wed, 22 Aug 2012 15:47:17 +0000 (10:47 -0500)
commit99afc91d6ccdbe45258cff66fd0ce0142820c366
tree43ed327cc24a401174b977859c8a62e0a7f5540d
parent67c332fd12326a6ef572f07b9d71370ada6a287f
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>
arch_init.c
configure
qapi-schema.json
qmp-commands.hx