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