From: "Daniel P. Berrangé" <berrange@redhat.com>
To: "Marc-André Lureau" <marcandre.lureau@redhat.com>
Cc: qemu-devel@nongnu.org, Paolo Bonzini <pbonzini@redhat.com>
Subject: Re: [Qemu-devel] [PATCH 1/3] char-socket: correctly set has_reconnect when parsing QemuOpts
Date: Tue, 17 Jul 2018 14:20:27 +0100 [thread overview]
Message-ID: <20180717132027.GS18603@redhat.com> (raw)
In-Reply-To: <20180717125239.22517-2-marcandre.lureau@redhat.com>
On Tue, Jul 17, 2018 at 02:52:37PM +0200, Marc-André Lureau wrote:
> 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>
> ---
> chardev/char-socket.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/chardev/char-socket.c b/chardev/char-socket.c
> index efbad6ee7c..8950f36317 100644
> --- a/chardev/char-socket.c
> +++ b/chardev/char-socket.c
> @@ -1111,7 +1111,7 @@ static void qemu_chr_parse_socket(QemuOpts *opts, ChardevBackend *backend,
> sock->tn3270 = is_tn3270;
> sock->has_wait = true;
> sock->wait = is_waitconnect;
> - sock->has_reconnect = true;
> + sock->has_reconnect = qemu_opt_find(opts, "reconnect");
> sock->reconnect = reconnect;
> sock->tls_creds = g_strdup(tls_creds);
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
Regards,
Daniel
--
|: https://berrange.com -o- https://www.flickr.com/photos/dberrange :|
|: https://libvirt.org -o- https://fstop138.berrange.com :|
|: https://entangle-photo.org -o- https://www.instagram.com/dberrange :|
next prev parent reply other threads:[~2018-07-17 13:20 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-07-17 12:52 [Qemu-devel] [PATCH 0/3] chardev: fix setting FD_PASS for socket type=fd Marc-André Lureau
2018-07-17 12:52 ` [Qemu-devel] [PATCH 1/3] char-socket: correctly set has_reconnect when parsing QemuOpts Marc-André Lureau
2018-07-17 13:20 ` Daniel P. Berrangé [this message]
2018-07-17 12:52 ` [Qemu-devel] [PATCH 2/3] char-socket: make 'fd' incompatible with 'reconnect' Marc-André Lureau
2018-07-17 13:20 ` Daniel P. Berrangé
2018-07-17 12:52 ` [Qemu-devel] [PATCH 3/3] char-socket: delay setting fd-pass feature until connected Marc-André Lureau
2018-07-17 13:01 ` Daniel P. Berrangé
2018-07-17 13:07 ` Marc-André Lureau
2018-07-17 13:11 ` Daniel P. Berrangé
2018-07-17 13:16 ` Marc-André Lureau
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20180717132027.GS18603@redhat.com \
--to=berrange@redhat.com \
--cc=marcandre.lureau@redhat.com \
--cc=pbonzini@redhat.com \
--cc=qemu-devel@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).