diff options
author | Gerd Hoffmann <kraxel@redhat.com> | 2013-10-11 22:39:59 +0200 |
---|---|---|
committer | Gerd Hoffmann <kraxel@redhat.com> | 2013-10-17 12:42:54 +0200 |
commit | 9fa032866daae68357d99abc725c18fe9ed4b61b (patch) | |
tree | 759b86785e2a11fcd65c743b8afaf25ec725635e /vl.c | |
parent | 35b2122db446a03be9b88f540e865930efd01d6a (diff) | |
download | qemu-9fa032866daae68357d99abc725c18fe9ed4b61b.zip qemu-9fa032866daae68357d99abc725c18fe9ed4b61b.tar.gz qemu-9fa032866daae68357d99abc725c18fe9ed4b61b.tar.bz2 |
spice: fix multihead support
This patch fixes spice display initialization to handle
multihead properly.
spice-core now keeps track of which QemuConsole has a spice
display channel attached to it and which has not. It also
manages display channel ids.
spice-display looks at all QemuConsoles and will pick up any
graphic console not yet bound to a spice channel (which in practice
are all non-qxl graphic devices).
Result is that
(a) you'll get a spice client window for each graphical device
now (first only without this patch), and
(b) mixing qxl and non-qxl vga cards works properly.
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Diffstat (limited to 'vl.c')
-rw-r--r-- | vl.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -4315,8 +4315,8 @@ int main(int argc, char **argv, char **envp) } #endif #ifdef CONFIG_SPICE - if (using_spice && !spice_displays) { - qemu_spice_display_init(ds); + if (using_spice) { + qemu_spice_display_init(); } #endif |