diff options
author | Marc-André Lureau <marcandre.lureau@redhat.com> | 2023-09-05 23:18:08 +0400 |
---|---|---|
committer | Marc-André Lureau <marcandre.lureau@redhat.com> | 2023-11-07 14:04:25 +0400 |
commit | 1bec1cc0da497e55c16e2a7b50f94cdb2a02197f (patch) | |
tree | 1da84c3a57cd2665e4d3c5d9e8fe2815054182d8 /include/ui | |
parent | 2aeaa4b2000d95139d5dfae8ca5061c1b19e749e (diff) | |
download | qemu-1bec1cc0da497e55c16e2a7b50f94cdb2a02197f.zip qemu-1bec1cc0da497e55c16e2a7b50f94cdb2a02197f.tar.gz qemu-1bec1cc0da497e55c16e2a7b50f94cdb2a02197f.tar.bz2 |
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>
Diffstat (limited to 'include/ui')
-rw-r--r-- | include/ui/console.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/ui/console.h b/include/ui/console.h index acb61a7..a4a49ff 100644 --- a/include/ui/console.h +++ b/include/ui/console.h @@ -462,12 +462,14 @@ struct QemuDisplay { DisplayType type; void (*early_init)(DisplayOptions *opts); void (*init)(DisplayState *ds, DisplayOptions *opts); + const char *vc; }; void qemu_display_register(QemuDisplay *ui); bool qemu_display_find_default(DisplayOptions *opts); void qemu_display_early_init(DisplayOptions *opts); void qemu_display_init(DisplayState *ds, DisplayOptions *opts); +const char *qemu_display_get_vc(DisplayOptions *opts); void qemu_display_help(void); /* vnc.c */ |