render / rpms / libvirt

Forked from rpms/libvirt 10 months ago
Clone
a41c76
From 27ae8a1488afd910dccd1f76d1fa31a3c8560d04 Mon Sep 17 00:00:00 2001
a41c76
Message-Id: <27ae8a1488afd910dccd1f76d1fa31a3c8560d04@dist-git>
a41c76
From: =?UTF-8?q?J=C3=A1n=20Tomko?= <jtomko@redhat.com>
a41c76
Date: Wed, 4 Mar 2020 12:42:36 +0100
a41c76
Subject: [PATCH] qemuExtDevicesStart: pass logManager
a41c76
MIME-Version: 1.0
a41c76
Content-Type: text/plain; charset=UTF-8
a41c76
Content-Transfer-Encoding: 8bit
a41c76
a41c76
Pass logManager to qemuExtDevicesStart for future usage.
a41c76
a41c76
Signed-off-by: Ján Tomko <jtomko@redhat.com>
a41c76
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
a41c76
Tested-by: Andrea Bolognani <abologna@redhat.com>
a41c76
(cherry picked from commit b164eac5e1d4ebe17e673f0427b70f862a670f94)
a41c76
Signed-off-by: Ján Tomko <jtomko@redhat.com>
a41c76
https://bugzilla.redhat.com/show_bug.cgi?id=1694166
a41c76
Message-Id: <44ec9897e79f7482dc22611526a154915bb02cdb.1583322090.git.jtomko@redhat.com>
a41c76
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
a41c76
---
a41c76
 src/qemu/qemu_extdevice.c | 1 +
a41c76
 src/qemu/qemu_extdevice.h | 1 +
a41c76
 src/qemu/qemu_process.c   | 4 +++-
a41c76
 3 files changed, 5 insertions(+), 1 deletion(-)
a41c76
a41c76
diff --git a/src/qemu/qemu_extdevice.c b/src/qemu/qemu_extdevice.c
a41c76
index 9c0c0fd573..7f3bb104d9 100644
a41c76
--- a/src/qemu/qemu_extdevice.c
a41c76
+++ b/src/qemu/qemu_extdevice.c
a41c76
@@ -153,6 +153,7 @@ qemuExtDevicesCleanupHost(virQEMUDriverPtr driver,
a41c76
 int
a41c76
 qemuExtDevicesStart(virQEMUDriverPtr driver,
a41c76
                     virDomainObjPtr vm,
a41c76
+                    virLogManagerPtr logManager G_GNUC_UNUSED,
a41c76
                     bool incomingMigration)
a41c76
 {
a41c76
     virDomainDefPtr def = vm->def;
a41c76
diff --git a/src/qemu/qemu_extdevice.h b/src/qemu/qemu_extdevice.h
a41c76
index 5cf777ab4b..df29968e16 100644
a41c76
--- a/src/qemu/qemu_extdevice.h
a41c76
+++ b/src/qemu/qemu_extdevice.h
a41c76
@@ -46,6 +46,7 @@ void qemuExtDevicesCleanupHost(virQEMUDriverPtr driver,
a41c76
 
a41c76
 int qemuExtDevicesStart(virQEMUDriverPtr driver,
a41c76
                         virDomainObjPtr vm,
a41c76
+                        virLogManagerPtr logManager,
a41c76
                         bool incomingMigration)
a41c76
     ATTRIBUTE_NONNULL(1) ATTRIBUTE_NONNULL(2)
a41c76
     G_GNUC_WARN_UNUSED_RESULT;
a41c76
diff --git a/src/qemu/qemu_process.c b/src/qemu/qemu_process.c
a41c76
index a7bbab9e56..0476f18517 100644
a41c76
--- a/src/qemu/qemu_process.c
a41c76
+++ b/src/qemu/qemu_process.c
a41c76
@@ -6705,7 +6705,9 @@ qemuProcessLaunch(virConnectPtr conn,
a41c76
     if (qemuProcessGenID(vm, flags) < 0)
a41c76
         goto cleanup;
a41c76
 
a41c76
-    if (qemuExtDevicesStart(driver, vm, incoming != NULL) < 0)
a41c76
+    if (qemuExtDevicesStart(driver, vm,
a41c76
+                            qemuDomainLogContextGetManager(logCtxt),
a41c76
+                            incoming != NULL) < 0)
a41c76
         goto cleanup;
a41c76
 
a41c76
     VIR_DEBUG("Building emulator command line");
a41c76
-- 
a41c76
2.25.1
a41c76