79b470
From 4fd196d6126cb9daeb771522ad23ecba0e9fd5c9 Mon Sep 17 00:00:00 2001
79b470
Message-Id: <4fd196d6126cb9daeb771522ad23ecba0e9fd5c9@dist-git>
79b470
From: Michal Privoznik <mprivozn@redhat.com>
79b470
Date: Wed, 7 Oct 2020 18:45:35 +0200
79b470
Subject: [PATCH] qemu_command: Rename qemuBuildNumaArgStr()
79b470
MIME-Version: 1.0
79b470
Content-Type: text/plain; charset=UTF-8
79b470
Content-Transfer-Encoding: 8bit
79b470
79b470
The function doesn't just build the argument for -numa. Since the
79b470
-numa can be repeated multiple times, it also puts -numa onto the
79b470
cmd line. Also, the rest of the functions has 'Command' infix.
79b470
79b470
Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
79b470
Reviewed-by: Daniel Henrique Barboza <danielhb413@gmail.com>
79b470
(cherry picked from commit 8ba1792785e17736db866d62b68812a9c7e7ca40)
79b470
79b470
Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1749518
79b470
79b470
Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
79b470
Message-Id: <f5e22c8cfce2a9636303e916d97ce0501376137f.1602087923.git.mprivozn@redhat.com>
79b470
Reviewed-by: Ján Tomko <jtomko@redhat.com>
79b470
---
79b470
 src/qemu/qemu_command.c | 10 +++++-----
79b470
 1 file changed, 5 insertions(+), 5 deletions(-)
79b470
79b470
diff --git a/src/qemu/qemu_command.c b/src/qemu/qemu_command.c
79b470
index ed5f60e82e..8c4f7a015f 100644
79b470
--- a/src/qemu/qemu_command.c
79b470
+++ b/src/qemu/qemu_command.c
79b470
@@ -7363,10 +7363,10 @@ qemuBuildIOThreadCommandLine(virCommandPtr cmd,
79b470
 
79b470
 
79b470
 static int
79b470
-qemuBuildNumaArgStr(virQEMUDriverConfigPtr cfg,
79b470
-                    virDomainDefPtr def,
79b470
-                    virCommandPtr cmd,
79b470
-                    qemuDomainObjPrivatePtr priv)
79b470
+qemuBuildNumaCommandLine(virQEMUDriverConfigPtr cfg,
79b470
+                         virDomainDefPtr def,
79b470
+                         virCommandPtr cmd,
79b470
+                         qemuDomainObjPrivatePtr priv)
79b470
 {
79b470
     size_t i, j;
79b470
     virQEMUCapsPtr qemuCaps = priv->qemuCaps;
79b470
@@ -9930,7 +9930,7 @@ qemuBuildCommandLine(virQEMUDriverPtr driver,
79b470
         return NULL;
79b470
 
79b470
     if (virDomainNumaGetNodeCount(def->numa) &&
79b470
-        qemuBuildNumaArgStr(cfg, def, cmd, priv) < 0)
79b470
+        qemuBuildNumaCommandLine(cfg, def, cmd, priv) < 0)
79b470
         return NULL;
79b470
 
79b470
     if (qemuBuildMemoryDeviceCommandLine(cmd, cfg, def, priv) < 0)
79b470
-- 
79b470
2.29.2
79b470