diff options
author | Gerd Hoffmann | 2018-10-12 13:45:40 +0200 |
---|---|---|
committer | Gerd Hoffmann | 2018-10-29 10:43:19 +0100 |
commit | 60e94e4397f62703ec77caa290610d99349f7e35 (patch) | |
tree | caf171fac9fe31f4fd6548773f4421ed2e99f0e5 /hw/display/qxl.h | |
parent | Merge remote-tracking branch 'remotes/bonzini/tags/for-upstream' into staging (diff) | |
download | qemu-60e94e4397f62703ec77caa290610d99349f7e35.tar.gz qemu-60e94e4397f62703ec77caa290610d99349f7e35.tar.xz qemu-60e94e4397f62703ec77caa290610d99349f7e35.zip |
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 <kraxel@redhat.com>
Message-id: 20181012114540.27829-1-kraxel@redhat.com
Diffstat (limited to 'hw/display/qxl.h')
-rw-r--r-- | hw/display/qxl.h | 1 |
1 files changed, 1 insertions, 0 deletions
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; |