50 lines
2.0 KiB
Diff
50 lines
2.0 KiB
Diff
|
From 6707057bc09cef526579bddb54ef7d4c3a7883ad Mon Sep 17 00:00:00 2001
|
||
|
From: Kevin Wolf <kwolf@redhat.com>
|
||
|
Date: Tue, 16 Feb 2021 16:19:42 -0500
|
||
|
Subject: [PATCH 16/54] qemu-storage-daemon: Enable object-add
|
||
|
MIME-Version: 1.0
|
||
|
Content-Type: text/plain; charset=UTF-8
|
||
|
Content-Transfer-Encoding: 8bit
|
||
|
|
||
|
RH-Author: Kevin Wolf <kwolf@redhat.com>
|
||
|
Message-id: <20210216161943.126728-5-kwolf@redhat.com>
|
||
|
Patchwork-id: 101103
|
||
|
O-Subject: [RHEL-AV-8.4.0 qemu-kvm PATCH 4/5] qemu-storage-daemon: Enable object-add
|
||
|
Bugzilla: 1901323
|
||
|
RH-Acked-by: Sergio Lopez Pascual <slp@redhat.com>
|
||
|
RH-Acked-by: Stefan Hajnoczi <stefanha@redhat.com>
|
||
|
RH-Acked-by: Max Reitz <mreitz@redhat.com>
|
||
|
|
||
|
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>
|
||
|
(cherry picked from commit 15d40e9204eb3d89577187f117a1dde2237bdc4d)
|
||
|
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
|
||
|
Signed-off-by: Danilo C. L. de Paula <ddepaula@redhat.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 d8d172cc60..9021a46b3a 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",
|
||
|
--
|
||
|
2.27.0
|
||
|
|