qemu-config: restore "machine" in qmp_query_command_line_options()
commit40e07370f21f12f020c1eb8a8d8c5321774e488a
authorStefan Hajnoczi <stefanha@redhat.com>
Wed, 21 Jul 2021 15:10:55 +0000 (21 16:10 +0100)
committerPaolo Bonzini <pbonzini@redhat.com>
Thu, 22 Jul 2021 12:44:47 +0000 (22 14:44 +0200)
tree74b6826846c363cebb1d59f2fb1acc107f0fb1a9
parent670b35919301213e45ef42ed689f6ea67004d714
qemu-config: restore "machine" in qmp_query_command_line_options()

Commit d8fb7d0969d5c32b3d1b9e20b63ec6c0abe80be4 ("vl: switch -M parsing
to keyval") stopped adding the "machine" QemuOptsList. This causes
"machine" options to not show up in QMP query-command-line-options
output. For example, libvirt cannot detect that kernel_irqchip support
is available.

Adjust the "machine" opts enumeration in
qmp_query_command_line_options() so that options are properly reported.

Fixes: d8fb7d0969d5 ("vl: switch -M parsing to keyval")
Cc: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Message-Id: <20210721151055.424580-1-stefanha@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
util/qemu-config.c