]> git.proxmox.com Git - mirror_qemu.git/commit - vl.c
qapi: Report support for -device cpu hotplug in query-machines
authorPeter Krempa <pkrempa@redhat.com>
Thu, 23 Jun 2016 21:23:33 +0000 (23:23 +0200)
committerDavid Gibson <david@gibson.dropbear.id.au>
Mon, 27 Jun 2016 03:13:35 +0000 (13:13 +1000)
commit62c9467dfffa62d999b9b9d6ff74e03454faea5f
tree920d75f0df947eccb77e387f6a3025f399d20e35
parentd29f08616936c3c315e08efbac5a769ec43e9119
qapi: Report support for -device cpu hotplug in query-machines

For management apps it's very useful to know whether the selected
machine type supports cpu hotplug via the new -device approach. Using
the presence of 'query-hotpluggable-cpus' alone is not enough as a
witness.

Add a property to 'MachineInfo' called 'hotpluggable-cpus' that will
report the presence of this feature.

Example of output:
    {
        "hotpluggable-cpus": false,
        "name": "mac99",
        "cpu-max": 1
    },
    {
        "hotpluggable-cpus": true,
        "name": "pseries-2.7",
        "is-default": true,
        "cpu-max": 255,
        "alias": "pseries"
    },

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Reviewed-by: Igor Mammedov <imammedo@redhat.com>
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
qapi-schema.json
vl.c