qemu-option: pass QemuOptsList to opts_accepts_any
commit45c53fe64c28239b7504d00d76fe37ef31c0eefa
authorPaolo Bonzini <pbonzini@redhat.com>
Mon, 9 Nov 2020 08:50:46 +0000 (9 03:50 -0500)
committerPaolo Bonzini <pbonzini@redhat.com>
Tue, 15 Dec 2020 17:52:06 +0000 (15 12:52 -0500)
tree01135eec11ca852db636b056141b80c94fb6611a
parent924e9b0da90ca1fa0de7c5076768a8a9f3795f8d
qemu-option: pass QemuOptsList to opts_accepts_any

A QemuOptsList can be of one of two kinds: either it is pre-validated, or
it accepts any key and validation happens somewhere else (typically in
a Visitor or against a list of QOM properties).  opts_accepts_any
returns true if a QemuOpts instance was created from a QemuOptsList of
the latter kind, but there is no function to do the check on a QemuOptsList.

Since this property comes from the QemuOptsList and almost all callers of
opts_accepts_any use opts->list anyway, modify the function to accept
QemuOptsList.

Reviewed-by: Markus Armbruster <armbru@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
util/qemu-option.c