qemu/include/chardev
Daniil Tatianin c8e2b6b4d7 chardev: introduce 'reconnect-ms' and deprecate 'reconnect'
The 'reconnect' option only allows to specify the time in seconds,
which is way too long for certain workflows.

We have a lightweight disk backend server, which takes about 20ms to
live update, but due to this limitation in QEMU, previously the guest
disk controller would hang for one second because it would take this
long for QEMU to reinitialize the socket connection.

Introduce a new option called 'reconnect-ms', which is the same as
'reconnect', except the value is treated as milliseconds. These are
mutually exclusive and specifying both results in an error.

'reconnect' is also deprecated by this commit to make it possible to
remove it in the future as to not keep two options that control the
same thing.

Reviewed-by: Vladimir Sementsov-Ogievskiy <vsementsov@yandex-team.ru>
Acked-by: Peter Krempa <pkrempa@redhat.com>
Signed-off-by: Daniil Tatianin <d-tatianin@yandex-team.ru>
Acked-by: Markus Armbruster <armbru@redhat.com>
Tested-by: Markus Armbruster <armbru@redhat.com>
Message-ID: <20240913094604.269135-1-d-tatianin@yandex-team.ru>
2024-10-09 12:07:54 +04:00
..
char-fd.h Use DECLARE_*CHECKER* macros 2020-09-09 09:27:09 -04:00
char-fe.h chardev/char-fe: Document returned value on error 2024-07-23 22:34:54 +02:00
char-io.h Include qemu/main-loop.h less 2019-08-16 13:31:52 +02:00
char-parallel.h char: fix alias devices regression 2017-06-08 17:57:36 +04:00
char-serial.h char: fix alias devices regression 2017-06-08 17:57:36 +04:00
char-socket.h chardev: introduce 'reconnect-ms' and deprecate 'reconnect' 2024-10-09 12:07:54 +04:00
char-win-stdio.h chardev: move headers to include/chardev 2017-06-02 11:33:52 +04:00
char-win.h Use DECLARE_*CHECKER* macros 2020-09-09 09:27:09 -04:00
char.h ui/vc: do not parse VC-specific options in Spice and GTK 2023-09-04 14:57:37 +04:00
spice.h chardev/spice: simplify chardev setup 2020-10-15 11:14:40 +02:00