add another patch to fix configuration files
This commit is contained in:
parent
610d93e5b9
commit
169bee2e2a
@ -0,0 +1,28 @@
|
||||
From 941a4736d2b465be1d6429415f8b1f26e2167585 Mon Sep 17 00:00:00 2001
|
||||
From: Paolo Bonzini <pbonzini@redhat.com>
|
||||
Date: Wed, 11 Nov 2020 08:42:27 -0500
|
||||
Subject: [PATCH] qemu-option: support accept-any QemuOptsList in
|
||||
qemu_opts_absorb_qdict
|
||||
|
||||
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
|
||||
---
|
||||
util/qemu-option.c | 3 ++-
|
||||
1 file changed, 2 insertions(+), 1 deletion(-)
|
||||
|
||||
diff --git a/util/qemu-option.c b/util/qemu-option.c
|
||||
index 9678d5b682..4944015a25 100644
|
||||
--- a/util/qemu-option.c
|
||||
+++ b/util/qemu-option.c
|
||||
@@ -1056,7 +1056,8 @@ bool qemu_opts_absorb_qdict(QemuOpts *opts, QDict *qdict, Error **errp)
|
||||
while (entry != NULL) {
|
||||
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)) {
|
||||
return false;
|
||||
}
|
||||
--
|
||||
2.31.1
|
||||
|
@ -246,7 +246,7 @@
|
||||
Summary: QEMU is a FAST! processor emulator
|
||||
Name: qemu
|
||||
Version: 6.0.0
|
||||
Release: 2%{?rcrel}%{?dist}
|
||||
Release: 3%{?rcrel}%{?dist}
|
||||
Epoch: 2
|
||||
License: GPLv2 and BSD and MIT and CC-BY
|
||||
URL: http://www.qemu.org/
|
||||
@ -270,7 +270,7 @@ Patch0002: 0002-qemu-config-load-modules-when-instantiating-option-g.patch
|
||||
Patch0003: 0003-qemu-config-parse-configuration-files-to-a-QDict.patch
|
||||
Patch0004: 0004-vl-plumb-keyval-based-options-into-readconfig.patch
|
||||
Patch0005: 0005-vl-plug-object-back-into-readconfig.patch
|
||||
|
||||
Patch0006: 0006-qemu-option-support-accept-any-QemuOptsList-in-qemu_.patch
|
||||
|
||||
BuildRequires: make
|
||||
BuildRequires: meson
|
||||
@ -1887,7 +1887,10 @@ getent passwd qemu >/dev/null || \
|
||||
|
||||
|
||||
%changelog
|
||||
* Wed May 19 2021 Cole Robinson <crobinso@redhat.com> - 2:6.0.0-2
|
||||
* Wed May 19 2021 Paolo Bonzini <pbonzini@redhat.com> - 2:6.0.0-3
|
||||
- add another patch to fix configuration files
|
||||
|
||||
* Wed May 19 2021 Paolo Bonzini <pbonzini@redhat.com> - 2:6.0.0-2
|
||||
- fix spice option from configuration file
|
||||
- fix object option from configuration file
|
||||
- allow not specifying size in -m when using -M memory-backend
|
||||
|
Loading…
Reference in New Issue
Block a user