Skip to contentSkip to conversation

doc: Mention chardev:id in available devices for -serial

PATCH Applied Ingo van Lil 2 participants 2 messages Dec 20, 2013 – Dec 23, 2013

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 doc: Mention chardev:id in available devices for -serial

It is possible to pre-define a character device with the -chardev option and reference its id as serial device. The man page does not mention this feature.

Use case: Use stdio as serial, but do not terminate VM on Ctrl-C
-chardev stdio,id=mystdio,signal=off -serial chardev:mystdio

---
 qemu-options.hx | 2 ++
 1 file changed, 2 insertions(+)
qemu-options.hx +2 -0
index bcfe9ea..56e5fdf 100644
@@ -2419,6 +2419,8 @@ vc:80Cx24C
 No device is allocated.
 @item null
 void device
+@item chardev:@var{id}
+Use a named character device defined with the @code{-chardev} option.
 @item /dev/XXX
 [Linux only] Use host tty, e.g. @file{/dev/ttyS0}. The host serial port
 parameters are set according to the emulated ones.
Signature · 1 line
1.8.3.1
#1 lore raw
Quoted 3 lines · Ingo van Lil

It is possible to pre-define a character device with the -chardev option and reference its id as serial device. The man page does not mention this feature.

Thanks, applied to the trivial-patches queue.

/mjt