summaryrefslogtreecommitdiff
path: root/qapi/qom.json
diff options
context:
space:
mode:
authorPaolo Bonzini <pbonzini@redhat.com>2020-11-03 04:39:02 -0500
committerPaolo Bonzini <pbonzini@redhat.com>2021-05-26 14:49:45 +0200
commit9e33013bd494b43c81a2730b9f5cba2b5743343b (patch)
tree78fd352b02dd09a4f99f5d40566c8e53ec33c33b /qapi/qom.json
parentc1826ea6a052084f2e6a0bae9dd5932a727df039 (diff)
object: add more commands to preconfig mode
Creating and destroying QOM objects does not require a fully constructed machine. Allow running object-add and object-del before machine initialization has concluded. Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'qapi/qom.json')
-rw-r--r--qapi/qom.json6
1 files changed, 4 insertions, 2 deletions
diff --git a/qapi/qom.json b/qapi/qom.json
index 40d70c434a..4f48035831 100644
--- a/qapi/qom.json
+++ b/qapi/qom.json
@@ -857,7 +857,8 @@
# <- { "return": {} }
#
##
-{ 'command': 'object-add', 'data': 'ObjectOptions', 'boxed': true }
+{ 'command': 'object-add', 'data': 'ObjectOptions', 'boxed': true,
+ 'allow-preconfig': true }
##
# @object-del:
@@ -877,4 +878,5 @@
# <- { "return": {} }
#
##
-{ 'command': 'object-del', 'data': {'id': 'str'} }
+{ 'command': 'object-del', 'data': {'id': 'str'},
+ 'allow-preconfig': true }