vl: initialize displays _after_ exiting preconfiguration
commitfacf7c60ee60aab7d73b204ee8c86b90fbc6b3db
authorPaolo Bonzini <pbonzini@redhat.com>
Thu, 17 Dec 2020 09:10:12 +0000 (17 10:10 +0100)
committerPaolo Bonzini <pbonzini@redhat.com>
Sat, 2 Jan 2021 20:03:09 +0000 (2 21:03 +0100)
tree1732f4af7a38c86f033533d8704efca0839d1fd6
parentc035c8d6f54ce10a350e0b6cee558075d1f42f9c
vl: initialize displays _after_ exiting preconfiguration

Due to the renumbering of text consoles when graphical consoles are
created, init_displaystate must be called after all QemuConsoles are
created, i.e. after devices are created.

vl.c calls it from qemu_init_displays, while qmp_x_exit_preconfig is
where devices are created.  If qemu_init_displays is called before it,
the VGA graphical console does not come up.

Reported-by: Howard Spoelstra <hsp.cat7@gmail.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
softmmu/vl.c