chardev: force write all when recording replay logs
commit7b571ef3c75ac35522c817219cbfa765753a36c5
authorAlex Bennée <alex.bennee@linaro.org>
Mon, 11 Dec 2023 09:13:41 +0000 (11 09:13 +0000)
committerAlex Bennée <alex.bennee@linaro.org>
Mon, 8 Jan 2024 13:58:59 +0000 (8 13:58 +0000)
tree5c968fa259d16a3ef2b62251456eb675d43ad94a
parent1f881ea4a444ef36a8b6907b0b82be4b3af253a2
chardev: force write all when recording replay logs

This is mostly a problem within avocado as serial generally isn't busy
enough to overfill pipes. However the consequences of recording a
failed write will haunt us on replay when the log will be out of sync
to the playback.

Fixes: https://gitlab.com/qemu-project/qemu/-/issues/2010
Acked-by: Pavel Dovgalyuk <Pavel.Dovgalyuk@ispras.ru>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
Message-Id: <20231211091346.14616-13-alex.bennee@linaro.org>
chardev/char.c