]> xenbits.xensource.com Git - qemu-xen.git/commitdiff
qmp: permit query-hotpluggable-cpus in preconfig state
authorIgor Mammedov <imammedo@redhat.com>
Fri, 4 May 2018 08:37:47 +0000 (10:37 +0200)
committerEduardo Habkost <ehabkost@redhat.com>
Wed, 30 May 2018 16:19:14 +0000 (13:19 -0300)
it will allow mgmt to query possible CPUs, which depends on
used machine(version)/-smp options, without restarting
QEMU and use results to configure numa mapping or adding
CPUs with device_add* later.

PS:
*) device_add is not allowed to run at preconfig in this series
   but later it could be dealt with by injecting -device
   in preconfig state and letting existing -device handling
   to actually plug devices

Signed-off-by: Igor Mammedov <imammedo@redhat.com>
Message-Id: <1525423069-61903-10-git-send-email-imammedo@redhat.com>
Reviewed-by: Eduardo Habkost <ehabkost@redhat.com>
Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
qapi/misc.json

index bd6d1805abef721415c6814bbfb276318b731e9c..b155db2642297bd18511ff670b8d12ab5565abad 100644 (file)
 #    ]}
 #
 ##
-{ 'command': 'query-hotpluggable-cpus', 'returns': ['HotpluggableCPU'] }
+{ 'command': 'query-hotpluggable-cpus', 'returns': ['HotpluggableCPU'],
+             'allow-preconfig': true }
 
 ##
 # @GuidInfo: