forked from rpms/libvirt
6a12fe27ae
- qemu_process: Document qemuProcessPrepare{Domain,Host}() order (rhbz#2150760) - qemu_extdevice: Init paths in qemuExtDevicesPrepareDomain() (rhbz#2150760) - qemu_extdevice: Expose qemuExtDevicesInitPaths() (rhbz#2150760) - qemu: Init ext devices paths on reconnect (rhbz#2150760) Resolves: rhbz#2150760
56 lines
2.0 KiB
Diff
56 lines
2.0 KiB
Diff
From 32fd470a01fc0e9890a2c5e5a347322254c90b0d Mon Sep 17 00:00:00 2001
|
|
Message-Id: <32fd470a01fc0e9890a2c5e5a347322254c90b0d@dist-git>
|
|
From: Michal Privoznik <mprivozn@redhat.com>
|
|
Date: Mon, 5 Dec 2022 13:08:25 +0100
|
|
Subject: [PATCH] qemu_extdevice: Expose qemuExtDevicesInitPaths()
|
|
MIME-Version: 1.0
|
|
Content-Type: text/plain; charset=UTF-8
|
|
Content-Transfer-Encoding: 8bit
|
|
|
|
This function is going to be called outside of qemu_extdevice.c.
|
|
Expose it to the rest of the driver.
|
|
|
|
Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
|
|
Reviewed-by: Ján Tomko <jtomko@redhat.com>
|
|
(cherry picked from commit 3458c3ff8c2c5fa071243b85aa5f3d48b31b1b28)
|
|
|
|
https://bugzilla.redhat.com/show_bug.cgi?id=2150760
|
|
Signed-off-by: Jiri Denemark <jdenemar@redhat.com>
|
|
---
|
|
src/qemu/qemu_extdevice.c | 2 +-
|
|
src/qemu/qemu_extdevice.h | 5 +++++
|
|
2 files changed, 6 insertions(+), 1 deletion(-)
|
|
|
|
diff --git a/src/qemu/qemu_extdevice.c b/src/qemu/qemu_extdevice.c
|
|
index 34454891f6..d5c3e8ed71 100644
|
|
--- a/src/qemu/qemu_extdevice.c
|
|
+++ b/src/qemu/qemu_extdevice.c
|
|
@@ -64,7 +64,7 @@ qemuExtDeviceLogCommand(virQEMUDriver *driver,
|
|
* stored and we can remove directories and files in case of domain XML
|
|
* changes.
|
|
*/
|
|
-static int
|
|
+int
|
|
qemuExtDevicesInitPaths(virQEMUDriver *driver,
|
|
virDomainDef *def)
|
|
{
|
|
diff --git a/src/qemu/qemu_extdevice.h b/src/qemu/qemu_extdevice.h
|
|
index 86e7133a2a..d4ac9f395c 100644
|
|
--- a/src/qemu/qemu_extdevice.h
|
|
+++ b/src/qemu/qemu_extdevice.h
|
|
@@ -30,6 +30,11 @@ int qemuExtDeviceLogCommand(virQEMUDriver *driver,
|
|
ATTRIBUTE_NONNULL(1) ATTRIBUTE_NONNULL(2) ATTRIBUTE_NONNULL(3) ATTRIBUTE_NONNULL(4)
|
|
G_GNUC_WARN_UNUSED_RESULT;
|
|
|
|
+int
|
|
+qemuExtDevicesInitPaths(virQEMUDriver *driver,
|
|
+ virDomainDef *def)
|
|
+ ATTRIBUTE_NONNULL(1) ATTRIBUTE_NONNULL(2) G_GNUC_WARN_UNUSED_RESULT;
|
|
+
|
|
int qemuExtDevicesPrepareDomain(virQEMUDriver *driver,
|
|
virDomainObj *vm)
|
|
ATTRIBUTE_NONNULL(1) ATTRIBUTE_NONNULL(2)
|
|
--
|
|
2.38.1
|
|
|