aboutsummaryrefslogtreecommitdiff
path: root/qapi/qom.json
diff options
context:
space:
mode:
authorPaolo Bonzini <pbonzini@redhat.com>2020-11-09 10:13:30 -0500
committerPaolo Bonzini <pbonzini@redhat.com>2021-05-26 14:49:45 +0200
commit6ba7ada3559ed464c06cea7efa4c66f8f2ccbf5b (patch)
tree41d9948ce3a8aae2a23bbcc6955eb21f9dc9df93 /qapi/qom.json
parent9e33013bd494b43c81a2730b9f5cba2b5743343b (diff)
downloadqemu-6ba7ada3559ed464c06cea7efa4c66f8f2ccbf5b.zip
qemu-6ba7ada3559ed464c06cea7efa4c66f8f2ccbf5b.tar.gz
qemu-6ba7ada3559ed464c06cea7efa4c66f8f2ccbf5b.tar.bz2
qtest: add a QOM object for qtest
The qtest server right now can only be created using the -qtest and -qtest-log options. Allow an alternative way to create it using "-object qtest,chardev=...,log=...". This is part of the long term plan to make more (or all) of QEMU configurable through QMP and preconfig mode. Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'qapi/qom.json')
-rw-r--r--qapi/qom.json17
1 files changed, 17 insertions, 0 deletions
diff --git a/qapi/qom.json b/qapi/qom.json
index 4f48035..f7ef30f 100644
--- a/qapi/qom.json
+++ b/qapi/qom.json
@@ -645,6 +645,21 @@
'data': { 'path': 'str' } }
##
+# @QtestProperties:
+#
+# Properties for qtest objects.
+#
+# @chardev: the chardev to be used to receive qtest commands on.
+#
+# @log: the path to a log file
+#
+# Since: 6.0
+##
+{ 'struct': 'QtestProperties',
+ 'data': { 'chardev': 'str',
+ '*log': 'str' } }
+
+##
# @RemoteObjectProperties:
#
# Properties for x-remote-object objects.
@@ -769,6 +784,7 @@
'memory-backend-ram',
'pef-guest',
'pr-manager-helper',
+ 'qtest',
'rng-builtin',
'rng-egd',
'rng-random',
@@ -825,6 +841,7 @@
'if': 'defined(CONFIG_LINUX)' },
'memory-backend-ram': 'MemoryBackendProperties',
'pr-manager-helper': 'PrManagerHelperProperties',
+ 'qtest': 'QtestProperties',
'rng-builtin': 'RngProperties',
'rng-egd': 'RngEgdProperties',
'rng-random': 'RngRandomProperties',