OSDN Git Service

char-socket: correctly set has_reconnect when parsing QemuOpts
authorMarc-André Lureau <marcandre.lureau@redhat.com>
Tue, 17 Jul 2018 12:43:51 +0000 (14:43 +0200)
committerMarc-André Lureau <marcandre.lureau@redhat.com>
Thu, 1 Nov 2018 08:12:09 +0000 (12:12 +0400)
commit3b023756b1807f4d5f91a5c2c801935c45fa9bed
tree7c4e5bd91f8e0a4cebd2d258ee4922d029ff7b4b
parentad824bdc63d9c799f9a1dce4beefbaa3dacb59df
char-socket: correctly set has_reconnect when parsing QemuOpts

qemu_chr_parse_socket() fills all ChardevSocket fields, but that
doesn't reflect correctly the arguments given with the options / on
the command line. "reconnect" takes a number as argument, and the
default value is 0, which doesn't help to identify the missing
option. The other arguments have default values that are less
problematic, leave them set by default for now.

Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
chardev/char-socket.c