112fb09f1a
- Fix uninitialized variable in ipxe driver code (boo#1181922) ath5k-Add-missing-AR5K_EEPROM_READ-in-at.patch - Add a few improvements to the git-based package workflow scripts - Include additional upstream patches designated as stable material and reviewed for applicability to include here blockjob-Fix-crash-with-IOthread-when-bl.patch monitor-Fix-assertion-failure-on-shutdow.patch qemu-nbd-Use-SOMAXCONN-for-socket-listen.patch qemu-storage-daemon-Enable-object-add.patch OBS-URL: https://build.opensuse.org/request/show/873002 OBS-URL: https://build.opensuse.org/package/show/Virtualization/qemu?expand=0&rev=617
37 lines
1.5 KiB
Diff
37 lines
1.5 KiB
Diff
From: Kevin Wolf <kwolf@redhat.com>
|
|
Date: Thu, 4 Feb 2021 08:21:37 +0100
|
|
Subject: qemu-storage-daemon: Enable object-add
|
|
MIME-Version: 1.0
|
|
Content-Type: text/plain; charset=UTF-8
|
|
Content-Transfer-Encoding: 8bit
|
|
|
|
Git-commit: 15d40e9204eb3d89577187f117a1dde2237bdc4d
|
|
|
|
As we don't have a fully QAPIfied version of object-add yet and it still
|
|
has 'gen': false in the schema, it needs to be registered explicitly in
|
|
init_qmp_commands() to be available for users.
|
|
|
|
Fixes: 2af282ec51a27116d0402cab237b8970800f870c
|
|
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
|
|
Message-Id: <20210204072137.19663-1-kwolf@redhat.com>
|
|
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
|
|
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
|
|
Signed-off-by: Bruce Rogers <brogers@suse.com>
|
|
---
|
|
storage-daemon/qemu-storage-daemon.c | 2 ++
|
|
1 file changed, 2 insertions(+)
|
|
|
|
diff --git a/storage-daemon/qemu-storage-daemon.c b/storage-daemon/qemu-storage-daemon.c
|
|
index 7c914b0dc1f851d6b6e72afd296c..65ccdb17c1a9fcb825dabaf38bb7 100644
|
|
--- a/storage-daemon/qemu-storage-daemon.c
|
|
+++ b/storage-daemon/qemu-storage-daemon.c
|
|
@@ -144,6 +144,8 @@ static void init_qmp_commands(void)
|
|
qmp_init_marshal(&qmp_commands);
|
|
qmp_register_command(&qmp_commands, "query-qmp-schema",
|
|
qmp_query_qmp_schema, QCO_ALLOW_PRECONFIG);
|
|
+ qmp_register_command(&qmp_commands, "object-add", qmp_object_add,
|
|
+ QCO_NO_OPTIONS);
|
|
|
|
QTAILQ_INIT(&qmp_cap_negotiation_commands);
|
|
qmp_register_command(&qmp_cap_negotiation_commands, "qmp_capabilities",
|