mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-22 12:35:17 +00:00
qemu_command: Rename qemuBuildNumaArgStr()
The function doesn't just build the argument for -numa. Since the -numa can be repeated multiple times, it also puts -numa onto the cmd line. Also, the rest of the functions has 'Command' infix. Signed-off-by: Michal Privoznik <mprivozn@redhat.com> Reviewed-by: Daniel Henrique Barboza <danielhb413@gmail.com>
This commit is contained in:
parent
68c5b0183c
commit
8ba1792785
@ -7123,10 +7123,10 @@ qemuBuildIOThreadCommandLine(virCommandPtr cmd,
|
||||
|
||||
|
||||
static int
|
||||
qemuBuildNumaArgStr(virQEMUDriverConfigPtr cfg,
|
||||
virDomainDefPtr def,
|
||||
virCommandPtr cmd,
|
||||
qemuDomainObjPrivatePtr priv)
|
||||
qemuBuildNumaCommandLine(virQEMUDriverConfigPtr cfg,
|
||||
virDomainDefPtr def,
|
||||
virCommandPtr cmd,
|
||||
qemuDomainObjPrivatePtr priv)
|
||||
{
|
||||
size_t i, j;
|
||||
virQEMUCapsPtr qemuCaps = priv->qemuCaps;
|
||||
@ -9726,7 +9726,7 @@ qemuBuildCommandLine(virQEMUDriverPtr driver,
|
||||
return NULL;
|
||||
|
||||
if (virDomainNumaGetNodeCount(def->numa) &&
|
||||
qemuBuildNumaArgStr(cfg, def, cmd, priv) < 0)
|
||||
qemuBuildNumaCommandLine(cfg, def, cmd, priv) < 0)
|
||||
return NULL;
|
||||
|
||||
if (qemuBuildMemoryDeviceCommandLine(cmd, cfg, def, priv) < 0)
|
||||
|
Loading…
x
Reference in New Issue
Block a user