diff options
| author | Paolo Bonzini <pbonzini@redhat.com> | 2020-11-09 03:50:46 -0500 |
|---|---|---|
| committer | Paolo Bonzini <pbonzini@redhat.com> | 2020-12-15 12:52:06 -0500 |
| commit | 45c53fe64c28239b7504d00d76fe37ef31c0eefa (patch) | |
| tree | 01135eec11ca852db636b056141b80c94fb6611a /include/qemu/compiler.h | |
| parent | 924e9b0da90ca1fa0de7c5076768a8a9f3795f8d (diff) | |
| download | focaccia-qemu-45c53fe64c28239b7504d00d76fe37ef31c0eefa.tar.gz focaccia-qemu-45c53fe64c28239b7504d00d76fe37ef31c0eefa.zip | |
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>
Diffstat (limited to 'include/qemu/compiler.h')
0 files changed, 0 insertions, 0 deletions