[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH V3 16/22] chardev: cpr framework
From: |
Eric Blake |
Subject: |
Re: [PATCH V3 16/22] chardev: cpr framework |
Date: |
Fri, 7 May 2021 09:33:21 -0500 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.10.1 |
On 5/7/21 7:25 AM, Steve Sistare wrote:
> Add QEMU_CHAR_FEATURE_CPR for devices that support cpr.
> Add the chardev close_on_cpr option for devices that can be closed on cpr
> and reopened after exec.
> cpr is allowed only if either QEMU_CHAR_FEATURE_CPR or close_on_cpr is set
> for all chardevs in the configuration.
>
> Signed-off-by: Steve Sistare <steven.sistare@oracle.com>
> ---
> +++ b/qapi/char.json
> @@ -204,12 +204,15 @@
> # @logfile: The name of a logfile to save output
> # @logappend: true to append instead of truncate
> # (default to false to truncate)
> +# @close-on-cpr: if true, close device's fd on cprsave. defaults to false.
> +# since 6.0.
6.1, actually.
> @@ -3182,6 +3196,10 @@ The general form of a character device option is:
> ``logappend`` option controls whether the log file will be truncated
> or appended to when opened.
>
> + Every backend supports the ``close-on-cpr`` option. If on, the
> + devices's descriptor is closed during cprsave, and reopened after exec.
device's
> + This is useful for devices that do not support cpr.
> +
> The available backends are:
>
> ``-chardev null,id=id``
>
--
Eric Blake, Principal Software Engineer
Red Hat, Inc. +1-919-301-3226
Virtualization: qemu.org | libvirt.org
- Re: [PATCH V3 12/22] vfio-pci: cpr part 1, (continued)
- [PATCH V3 13/22] vfio-pci: cpr part 2, Steve Sistare, 2021/05/07
- [PATCH V3 08/22] cpr: QMP interfaces, Steve Sistare, 2021/05/07
- [PATCH V3 17/22] chardev: cpr for simple devices, Steve Sistare, 2021/05/07
- [PATCH V3 19/22] chardev: cpr for sockets, Steve Sistare, 2021/05/07
- [PATCH V3 20/22] cpr: only-cpr-capable option, Steve Sistare, 2021/05/07
- [PATCH V3 18/22] chardev: cpr for pty, Steve Sistare, 2021/05/07
- [PATCH V3 16/22] chardev: cpr framework, Steve Sistare, 2021/05/07
- Re: [PATCH V3 16/22] chardev: cpr framework,
Eric Blake <=
- [PATCH V3 22/22] simplify savevm, Steve Sistare, 2021/05/07
- [PATCH V3 21/22] cpr: maintainers, Steve Sistare, 2021/05/07
- [PATCH V3 09/22] cpr: HMP interfaces, Steve Sistare, 2021/05/07
- Re: [PATCH V3 00/22] Live Update, no-reply, 2021/05/07
- Re: [PATCH V3 00/22] Live Update, Stefan Hajnoczi, 2021/05/12