提交 fcd92242 编写于 作者: P Pavel Hrdina

qemu: propagate chardevStdioLogd to qemuBuildChrChardevStr

Improve the code to decide whether to use virtlogd or not by checking
the same variable that is updated in qemuProcessPrepareDomain().
Signed-off-by: NPavel Hrdina <phrdina@redhat.com>
Reviewed-by: NJohn Ferlan <jferlan@redhat.com>
上级 f9758109
...@@ -5093,7 +5093,8 @@ qemuBuildChrChardevStr(virLogManagerPtr logManager, ...@@ -5093,7 +5093,8 @@ qemuBuildChrChardevStr(virLogManagerPtr logManager,
const virDomainChrSourceDef *dev, const virDomainChrSourceDef *dev,
const char *alias, const char *alias,
virQEMUCapsPtr qemuCaps, virQEMUCapsPtr qemuCaps,
bool nowait) bool nowait,
bool chardevStdioLogd)
{ {
virBuffer buf = VIR_BUFFER_INITIALIZER; virBuffer buf = VIR_BUFFER_INITIALIZER;
bool telnet; bool telnet;
...@@ -5131,8 +5132,8 @@ qemuBuildChrChardevStr(virLogManagerPtr logManager, ...@@ -5131,8 +5132,8 @@ qemuBuildChrChardevStr(virLogManagerPtr logManager,
_("append not supported in this QEMU binary")); _("append not supported in this QEMU binary"));
goto cleanup; goto cleanup;
} }
if (qemuBuildChrChardevFileStr(virQEMUCapsGet(qemuCaps, QEMU_CAPS_CHARDEV_FILE_APPEND) ? if (qemuBuildChrChardevFileStr(chardevStdioLogd ? logManager : NULL,
logManager : NULL, cmd, def, &buf, cmd, def, &buf,
"path", dev->data.file.path, "path", dev->data.file.path,
"append", dev->data.file.append) < 0) "append", dev->data.file.append) < 0)
goto cleanup; goto cleanup;
...@@ -5612,8 +5613,9 @@ qemuBuildMonitorCommandLine(virLogManagerPtr logManager, ...@@ -5612,8 +5613,9 @@ qemuBuildMonitorCommandLine(virLogManagerPtr logManager,
virQEMUDriverConfigPtr cfg, virQEMUDriverConfigPtr cfg,
virDomainDefPtr def, virDomainDefPtr def,
virQEMUCapsPtr qemuCaps, virQEMUCapsPtr qemuCaps,
const virDomainChrSourceDef *monitor_chr, virDomainChrSourceDefPtr monitor_chr,
bool monitor_json) bool monitor_json,
bool chardevStdioLogd)
{ {
char *chrdev; char *chrdev;
...@@ -5625,7 +5627,8 @@ qemuBuildMonitorCommandLine(virLogManagerPtr logManager, ...@@ -5625,7 +5627,8 @@ qemuBuildMonitorCommandLine(virLogManagerPtr logManager,
if (!(chrdev = qemuBuildChrChardevStr(logManager, cmd, cfg, def, if (!(chrdev = qemuBuildChrChardevStr(logManager, cmd, cfg, def,
monitor_chr, "monitor", monitor_chr, "monitor",
qemuCaps, true))) qemuCaps, true,
chardevStdioLogd)))
return -1; return -1;
virCommandAddArg(cmd, "-chardev"); virCommandAddArg(cmd, "-chardev");
virCommandAddArg(cmd, chrdev); virCommandAddArg(cmd, chrdev);
...@@ -5770,7 +5773,8 @@ qemuBuildRNGBackendChrdevStr(virLogManagerPtr logManager, ...@@ -5770,7 +5773,8 @@ qemuBuildRNGBackendChrdevStr(virLogManagerPtr logManager,
const virDomainDef *def, const virDomainDef *def,
virDomainRNGDefPtr rng, virDomainRNGDefPtr rng,
virQEMUCapsPtr qemuCaps, virQEMUCapsPtr qemuCaps,
char **chr) char **chr,
bool chardevStdioLogd)
{ {
*chr = NULL; *chr = NULL;
...@@ -5783,7 +5787,8 @@ qemuBuildRNGBackendChrdevStr(virLogManagerPtr logManager, ...@@ -5783,7 +5787,8 @@ qemuBuildRNGBackendChrdevStr(virLogManagerPtr logManager,
case VIR_DOMAIN_RNG_BACKEND_EGD: case VIR_DOMAIN_RNG_BACKEND_EGD:
if (!(*chr = qemuBuildChrChardevStr(logManager, cmd, cfg, def, if (!(*chr = qemuBuildChrChardevStr(logManager, cmd, cfg, def,
rng->source.chardev, rng->source.chardev,
rng->info.alias, qemuCaps, true))) rng->info.alias, qemuCaps, true,
chardevStdioLogd)))
return -1; return -1;
} }
...@@ -5934,7 +5939,8 @@ qemuBuildRNGCommandLine(virLogManagerPtr logManager, ...@@ -5934,7 +5939,8 @@ qemuBuildRNGCommandLine(virLogManagerPtr logManager,
virCommandPtr cmd, virCommandPtr cmd,
virQEMUDriverConfigPtr cfg, virQEMUDriverConfigPtr cfg,
const virDomainDef *def, const virDomainDef *def,
virQEMUCapsPtr qemuCaps) virQEMUCapsPtr qemuCaps,
bool chardevStdioLogd)
{ {
size_t i; size_t i;
...@@ -5950,7 +5956,8 @@ qemuBuildRNGCommandLine(virLogManagerPtr logManager, ...@@ -5950,7 +5956,8 @@ qemuBuildRNGCommandLine(virLogManagerPtr logManager,
/* possibly add character device for backend */ /* possibly add character device for backend */
if (qemuBuildRNGBackendChrdevStr(logManager, cmd, cfg, def, if (qemuBuildRNGBackendChrdevStr(logManager, cmd, cfg, def,
rng, qemuCaps, &tmp) < 0) rng, qemuCaps, &tmp,
chardevStdioLogd) < 0)
return -1; return -1;
if (tmp) { if (tmp) {
...@@ -8320,7 +8327,8 @@ qemuBuildVhostuserCommandLine(virQEMUDriverPtr driver, ...@@ -8320,7 +8327,8 @@ qemuBuildVhostuserCommandLine(virQEMUDriverPtr driver,
virDomainDefPtr def, virDomainDefPtr def,
virDomainNetDefPtr net, virDomainNetDefPtr net,
virQEMUCapsPtr qemuCaps, virQEMUCapsPtr qemuCaps,
unsigned int bootindex) unsigned int bootindex,
bool chardevStdioLogd)
{ {
virQEMUDriverConfigPtr cfg = virQEMUDriverGetConfig(driver); virQEMUDriverConfigPtr cfg = virQEMUDriverGetConfig(driver);
char *chardev = NULL; char *chardev = NULL;
...@@ -8338,7 +8346,8 @@ qemuBuildVhostuserCommandLine(virQEMUDriverPtr driver, ...@@ -8338,7 +8346,8 @@ qemuBuildVhostuserCommandLine(virQEMUDriverPtr driver,
case VIR_DOMAIN_CHR_TYPE_UNIX: case VIR_DOMAIN_CHR_TYPE_UNIX:
if (!(chardev = qemuBuildChrChardevStr(logManager, cmd, cfg, def, if (!(chardev = qemuBuildChrChardevStr(logManager, cmd, cfg, def,
net->data.vhostuser, net->data.vhostuser,
net->info.alias, qemuCaps, false))) net->info.alias, qemuCaps, false,
chardevStdioLogd)))
goto error; goto error;
break; break;
...@@ -8420,7 +8429,8 @@ qemuBuildInterfaceCommandLine(virQEMUDriverPtr driver, ...@@ -8420,7 +8429,8 @@ qemuBuildInterfaceCommandLine(virQEMUDriverPtr driver,
virNetDevVPortProfileOp vmop, virNetDevVPortProfileOp vmop,
bool standalone, bool standalone,
size_t *nnicindexes, size_t *nnicindexes,
int **nicindexes) int **nicindexes,
bool chardevStdioLogd)
{ {
int ret = -1; int ret = -1;
char *nic = NULL, *host = NULL; char *nic = NULL, *host = NULL;
...@@ -8533,7 +8543,8 @@ qemuBuildInterfaceCommandLine(virQEMUDriverPtr driver, ...@@ -8533,7 +8543,8 @@ qemuBuildInterfaceCommandLine(virQEMUDriverPtr driver,
case VIR_DOMAIN_NET_TYPE_VHOSTUSER: case VIR_DOMAIN_NET_TYPE_VHOSTUSER:
ret = qemuBuildVhostuserCommandLine(driver, logManager, cmd, def, ret = qemuBuildVhostuserCommandLine(driver, logManager, cmd, def,
net, qemuCaps, bootindex); net, qemuCaps, bootindex,
chardevStdioLogd);
goto cleanup; goto cleanup;
break; break;
...@@ -8728,7 +8739,8 @@ qemuBuildNetCommandLine(virQEMUDriverPtr driver, ...@@ -8728,7 +8739,8 @@ qemuBuildNetCommandLine(virQEMUDriverPtr driver,
bool standalone, bool standalone,
size_t *nnicindexes, size_t *nnicindexes,
int **nicindexes, int **nicindexes,
unsigned int *bootHostdevNet) unsigned int *bootHostdevNet,
bool chardevStdioLogd)
{ {
size_t i; size_t i;
int last_good_net = -1; int last_good_net = -1;
...@@ -8762,7 +8774,8 @@ qemuBuildNetCommandLine(virQEMUDriverPtr driver, ...@@ -8762,7 +8774,8 @@ qemuBuildNetCommandLine(virQEMUDriverPtr driver,
if (qemuBuildInterfaceCommandLine(driver, logManager, cmd, def, net, if (qemuBuildInterfaceCommandLine(driver, logManager, cmd, def, net,
qemuCaps, vlan, bootNet, vmop, qemuCaps, vlan, bootNet, vmop,
standalone, nnicindexes, standalone, nnicindexes,
nicindexes) < 0) nicindexes,
chardevStdioLogd) < 0)
goto error; goto error;
last_good_net = i; last_good_net = i;
...@@ -8798,7 +8811,8 @@ qemuBuildSmartcardCommandLine(virLogManagerPtr logManager, ...@@ -8798,7 +8811,8 @@ qemuBuildSmartcardCommandLine(virLogManagerPtr logManager,
virCommandPtr cmd, virCommandPtr cmd,
virQEMUDriverConfigPtr cfg, virQEMUDriverConfigPtr cfg,
const virDomainDef *def, const virDomainDef *def,
virQEMUCapsPtr qemuCaps) virQEMUCapsPtr qemuCaps,
bool chardevStdioLogd)
{ {
size_t i; size_t i;
virDomainSmartcardDefPtr smartcard; virDomainSmartcardDefPtr smartcard;
...@@ -8885,7 +8899,8 @@ qemuBuildSmartcardCommandLine(virLogManagerPtr logManager, ...@@ -8885,7 +8899,8 @@ qemuBuildSmartcardCommandLine(virLogManagerPtr logManager,
if (!(devstr = qemuBuildChrChardevStr(logManager, cmd, cfg, def, if (!(devstr = qemuBuildChrChardevStr(logManager, cmd, cfg, def,
smartcard->data.passthru, smartcard->data.passthru,
smartcard->info.alias, smartcard->info.alias,
qemuCaps, true))) { qemuCaps, true,
chardevStdioLogd))) {
virBufferFreeAndReset(&opt); virBufferFreeAndReset(&opt);
return -1; return -1;
} }
...@@ -9009,7 +9024,8 @@ qemuBuildShmemBackendChrStr(virLogManagerPtr logManager, ...@@ -9009,7 +9024,8 @@ qemuBuildShmemBackendChrStr(virLogManagerPtr logManager,
virQEMUDriverConfigPtr cfg, virQEMUDriverConfigPtr cfg,
virDomainDefPtr def, virDomainDefPtr def,
virDomainShmemDefPtr shmem, virDomainShmemDefPtr shmem,
virQEMUCapsPtr qemuCaps) virQEMUCapsPtr qemuCaps,
bool chardevStdioLogd)
{ {
char *devstr = NULL; char *devstr = NULL;
...@@ -9018,7 +9034,8 @@ qemuBuildShmemBackendChrStr(virLogManagerPtr logManager, ...@@ -9018,7 +9034,8 @@ qemuBuildShmemBackendChrStr(virLogManagerPtr logManager,
devstr = qemuBuildChrChardevStr(logManager, cmd, cfg, def, devstr = qemuBuildChrChardevStr(logManager, cmd, cfg, def,
&shmem->server.chr, &shmem->server.chr,
shmem->info.alias, qemuCaps, true); shmem->info.alias, qemuCaps, true,
chardevStdioLogd);
return devstr; return devstr;
} }
...@@ -9074,7 +9091,8 @@ qemuBuildShmemCommandLine(virLogManagerPtr logManager, ...@@ -9074,7 +9091,8 @@ qemuBuildShmemCommandLine(virLogManagerPtr logManager,
virQEMUDriverConfigPtr cfg, virQEMUDriverConfigPtr cfg,
virDomainDefPtr def, virDomainDefPtr def,
virDomainShmemDefPtr shmem, virDomainShmemDefPtr shmem,
virQEMUCapsPtr qemuCaps) virQEMUCapsPtr qemuCaps,
bool chardevStdioLogd)
{ {
char *devstr = NULL; char *devstr = NULL;
...@@ -9132,7 +9150,8 @@ qemuBuildShmemCommandLine(virLogManagerPtr logManager, ...@@ -9132,7 +9150,8 @@ qemuBuildShmemCommandLine(virLogManagerPtr logManager,
if (shmem->server.enabled) { if (shmem->server.enabled) {
if (!(devstr = qemuBuildShmemBackendChrStr(logManager, cmd, cfg, def, if (!(devstr = qemuBuildShmemBackendChrStr(logManager, cmd, cfg, def,
shmem, qemuCaps))) shmem, qemuCaps,
chardevStdioLogd)))
return -1; return -1;
virCommandAddArgList(cmd, "-chardev", devstr, NULL); virCommandAddArgList(cmd, "-chardev", devstr, NULL);
...@@ -9164,7 +9183,8 @@ qemuBuildSerialCommandLine(virLogManagerPtr logManager, ...@@ -9164,7 +9183,8 @@ qemuBuildSerialCommandLine(virLogManagerPtr logManager,
virCommandPtr cmd, virCommandPtr cmd,
virQEMUDriverConfigPtr cfg, virQEMUDriverConfigPtr cfg,
const virDomainDef *def, const virDomainDef *def,
virQEMUCapsPtr qemuCaps) virQEMUCapsPtr qemuCaps,
bool chardevStdioLogd)
{ {
size_t i; size_t i;
bool havespice = false; bool havespice = false;
...@@ -9188,7 +9208,8 @@ qemuBuildSerialCommandLine(virLogManagerPtr logManager, ...@@ -9188,7 +9208,8 @@ qemuBuildSerialCommandLine(virLogManagerPtr logManager,
if (!(devstr = qemuBuildChrChardevStr(logManager, cmd, cfg, def, if (!(devstr = qemuBuildChrChardevStr(logManager, cmd, cfg, def,
serial->source, serial->source,
serial->info.alias, serial->info.alias,
qemuCaps, true))) qemuCaps, true,
chardevStdioLogd)))
return -1; return -1;
virCommandAddArg(cmd, "-chardev"); virCommandAddArg(cmd, "-chardev");
virCommandAddArg(cmd, devstr); virCommandAddArg(cmd, devstr);
...@@ -9214,7 +9235,8 @@ qemuBuildParallelsCommandLine(virLogManagerPtr logManager, ...@@ -9214,7 +9235,8 @@ qemuBuildParallelsCommandLine(virLogManagerPtr logManager,
virCommandPtr cmd, virCommandPtr cmd,
virQEMUDriverConfigPtr cfg, virQEMUDriverConfigPtr cfg,
const virDomainDef *def, const virDomainDef *def,
virQEMUCapsPtr qemuCaps) virQEMUCapsPtr qemuCaps,
bool chardevStdioLogd)
{ {
size_t i; size_t i;
...@@ -9227,7 +9249,8 @@ qemuBuildParallelsCommandLine(virLogManagerPtr logManager, ...@@ -9227,7 +9249,8 @@ qemuBuildParallelsCommandLine(virLogManagerPtr logManager,
if (!(devstr = qemuBuildChrChardevStr(logManager, cmd, cfg, def, if (!(devstr = qemuBuildChrChardevStr(logManager, cmd, cfg, def,
parallel->source, parallel->source,
parallel->info.alias, parallel->info.alias,
qemuCaps, true))) qemuCaps, true,
chardevStdioLogd)))
return -1; return -1;
virCommandAddArg(cmd, "-chardev"); virCommandAddArg(cmd, "-chardev");
virCommandAddArg(cmd, devstr); virCommandAddArg(cmd, devstr);
...@@ -9254,7 +9277,8 @@ qemuBuildChannelsCommandLine(virLogManagerPtr logManager, ...@@ -9254,7 +9277,8 @@ qemuBuildChannelsCommandLine(virLogManagerPtr logManager,
virCommandPtr cmd, virCommandPtr cmd,
virQEMUDriverConfigPtr cfg, virQEMUDriverConfigPtr cfg,
const virDomainDef *def, const virDomainDef *def,
virQEMUCapsPtr qemuCaps) virQEMUCapsPtr qemuCaps,
bool chardevStdioLogd)
{ {
size_t i; size_t i;
...@@ -9273,7 +9297,8 @@ qemuBuildChannelsCommandLine(virLogManagerPtr logManager, ...@@ -9273,7 +9297,8 @@ qemuBuildChannelsCommandLine(virLogManagerPtr logManager,
if (!(devstr = qemuBuildChrChardevStr(logManager, cmd, cfg, def, if (!(devstr = qemuBuildChrChardevStr(logManager, cmd, cfg, def,
channel->source, channel->source,
channel->info.alias, channel->info.alias,
qemuCaps, true))) qemuCaps, true,
chardevStdioLogd)))
return -1; return -1;
virCommandAddArg(cmd, "-chardev"); virCommandAddArg(cmd, "-chardev");
virCommandAddArg(cmd, devstr); virCommandAddArg(cmd, devstr);
...@@ -9296,7 +9321,8 @@ qemuBuildChannelsCommandLine(virLogManagerPtr logManager, ...@@ -9296,7 +9321,8 @@ qemuBuildChannelsCommandLine(virLogManagerPtr logManager,
if (!(devstr = qemuBuildChrChardevStr(logManager, cmd, cfg, def, if (!(devstr = qemuBuildChrChardevStr(logManager, cmd, cfg, def,
channel->source, channel->source,
channel->info.alias, channel->info.alias,
qemuCaps, true))) qemuCaps, true,
chardevStdioLogd)))
return -1; return -1;
virCommandAddArg(cmd, "-chardev"); virCommandAddArg(cmd, "-chardev");
virCommandAddArg(cmd, devstr); virCommandAddArg(cmd, devstr);
...@@ -9318,7 +9344,8 @@ qemuBuildConsoleCommandLine(virLogManagerPtr logManager, ...@@ -9318,7 +9344,8 @@ qemuBuildConsoleCommandLine(virLogManagerPtr logManager,
virCommandPtr cmd, virCommandPtr cmd,
virQEMUDriverConfigPtr cfg, virQEMUDriverConfigPtr cfg,
const virDomainDef *def, const virDomainDef *def,
virQEMUCapsPtr qemuCaps) virQEMUCapsPtr qemuCaps,
bool chardevStdioLogd)
{ {
size_t i; size_t i;
...@@ -9339,7 +9366,8 @@ qemuBuildConsoleCommandLine(virLogManagerPtr logManager, ...@@ -9339,7 +9366,8 @@ qemuBuildConsoleCommandLine(virLogManagerPtr logManager,
if (!(devstr = qemuBuildChrChardevStr(logManager, cmd, cfg, def, if (!(devstr = qemuBuildChrChardevStr(logManager, cmd, cfg, def,
console->source, console->source,
console->info.alias, console->info.alias,
qemuCaps, true))) qemuCaps, true,
chardevStdioLogd)))
return -1; return -1;
virCommandAddArg(cmd, "-chardev"); virCommandAddArg(cmd, "-chardev");
virCommandAddArg(cmd, devstr); virCommandAddArg(cmd, devstr);
...@@ -9353,7 +9381,8 @@ qemuBuildConsoleCommandLine(virLogManagerPtr logManager, ...@@ -9353,7 +9381,8 @@ qemuBuildConsoleCommandLine(virLogManagerPtr logManager,
if (!(devstr = qemuBuildChrChardevStr(logManager, cmd, cfg, def, if (!(devstr = qemuBuildChrChardevStr(logManager, cmd, cfg, def,
console->source, console->source,
console->info.alias, console->info.alias,
qemuCaps, true))) qemuCaps, true,
chardevStdioLogd)))
return -1; return -1;
virCommandAddArg(cmd, "-chardev"); virCommandAddArg(cmd, "-chardev");
virCommandAddArg(cmd, devstr); virCommandAddArg(cmd, devstr);
...@@ -9471,7 +9500,8 @@ qemuBuildRedirdevCommandLine(virLogManagerPtr logManager, ...@@ -9471,7 +9500,8 @@ qemuBuildRedirdevCommandLine(virLogManagerPtr logManager,
virCommandPtr cmd, virCommandPtr cmd,
virQEMUDriverConfigPtr cfg, virQEMUDriverConfigPtr cfg,
const virDomainDef *def, const virDomainDef *def,
virQEMUCapsPtr qemuCaps) virQEMUCapsPtr qemuCaps,
bool chardevStdioLogd)
{ {
size_t i; size_t i;
...@@ -9482,7 +9512,8 @@ qemuBuildRedirdevCommandLine(virLogManagerPtr logManager, ...@@ -9482,7 +9512,8 @@ qemuBuildRedirdevCommandLine(virLogManagerPtr logManager,
if (!(devstr = qemuBuildChrChardevStr(logManager, cmd, cfg, def, if (!(devstr = qemuBuildChrChardevStr(logManager, cmd, cfg, def,
redirdev->source, redirdev->source,
redirdev->info.alias, redirdev->info.alias,
qemuCaps, true))) { qemuCaps, true,
chardevStdioLogd))) {
return -1; return -1;
} }
...@@ -9947,7 +9978,8 @@ qemuBuildCommandLine(virQEMUDriverPtr driver, ...@@ -9947,7 +9978,8 @@ qemuBuildCommandLine(virQEMUDriverPtr driver,
virBitmapPtr nodeset, virBitmapPtr nodeset,
size_t *nnicindexes, size_t *nnicindexes,
int **nicindexes, int **nicindexes,
const char *domainLibDir) const char *domainLibDir,
bool chardevStdioLogd)
{ {
size_t i; size_t i;
char uuid[VIR_UUID_STRING_BUFLEN]; char uuid[VIR_UUID_STRING_BUFLEN];
...@@ -10053,7 +10085,8 @@ qemuBuildCommandLine(virQEMUDriverPtr driver, ...@@ -10053,7 +10085,8 @@ qemuBuildCommandLine(virQEMUDriverPtr driver,
if (qemuBuildMonitorCommandLine(logManager, cmd, cfg, def, if (qemuBuildMonitorCommandLine(logManager, cmd, cfg, def,
qemuCaps, monitor_chr, qemuCaps, monitor_chr,
monitor_json) < 0) monitor_json,
chardevStdioLogd) < 0)
goto error; goto error;
if (qemuBuildClockCommandLine(cmd, def, qemuCaps) < 0) if (qemuBuildClockCommandLine(cmd, def, qemuCaps) < 0)
...@@ -10085,22 +10118,28 @@ qemuBuildCommandLine(virQEMUDriverPtr driver, ...@@ -10085,22 +10118,28 @@ qemuBuildCommandLine(virQEMUDriverPtr driver,
if (qemuBuildNetCommandLine(driver, logManager, cmd, def, if (qemuBuildNetCommandLine(driver, logManager, cmd, def,
qemuCaps, vmop, standalone, qemuCaps, vmop, standalone,
nnicindexes, nicindexes, &bootHostdevNet) < 0) nnicindexes, nicindexes, &bootHostdevNet,
chardevStdioLogd) < 0)
goto error; goto error;
if (qemuBuildSmartcardCommandLine(logManager, cmd, cfg, def, qemuCaps) < 0) if (qemuBuildSmartcardCommandLine(logManager, cmd, cfg, def, qemuCaps,
chardevStdioLogd) < 0)
goto error; goto error;
if (qemuBuildSerialCommandLine(logManager, cmd, cfg, def, qemuCaps) < 0) if (qemuBuildSerialCommandLine(logManager, cmd, cfg, def, qemuCaps,
chardevStdioLogd) < 0)
goto error; goto error;
if (qemuBuildParallelsCommandLine(logManager, cmd, cfg, def, qemuCaps) < 0) if (qemuBuildParallelsCommandLine(logManager, cmd, cfg, def, qemuCaps,
chardevStdioLogd) < 0)
goto error; goto error;
if (qemuBuildChannelsCommandLine(logManager, cmd, cfg, def, qemuCaps) < 0) if (qemuBuildChannelsCommandLine(logManager, cmd, cfg, def, qemuCaps,
chardevStdioLogd) < 0)
goto error; goto error;
if (qemuBuildConsoleCommandLine(logManager, cmd, cfg, def, qemuCaps) < 0) if (qemuBuildConsoleCommandLine(logManager, cmd, cfg, def, qemuCaps,
chardevStdioLogd) < 0)
goto error; goto error;
if (qemuBuildTPMCommandLine(cmd, def, qemuCaps) < 0) if (qemuBuildTPMCommandLine(cmd, def, qemuCaps) < 0)
...@@ -10124,7 +10163,8 @@ qemuBuildCommandLine(virQEMUDriverPtr driver, ...@@ -10124,7 +10163,8 @@ qemuBuildCommandLine(virQEMUDriverPtr driver,
if (qemuBuildWatchdogCommandLine(cmd, def, qemuCaps) < 0) if (qemuBuildWatchdogCommandLine(cmd, def, qemuCaps) < 0)
goto error; goto error;
if (qemuBuildRedirdevCommandLine(logManager, cmd, cfg, def, qemuCaps) < 0) if (qemuBuildRedirdevCommandLine(logManager, cmd, cfg, def, qemuCaps,
chardevStdioLogd) < 0)
goto error; goto error;
if (qemuBuildHostdevCommandLine(cmd, def, qemuCaps, &bootHostdevNet) < 0) if (qemuBuildHostdevCommandLine(cmd, def, qemuCaps, &bootHostdevNet) < 0)
...@@ -10136,7 +10176,8 @@ qemuBuildCommandLine(virQEMUDriverPtr driver, ...@@ -10136,7 +10176,8 @@ qemuBuildCommandLine(virQEMUDriverPtr driver,
if (qemuBuildMemballoonCommandLine(cmd, def, qemuCaps) < 0) if (qemuBuildMemballoonCommandLine(cmd, def, qemuCaps) < 0)
goto error; goto error;
if (qemuBuildRNGCommandLine(logManager, cmd, cfg, def, qemuCaps) < 0) if (qemuBuildRNGCommandLine(logManager, cmd, cfg, def, qemuCaps,
chardevStdioLogd) < 0)
goto error; goto error;
if (qemuBuildNVRAMCommandLine(cmd, def, qemuCaps) < 0) if (qemuBuildNVRAMCommandLine(cmd, def, qemuCaps) < 0)
...@@ -10173,7 +10214,8 @@ qemuBuildCommandLine(virQEMUDriverPtr driver, ...@@ -10173,7 +10214,8 @@ qemuBuildCommandLine(virQEMUDriverPtr driver,
for (i = 0; i < def->nshmems; i++) { for (i = 0; i < def->nshmems; i++) {
if (qemuBuildShmemCommandLine(logManager, cmd, cfg, if (qemuBuildShmemCommandLine(logManager, cmd, cfg,
def, def->shmems[i], qemuCaps)) def, def->shmems[i], qemuCaps,
chardevStdioLogd))
goto error; goto error;
} }
......
...@@ -57,7 +57,8 @@ virCommandPtr qemuBuildCommandLine(virQEMUDriverPtr driver, ...@@ -57,7 +57,8 @@ virCommandPtr qemuBuildCommandLine(virQEMUDriverPtr driver,
virBitmapPtr nodeset, virBitmapPtr nodeset,
size_t *nnicindexes, size_t *nnicindexes,
int **nicindexes, int **nicindexes,
const char *domainLibDir) const char *domainLibDir,
bool chardevStdioLogd)
ATTRIBUTE_NONNULL(15); ATTRIBUTE_NONNULL(15);
......
...@@ -5725,7 +5725,8 @@ qemuProcessLaunch(virConnectPtr conn, ...@@ -5725,7 +5725,8 @@ qemuProcessLaunch(virConnectPtr conn,
qemuCheckFips(), qemuCheckFips(),
priv->autoNodeset, priv->autoNodeset,
&nnicindexes, &nicindexes, &nnicindexes, &nicindexes,
priv->libDir))) priv->libDir,
priv->chardevStdioLogd)))
goto cleanup; goto cleanup;
if (incoming && incoming->fd != -1) if (incoming && incoming->fd != -1)
...@@ -6162,7 +6163,8 @@ qemuProcessCreatePretendCmd(virConnectPtr conn, ...@@ -6162,7 +6163,8 @@ qemuProcessCreatePretendCmd(virConnectPtr conn,
priv->autoNodeset, priv->autoNodeset,
NULL, NULL,
NULL, NULL,
priv->libDir); priv->libDir,
priv->chardevStdioLogd);
cleanup: cleanup:
return cmd; return cmd;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册