qemu/chardev
Nicholas Piggin 4c193bb129 chardev: set record/replay on the base device of a muxed device
chardev events to a muxed device don't get recorded because e.g.,
qemu_chr_be_write() checks whether the base device has the record flag
set.

This can be seen when replaying a trace that has characters typed into
the console, an examination of the log shows they are not recorded.

Setting QEMU_CHAR_FEATURE_REPLAY on the base chardev fixes the problem.

Reviewed-by: Alex Bennée <alex.bennee@linaro.org>
Signed-off-by: Nicholas Piggin <npiggin@gmail.com>
Message-Id: <20240813050638.446172-8-npiggin@gmail.com>
Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
Message-Id: <20240813202329.1237572-16-alex.bennee@linaro.org>
2024-08-16 14:04:19 +01:00
..
baum.c
char-console.c
char-fd.c
char-fe.c error: Drop superfluous #include "qapi/qmp/qerror.h" 2024-04-24 09:50:58 +02:00
char-file.c chardev: Allow setting file chardev input file on the command line 2023-04-20 06:50:11 +02:00
char-hmp-cmds.c
char-io.c Revert "qemu-char: do not operate on sources from finalize callbacks" 2024-07-16 10:45:06 +02:00
char-mux.c
char-null.c
char-parallel.c chardev/parallel: Don't close stdin on inappropriate device 2024-02-14 07:44:38 +01:00
char-pipe.c
char-pty.c chardev/char-pty: Avoid losing bytes when the other side just (re-)connected 2023-10-03 15:40:09 +04:00
char-ringbuf.c
char-serial.c
char-socket.c chardev: add tracing of socket error conditions 2024-07-24 10:39:10 +01:00
char-stdio.c char-stdio: Restore blocking mode of stdout on exit 2024-07-03 21:54:41 +02:00
char-udp.c
char-win-stdio.c chardev/char-win-stdio.c: restore old console mode 2024-07-22 22:25:46 +04:00
char-win.c
char.c chardev: set record/replay on the base device of a muxed device 2024-08-16 14:04:19 +01:00
chardev-internal.h
meson.build chardev/parallel: Don't close stdin on inappropriate device 2024-02-14 07:44:38 +01:00
msmouse.c util/fifo8: Rename fifo8_pop_buf() -> fifo8_pop_bufptr() 2024-07-23 22:34:54 +02:00
spice.c
testdev.c
trace-events chardev: add tracing of socket error conditions 2024-07-24 10:39:10 +01:00
trace.h
wctablet.c ui/input: Constify QemuInputHandler structure 2023-10-19 23:13:28 +02:00