]> git.proxmox.com Git - mirror_qemu.git/commit - ui/console.c
ui/console: move console compatibility check to dcl_display_console()
authorMarc-André Lureau <marcandre.lureau@redhat.com>
Wed, 16 Feb 2022 16:16:55 +0000 (20:16 +0400)
committerMarc-André Lureau <marcandre.lureau@redhat.com>
Mon, 14 Mar 2022 11:16:11 +0000 (15:16 +0400)
commit4b7b661d8feccb8d12289bce7814e89ef827ecce
tree9e8a8e4ad7b096ed368d33fc7bd598f5688f0e4d
parent417a231947fb19b842fec3922713ffe3142b2c6c
ui/console: move console compatibility check to dcl_display_console()

The current checks are done at registration time only. However, if a DCL
has no specific console specified, it may be switched dynamically with
console_select() later on.

Let's move the checks when displaychangelistener_display_console() is
called, which includes registration time and remains fatal if the
specified console is incompatible.

Note: we may want to display the compatibility error to the DCL, this is
left for a future improvement.

Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Acked-by: Gerd Hoffmann <kraxel@redhat.com>
ui/console.c