982648
From 8a029bcd0227b8c9829858254f9129a9406a167f Mon Sep 17 00:00:00 2001
982648
Message-Id: <8a029bcd0227b8c9829858254f9129a9406a167f@dist-git>
982648
From: =?UTF-8?q?Daniel=20P=2E=20Berrang=C3=A9?= <berrange@redhat.com>
982648
Date: Fri, 6 Jul 2018 15:46:59 +0100
982648
Subject: [PATCH] qemu: remove chardevStdioLogd param from vhostuser code path
982648
MIME-Version: 1.0
982648
Content-Type: text/plain; charset=UTF-8
982648
Content-Transfer-Encoding: 8bit
982648
982648
https://bugzilla.redhat.com/show_bug.cgi?id=1597940
982648
982648
The vhostuser network backend is only supported with the UNIX domain
982648
socket chardev backend, so passing around chardevStdioLogd is not
982648
required.
982648
982648
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
982648
(cherry picked from commit 4c76266baca407ae4981a180aed45193e50a8ade)
982648
Reviewed-by: Jiri Denemark <jdenemar@redhat.com>
982648
---
982648
 src/qemu/qemu_command.c | 20 +++++++-------------
982648
 1 file changed, 7 insertions(+), 13 deletions(-)
982648
982648
diff --git a/src/qemu/qemu_command.c b/src/qemu/qemu_command.c
982648
index 4120e4f983..41050bfea3 100644
982648
--- a/src/qemu/qemu_command.c
982648
+++ b/src/qemu/qemu_command.c
982648
@@ -8223,8 +8223,7 @@ qemuBuildVhostuserCommandLine(virQEMUDriverPtr driver,
982648
                               virDomainDefPtr def,
982648
                               virDomainNetDefPtr net,
982648
                               virQEMUCapsPtr qemuCaps,
982648
-                              unsigned int bootindex,
982648
-                              bool chardevStdioLogd)
982648
+                              unsigned int bootindex)
982648
 {
982648
     virQEMUDriverConfigPtr cfg = virQEMUDriverGetConfig(driver);
982648
     char *chardev = NULL;
982648
@@ -8245,7 +8244,7 @@ qemuBuildVhostuserCommandLine(virQEMUDriverPtr driver,
982648
                                                cmd, cfg, def,
982648
                                                net->data.vhostuser,
982648
                                                net->info.alias, qemuCaps, false,
982648
-                                               chardevStdioLogd)))
982648
+                                               false)))
982648
             goto cleanup;
982648
         break;
982648
 
982648
@@ -8319,8 +8318,7 @@ qemuBuildInterfaceCommandLine(virQEMUDriverPtr driver,
982648
                               virNetDevVPortProfileOp vmop,
982648
                               bool standalone,
982648
                               size_t *nnicindexes,
982648
-                              int **nicindexes,
982648
-                              bool chardevStdioLogd)
982648
+                              int **nicindexes)
982648
 {
982648
     int ret = -1;
982648
     char *nic = NULL, *host = NULL;
982648
@@ -8443,8 +8441,7 @@ qemuBuildInterfaceCommandLine(virQEMUDriverPtr driver,
982648
 
982648
     case VIR_DOMAIN_NET_TYPE_VHOSTUSER:
982648
         ret = qemuBuildVhostuserCommandLine(driver, logManager, secManager, cmd, def,
982648
-                                            net, qemuCaps, bootindex,
982648
-                                            chardevStdioLogd);
982648
+                                            net, qemuCaps, bootindex);
982648
         goto cleanup;
982648
         break;
982648
 
982648
@@ -8628,8 +8625,7 @@ qemuBuildNetCommandLine(virQEMUDriverPtr driver,
982648
                         bool standalone,
982648
                         size_t *nnicindexes,
982648
                         int **nicindexes,
982648
-                        unsigned int *bootHostdevNet,
982648
-                        bool chardevStdioLogd)
982648
+                        unsigned int *bootHostdevNet)
982648
 {
982648
     size_t i;
982648
     int last_good_net = -1;
982648
@@ -8656,8 +8652,7 @@ qemuBuildNetCommandLine(virQEMUDriverPtr driver,
982648
             if (qemuBuildInterfaceCommandLine(driver, logManager, secManager, cmd, def, net,
982648
                                               qemuCaps, bootNet, vmop,
982648
                                               standalone, nnicindexes,
982648
-                                              nicindexes,
982648
-                                              chardevStdioLogd) < 0)
982648
+                                              nicindexes) < 0)
982648
                 goto error;
982648
 
982648
             last_good_net = i;
982648
@@ -10318,8 +10313,7 @@ qemuBuildCommandLine(virQEMUDriverPtr driver,
982648
 
982648
     if (qemuBuildNetCommandLine(driver, logManager, secManager, cmd, def,
982648
                                 qemuCaps, vmop, standalone,
982648
-                                nnicindexes, nicindexes, &bootHostdevNet,
982648
-                                chardevStdioLogd) < 0)
982648
+                                nnicindexes, nicindexes, &bootHostdevNet) < 0)
982648
         goto error;
982648
 
982648
     if (qemuBuildSmartcardCommandLine(logManager, secManager, cmd, cfg, def, qemuCaps,
982648
-- 
982648
2.18.0
982648