mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-02-22 03:12:22 +00:00
qemu: do not set wait:false for client sockets
Qemu commit 767abe7 ("chardev: forbid 'wait' option with client sockets") effectively deprecates usage of "wait" with client sockets starting with qemu 4.0, and earlier versions ignored the value. Cc: Daniel P. Berrangé <berrange@redhat.com> Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com> Reviewed-by: Ján Tomko <jtomko@redhat.com> Signed-off-by: Ján Tomko <jtomko@redhat.com>
This commit is contained in:
parent
70d60b811f
commit
ad32d76165
@ -6922,8 +6922,11 @@ qemuMonitorJSONAttachCharDevCommand(const char *chrID,
|
||||
|
||||
telnet = chr->data.tcp.protocol == VIR_DOMAIN_CHR_TCP_PROTOCOL_TELNET;
|
||||
|
||||
if (virJSONValueObjectAppendBoolean(data, "wait", false) < 0 ||
|
||||
virJSONValueObjectAppendBoolean(data, "telnet", telnet) < 0 ||
|
||||
if (chr->data.tcp.listen &&
|
||||
virJSONValueObjectAppendBoolean(data, "wait", false) < 0)
|
||||
goto cleanup;
|
||||
|
||||
if (virJSONValueObjectAppendBoolean(data, "telnet", telnet) < 0 ||
|
||||
virJSONValueObjectAppendBoolean(data, "server", chr->data.tcp.listen) < 0)
|
||||
goto cleanup;
|
||||
if (chr->data.tcp.tlscreds) {
|
||||
@ -6973,8 +6976,11 @@ qemuMonitorJSONAttachCharDevCommand(const char *chrID,
|
||||
goto cleanup;
|
||||
addr = NULL;
|
||||
|
||||
if (virJSONValueObjectAppendBoolean(data, "wait", false) < 0 ||
|
||||
virJSONValueObjectAppendBoolean(data, "server", chr->data.nix.listen) < 0)
|
||||
if (chr->data.nix.listen &&
|
||||
virJSONValueObjectAppendBoolean(data, "wait", false) < 0)
|
||||
goto cleanup;
|
||||
|
||||
if (virJSONValueObjectAppendBoolean(data, "server", chr->data.nix.listen) < 0)
|
||||
goto cleanup;
|
||||
|
||||
if (qemuMonitorJSONBuildChrChardevReconnect(data, &chr->data.nix.reconnect) < 0)
|
||||
|
@ -874,7 +874,6 @@ qemuMonitorJSONTestAttachChardev(virDomainXMLOptionPtr xmlopt)
|
||||
"'data':{'addr':{'type':'inet',"
|
||||
"'data':{'host':'example.com',"
|
||||
"'port':'1234'}},"
|
||||
"'wait':false,"
|
||||
"'telnet':false,"
|
||||
"'server':false}}}");
|
||||
|
||||
@ -920,7 +919,6 @@ qemuMonitorJSONTestAttachChardev(virDomainXMLOptionPtr xmlopt)
|
||||
"'backend':{'type':'socket',"
|
||||
"'data':{'addr':{'type':'unix',"
|
||||
"'data':{'path':'/path/to/socket'}},"
|
||||
"'wait':false,"
|
||||
"'server':false}}}");
|
||||
|
||||
chr = (virDomainChrSourceDef) { .type = VIR_DOMAIN_CHR_TYPE_SPICEVMC };
|
||||
|
Loading…
x
Reference in New Issue
Block a user