diff mbox series

[PULL,10/12] qmp: permit query-hotpluggable-cpus in preconfig state

Message ID 20180530230528.30166-11-ehabkost@redhat.com
State New
Headers show
Series [PULL,01/12] numa: clarify error message when node index is out of range in -numa dist, ... | expand

Commit Message

Eduardo Habkost May 30, 2018, 11:05 p.m. UTC
From: Igor Mammedov <imammedo@redhat.com>

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 | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/qapi/misc.json b/qapi/misc.json
index bd6d1805ab..b155db2642 100644
--- a/qapi/misc.json
+++ b/qapi/misc.json
@@ -3285,7 +3285,8 @@ 
 #    ]}
 #
 ##
-{ 'command': 'query-hotpluggable-cpus', 'returns': ['HotpluggableCPU'] }
+{ 'command': 'query-hotpluggable-cpus', 'returns': ['HotpluggableCPU'],
+             'allow-preconfig': true }
 
 ##
 # @GuidInfo: