qemu-option: support accept-any QemuOptsList in qemu_opts_absorb_qdict
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
This commit is contained in:
parent
d3e6dd2fe7
commit
941a4736d2
@ -1056,7 +1056,8 @@ bool qemu_opts_absorb_qdict(QemuOpts *opts, QDict *qdict, Error **errp)
|
|||||||
while (entry != NULL) {
|
while (entry != NULL) {
|
||||||
next = qdict_next(qdict, entry);
|
next = qdict_next(qdict, entry);
|
||||||
|
|
||||||
if (find_desc_by_name(opts->list->desc, entry->key)) {
|
if (opts_accepts_any(opts->list) ||
|
||||||
|
find_desc_by_name(opts->list->desc, entry->key)) {
|
||||||
if (!qemu_opts_from_qdict_entry(opts, entry, errp)) {
|
if (!qemu_opts_from_qdict_entry(opts, entry, errp)) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user