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.sist...@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