diff options
author | Markus Armbruster <armbru@redhat.com> | 2024-02-03 09:02:27 +0100 |
---|---|---|
committer | Markus Armbruster <armbru@redhat.com> | 2024-02-14 07:45:08 +0100 |
commit | 563799f6c08ac17607348bc82fade15c0d13b7e4 (patch) | |
tree | 7f5035c1797cffaca2073233c627502d3668adb3 /scripts/qapi/parser.py | |
parent | f396da77ca59cc67fedb54fe4ea22fbb961270d3 (diff) | |
download | qemu-563799f6c08ac17607348bc82fade15c0d13b7e4.zip qemu-563799f6c08ac17607348bc82fade15c0d13b7e4.tar.gz qemu-563799f6c08ac17607348bc82fade15c0d13b7e4.tar.bz2 |
qapi/char: Make backend types properly conditional
Character backends are actually QOM types. When a backend's
compile-time conditional QOM type is not compiled in, creation fails
with "'FOO' is not a valid char driver name". Okay, except
introspecting chardev-add with query-qmp-schema doesn't work then: the
backend type is there even though the QOM type isn't.
A management application can work around this issue by using
qom-list-types instead.
Fix the issue anyway: add the conditionals to the QAPI schema.
Signed-off-by: Markus Armbruster <armbru@redhat.com>
Message-ID: <20240203080228.2766159-4-armbru@redhat.com>
Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Diffstat (limited to 'scripts/qapi/parser.py')
0 files changed, 0 insertions, 0 deletions