]> git.proxmox.com Git - mirror_qemu.git/commit
console: minimal hotplug suport
authorGerd Hoffmann <kraxel@redhat.com>
Tue, 13 Mar 2018 17:17:29 +0000 (11:17 -0600)
committerAlex Williamson <alex.williamson@redhat.com>
Tue, 13 Mar 2018 17:17:29 +0000 (11:17 -0600)
commit9588d67e72f853349dbb318503368ad01b12feb6
treec519886bc84434ee735475f6aebb7afc86e9e90b
parenta5127bd73f77b90b50d63014be10cef467c1c3f9
console: minimal hotplug suport

This patch allows to unbind devices from QemuConsoles, using the new
graphic_console_close() function.  The QemuConsole will show a static
display then, saying the device was unplugged.  When re-plugging a
display later on the QemuConsole will be reused.

Eventually we will allocate and release QemuConsoles dynamically at some
point in the future, that'll need more infrastructure though to notify
user interfaces (gtk, sdl, spice, ...) about QemuConsoles coming and
going.

Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
include/ui/console.h
ui/console.c
ui/trace-events