mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-11 15:27:47 +00:00
qemu: Rename qemuBuildShmemBackendStr to qemuBuildShmemBackendChrStr
There will be more backends in the future so let's not complicate it. Signed-off-by: Martin Kletzander <mkletzan@redhat.com>
This commit is contained in:
parent
0f61d7b5f2
commit
a0c99e1a0a
@ -8551,12 +8551,12 @@ qemuBuildShmemDevLegacyStr(virDomainDefPtr def,
|
||||
}
|
||||
|
||||
static char *
|
||||
qemuBuildShmemBackendStr(virLogManagerPtr logManager,
|
||||
virCommandPtr cmd,
|
||||
virQEMUDriverConfigPtr cfg,
|
||||
virDomainDefPtr def,
|
||||
virDomainShmemDefPtr shmem,
|
||||
virQEMUCapsPtr qemuCaps)
|
||||
qemuBuildShmemBackendChrStr(virLogManagerPtr logManager,
|
||||
virCommandPtr cmd,
|
||||
virQEMUDriverConfigPtr cfg,
|
||||
virDomainDefPtr def,
|
||||
virDomainShmemDefPtr shmem,
|
||||
virQEMUCapsPtr qemuCaps)
|
||||
{
|
||||
char *devstr = NULL;
|
||||
|
||||
@ -8612,8 +8612,8 @@ qemuBuildShmemCommandLine(virLogManagerPtr logManager,
|
||||
VIR_FREE(devstr);
|
||||
|
||||
if (shmem->server.enabled) {
|
||||
if (!(devstr = qemuBuildShmemBackendStr(logManager, cmd, cfg, def,
|
||||
shmem, qemuCaps)))
|
||||
if (!(devstr = qemuBuildShmemBackendChrStr(logManager, cmd, cfg, def,
|
||||
shmem, qemuCaps)))
|
||||
return -1;
|
||||
|
||||
virCommandAddArgList(cmd, "-chardev", devstr, NULL);
|
||||
|
Loading…
Reference in New Issue
Block a user