• Igor Mammedov's avatar
    QMP: Add query-hotpluggable-cpus · d4633541
    Igor Mammedov authored
    It will allow mgmt to query present and hotpluggable CPU objects,
    it is required from a target platform that wishes to support command
    to implement and set MachineClass.query_hotpluggable_cpus callback,
    which will return a list of possible CPU objects with options that
    would be needed for hotplugging possible CPU objects.
    There are:
    'type': 'str' - QOM CPU object type for usage with device_add
    'vcpus-count': 'int' - number of logical VCPU threads per
                            CPU object (mgmt needs to know)
    and a set of optional fields that are to used for hotplugging a CPU
    objects and would allows mgmt tools to know what/where it could be
    For present CPUs there is a 'qom-path' field which would allow mgmt to
    inspect whatever object/abstraction the target platform considers
    as CPU object.
    Signed-off-by: 's avatarIgor Mammedov <imammedo@redhat.com>
    Signed-off-by: 's avatarBharata B Rao <bharata@linux.vnet.ibm.com>
    Reviewed-by: 's avatarDavid Gibson <david@gibson.dropbear.id.au>
    Signed-off-by: 's avatarDavid Gibson <david@gibson.dropbear.id.au>
monitor.c 114 KB