]> xenbits.xensource.com Git - qemu-xen.git/commit
chardev: set record/replay on the base device of a muxed device
authorNicholas Piggin <npiggin@gmail.com>
Tue, 13 Aug 2024 20:23:23 +0000 (21:23 +0100)
committerAlex Bennée <alex.bennee@linaro.org>
Fri, 16 Aug 2024 13:04:19 +0000 (14:04 +0100)
commit4c193bb129dae164ce19c1197c76b59c62b405aa
treee6714660be1644932721c9e835b78828738d3002
parent253ec604a84686231817443ea107a636bf1fc09a
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>
chardev/char.c