aboutsummaryrefslogtreecommitdiff
path: root/include/ui
diff options
context:
space:
mode:
authorGerd Hoffmann <kraxel@redhat.com>2013-07-22 15:34:12 +0200
committerGerd Hoffmann <kraxel@redhat.com>2013-07-30 10:25:47 +0200
commit58ae52a8dc7752e3da9a905678580b4cb8181cdc (patch)
tree9cca46e13c2b4e5bbe9a30ea6d484949bf882759 /include/ui
parentdbe49aea76a7805f05b33d548b2e543b51fa8bb1 (diff)
spice: fix display initialization
Spice has two display interface implementations: One integrated into the qxl graphics card, and one generic which can operate with every qemu-emulated graphics card. The generic one is activated in case spice is used without qxl. The logic for that only caught the "-vga qxl" case, "-device qxl-vga" goes unnoticed. Fix that by adding a check in the spice interface registration so we'll notice the qxl card no matter how it is created. https://bugzilla.redhat.com/show_bug.cgi?id=981094 Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Diffstat (limited to 'include/ui')
-rw-r--r--include/ui/qemu-spice.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/ui/qemu-spice.h b/include/ui/qemu-spice.h
index eba6d77d1d..c6c756b23d 100644
--- a/include/ui/qemu-spice.h
+++ b/include/ui/qemu-spice.h
@@ -27,6 +27,7 @@
#include "monitor/monitor.h"
extern int using_spice;
+extern int spice_displays;
void qemu_spice_init(void);
void qemu_spice_input_init(void);
@@ -57,6 +58,7 @@ static inline CharDriverState *qemu_chr_open_spice_port(const char *name)
#include "monitor/monitor.h"
#define using_spice 0
+#define spice_displays 0
static inline int qemu_spice_set_passwd(const char *passwd,
bool fail_if_connected,
bool disconnect_if_connected)