aboutsummaryrefslogtreecommitdiff
path: root/hw/qxl.h
diff options
context:
space:
mode:
authorGerd Hoffmann <kraxel@redhat.com>2011-07-20 12:21:00 +0300
committerGerd Hoffmann <kraxel@redhat.com>2011-08-03 12:03:06 +0200
commit9197a7c8af41c2a410d5debcf20deabbc20243c0 (patch)
treed5cba234ad42c535b30c99e6154de2117692d068 /hw/qxl.h
parent3e16b9c53493d6107c5a1ec810ace2447fcb11eb (diff)
downloadqemu-9197a7c8af41c2a410d5debcf20deabbc20243c0.zip
qemu-9197a7c8af41c2a410d5debcf20deabbc20243c0.tar.gz
qemu-9197a7c8af41c2a410d5debcf20deabbc20243c0.tar.bz2
qxl: bump pci rev
Inform guest drivers about the new features I/O commands we have now (async commands, S3 support) if building with newer spice, i.e. if SPICE_INTERFACE_QXL_MINOR >= 1. sneaked in some 81+ column line spliting. Signed-off-by: Gerd Hoffmann <kraxel@redhat.com> Signed-off-by: Alon Levy <alevy@redhat.com>
Diffstat (limited to 'hw/qxl.h')
-rw-r--r--hw/qxl.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/hw/qxl.h b/hw/qxl.h
index 1046205..4bcf7e1 100644
--- a/hw/qxl.h
+++ b/hw/qxl.h
@@ -102,6 +102,12 @@ typedef struct PCIQXLDevice {
} \
} while (0)
+#if SPICE_INTERFACE_QXL_MINOR >= 1
+#define QXL_DEFAULT_REVISION QXL_REVISION_STABLE_V10
+#else
+#define QXL_DEFAULT_REVISION QXL_REVISION_STABLE_V06
+#endif
+
/* qxl.c */
void *qxl_phys2virt(PCIQXLDevice *qxl, QXLPHYSICAL phys, int group_id);
void qxl_guest_bug(PCIQXLDevice *qxl, const char *msg, ...);