OSDN Git Service

ui/console: allow to override the default VC
authorMarc-André Lureau <marcandre.lureau@redhat.com>
Tue, 5 Sep 2023 19:18:08 +0000 (23:18 +0400)
committerMarc-André Lureau <marcandre.lureau@redhat.com>
Tue, 7 Nov 2023 10:04:25 +0000 (14:04 +0400)
commit1bec1cc0da497e55c16e2a7b50f94cdb2a02197f
tree1da84c3a57cd2665e4d3c5d9e8fe2815054182d8
parent2aeaa4b2000d95139d5dfae8ca5061c1b19e749e
ui/console: allow to override the default VC

If a display is backed by a specialized VC, allow to override the
default "vc:80Cx24C".

As suggested by Paolo, if the display doesn't implement a VC (get_vc()
returns NULL), use a fallback that will use a muxed console on stdio.

This changes the behaviour of "qemu -display none", to create a muxed
serial/monitor by default (on TTY & not daemonized).

Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Reviewed-by: Thomas Huth <thuth@redhat.com>
include/ui/console.h
system/vl.c
ui/console.c