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