This adds a pathin= option to -chardev file, which allows specifying distinct input and output paths for the chardev. This functionaliy was already available through QMP.
v3: * char-test: add a stat()-based check to ensure that the pathin= file is not modified during the execution of the test. Alexander Bulekov (2): chardev: enable distinct input for -chardev file char-file: add test for distinct path= and pathin= chardev/char-file.c | 5 +++ chardev/char.c | 3 ++ qemu-options.hx | 7 +++- tests/test-char.c | 96 +++++++++++++++++++++++++++++++++++++++++++++ 4 files changed, 109 insertions(+), 2 deletions(-) -- 2.26.2