doc: Mention chardev:id in available devices for -serial
authorIngo van Lil <inguin@gmx.de>
Fri, 20 Dec 2013 13:44:53 +0000 (14:44 +0100)
committerMichael Tokarev <mjt@tls.msk.ru>
Wed, 1 Jan 2014 14:03:55 +0000 (18:03 +0400)
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

Signed-off-by: Ingo van Lil <inguin@gmx.de>
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
qemu-options.hx

index bcfe9ea..56e5fdf 100644 (file)
@@ -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.