From 60e94e4397f62703ec77caa290610d99349f7e35 Mon Sep 17 00:00:00 2001 From: Gerd Hoffmann Date: Fri, 12 Oct 2018 13:45:40 +0200 Subject: qxl: store channel id in qxl->id See qemu_spice_add_display_interface(), the console index is also used as channel id. So put that into the qxl->id field too. In typical use cases (one primary qxl-vga device, optionally one or more secondary qxl devices, no non-qxl display devices) this doesn't change anything. With this in place the qxl->id can not be used any more to figure whenever a given device is primary (with vga compat mode) or secondary. So add a bool to track this. Cc: spice-devel@lists.freedesktop.org Signed-off-by: Gerd Hoffmann Message-id: 20181012114540.27829-1-kraxel@redhat.com --- hw/display/qxl.h | 1 + 1 file changed, 1 insertion(+) (limited to 'hw/display/qxl.h') diff --git a/hw/display/qxl.h b/hw/display/qxl.h index dd9c0522b7..6f9d1f21fa 100644 --- a/hw/display/qxl.h +++ b/hw/display/qxl.h @@ -34,6 +34,7 @@ typedef struct PCIQXLDevice { PortioList vga_port_list; SimpleSpiceDisplay ssd; int id; + bool have_vga; uint32_t debug; uint32_t guestdebug; uint32_t cmdlog; -- cgit v1.2.3-55-g7522