qapi: report the default CPU type for each machine
commit04109957d47307cdedd19afc3687bd6307466b53
authorDaniel P. Berrangé <berrange@redhat.com>
Thu, 22 Aug 2019 10:04:12 +0000 (22 11:04 +0100)
committerEduardo Habkost <ehabkost@redhat.com>
Tue, 3 Sep 2019 17:39:46 +0000 (3 14:39 -0300)
tree48f966977ad79468f953ea51e54141e62ffb1e73
parentfea374e7c8079563bca7c8fac895c6a880f76adc
qapi: report the default CPU type for each machine

When user doesn't request any explicit CPU model with libvirt or QEMU,
a machine type specific CPU model is picked. Currently there is no way
to determine what this QEMU built-in default is, so libvirt cannot
report this back to the user in the XML config.

This extends the "query-machines" QMP command so that it reports the
default CPU model typename for each machine.

Reviewed-by: Eric Blake <eblake@redhat.com>
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
Message-Id: <20190822100412.23746-1-berrange@redhat.com>
Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
hw/core/machine-qmp-cmds.c
qapi/machine.json