[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH v1 1/1] chardev: enable guest socket status/crontrol via DTR
From: |
Eric Blake |
Subject: |
Re: [PATCH v1 1/1] chardev: enable guest socket status/crontrol via DTR and DCD |
Date: |
Wed, 23 Dec 2020 16:13:12 -0600 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.6.0 |
On 12/16/20 4:06 PM, Darrin M. Gorski wrote:
> This patch adds a 'modemctl' option to "-chardev socket" to enable control
> of the socket via the guest serial port.
> The default state of the option is disabled.
>
> 1. disconnect a connected socket when DTR transitions to low, also reject
> new connections while DTR is low.
> 2. provide socket connection status through the carrier detect line (CD or
> DCD) on the guest serial port
>
> Buglink: https://bugs.launchpad.net/qemu/+bug/1213196
>
> Signed-off-by: Darrin M. Gorski <darrin@gorski.net>
>
>
> diff --git a/chardev/char-socket.c b/chardev/char-socket.c
Hmm - your workflow did not produce the usual --- marker and a diffstat
of which files were in the patch; this makes it easier for reviewers to
see at a glance what the rest of the email will contain. It's not
essential, but it does help.
> +++ b/qapi/char.json
> @@ -271,6 +271,9 @@
> # then attempt a reconnect after the given number of seconds.
> # Setting this to zero disables this function. (default: 0)
> # (Since: 2.2)
> +# @modemctl: allow guest to use modem control signals to control/monitor
> +# the socket state (CD follows is_connected, DTR influences
> +# connect/accept) (default: false) (Since: 5.2)
The next release will by 6.0, not 5.2.
--
Eric Blake, Principal Software Engineer
Red Hat, Inc. +1-919-301-3226
Virtualization: qemu.org | libvirt.org