diff options
author | Paolo Bonzini <pbonzini@redhat.com> | 2020-11-09 10:13:30 -0500 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2021-05-26 14:49:45 +0200 |
commit | 6ba7ada3559ed464c06cea7efa4c66f8f2ccbf5b (patch) | |
tree | 41d9948ce3a8aae2a23bbcc6955eb21f9dc9df93 /softmmu/vl.c | |
parent | 9e33013bd494b43c81a2730b9f5cba2b5743343b (diff) | |
download | qemu-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 'softmmu/vl.c')
-rw-r--r-- | softmmu/vl.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/softmmu/vl.c b/softmmu/vl.c index 93e7846..11ac375 100644 --- a/softmmu/vl.c +++ b/softmmu/vl.c @@ -1758,8 +1758,9 @@ static bool object_create_early(const char *type) * add one, state the reason in a comment! */ - /* Reason: rng-egd property "chardev" */ - if (g_str_equal(type, "rng-egd")) { + /* Reason: property "chardev" */ + if (g_str_equal(type, "rng-egd") || + g_str_equal(type, "qtest")) { return false; } |