OSDN Git Service

ui/console: fix default VC when there are no display
authorMarc-André Lureau <marcandre.lureau@redhat.com>
Wed, 8 Nov 2023 13:25:22 +0000 (17:25 +0400)
committerMarc-André Lureau <marcandre.lureau@redhat.com>
Tue, 21 Nov 2023 10:38:14 +0000 (14:38 +0400)
commit0e8823072e1d6c5320864f734d01f11210109320
tree19c85ada359725d0d3224f851523d5e71a0f4292
parentb7f1bb38b011efd13784e8781dafeedcc6e900a1
ui/console: fix default VC when there are no display

When display is "none", we may still have remote displays (I think it
would be simpler if VNC/Spice were regular display btw). Return the
default VC then, and set them up to fix a regression when using remote
display and it used the TTY instead.

Fixes: https://gitlab.com/qemu-project/qemu/-/issues/1989
Fixes: commit 1bec1cc0d ("ui/console: allow to override the default VC")
Reported-by: German Maglione <gmaglione@redhat.com>
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Acked-by: Thomas Huth <thuth@redhat.com>
ui/console.c