|
Justin M. Forbes |
13f703 |
>From 37779d77dff7cb73d333a6440cadd1db0638516b Mon Sep 17 00:00:00 2001
|
|
Justin M. Forbes |
13f703 |
From: Gerd Hoffmann <kraxel@redhat.com>
|
|
Justin M. Forbes |
13f703 |
Date: Wed, 29 Jun 2011 15:51:24 +0200
|
|
Justin M. Forbes |
13f703 |
Subject: [PATCH 24/25] qxl: bump pci rev
|
|
Justin M. Forbes |
13f703 |
|
|
Justin M. Forbes |
13f703 |
Inform guest drivers about the new features I/O commands we have
|
|
Justin M. Forbes |
13f703 |
now (async commands, S3 support) if building with newer spice, i.e.
|
|
Justin M. Forbes |
13f703 |
if SPICE_INTERFACE_QXL_MINOR >= 1.
|
|
Justin M. Forbes |
13f703 |
|
|
Justin M. Forbes |
13f703 |
sneaked in some 81+ column line spliting.
|
|
Justin M. Forbes |
13f703 |
|
|
Justin M. Forbes |
13f703 |
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
|
|
Justin M. Forbes |
13f703 |
Signed-off-by: Alon Levy <alevy@redhat.com>
|
|
Justin M. Forbes |
13f703 |
---
|
|
Justin M. Forbes |
13f703 |
hw/qxl.c | 25 ++++++++++++++++++-------
|
|
Justin M. Forbes |
13f703 |
hw/qxl.h | 6 ++++++
|
|
Justin M. Forbes |
13f703 |
2 files changed, 24 insertions(+), 7 deletions(-)
|
|
Justin M. Forbes |
13f703 |
|
|
Justin M. Forbes |
13f703 |
diff --git a/hw/qxl.c b/hw/qxl.c
|
|
Justin M. Forbes |
13f703 |
index 847a9b8..b684608 100644
|
|
Justin M. Forbes |
13f703 |
--- a/hw/qxl.c
|
|
Justin M. Forbes |
13f703 |
+++ b/hw/qxl.c
|
|
Justin M. Forbes |
13f703 |
@@ -1566,9 +1566,14 @@ static int qxl_init_common(PCIQXLDevice *qxl)
|
|
Justin M. Forbes |
13f703 |
pci_device_rev = QXL_REVISION_STABLE_V04;
|
|
Justin M. Forbes |
13f703 |
break;
|
|
Justin M. Forbes |
13f703 |
case 2: /* spice 0.6 -- qxl-2 */
|
|
Justin M. Forbes |
13f703 |
- default:
|
|
Justin M. Forbes |
13f703 |
pci_device_rev = QXL_REVISION_STABLE_V06;
|
|
Justin M. Forbes |
13f703 |
break;
|
|
Justin M. Forbes |
13f703 |
+#if SPICE_INTERFACE_QXL_MINOR >= 1
|
|
Justin M. Forbes |
13f703 |
+ case 3: /* qxl-3 */
|
|
Justin M. Forbes |
13f703 |
+#endif
|
|
Justin M. Forbes |
13f703 |
+ default:
|
|
Justin M. Forbes |
13f703 |
+ pci_device_rev = QXL_DEFAULT_REVISION;
|
|
Justin M. Forbes |
13f703 |
+ break;
|
|
Justin M. Forbes |
13f703 |
}
|
|
Justin M. Forbes |
13f703 |
|
|
Justin M. Forbes |
13f703 |
pci_set_byte(&config[PCI_REVISION_ID], pci_device_rev);
|
|
Justin M. Forbes |
13f703 |
@@ -1830,9 +1835,12 @@ static PCIDeviceInfo qxl_info_primary = {
|
|
Justin M. Forbes |
13f703 |
.device_id = QXL_DEVICE_ID_STABLE,
|
|
Justin M. Forbes |
13f703 |
.class_id = PCI_CLASS_DISPLAY_VGA,
|
|
Justin M. Forbes |
13f703 |
.qdev.props = (Property[]) {
|
|
Justin M. Forbes |
13f703 |
- DEFINE_PROP_UINT32("ram_size", PCIQXLDevice, vga.vram_size, 64 * 1024 * 1024),
|
|
Justin M. Forbes |
13f703 |
- DEFINE_PROP_UINT32("vram_size", PCIQXLDevice, vram_size, 64 * 1024 * 1024),
|
|
Justin M. Forbes |
13f703 |
- DEFINE_PROP_UINT32("revision", PCIQXLDevice, revision, 2),
|
|
Justin M. Forbes |
13f703 |
+ DEFINE_PROP_UINT32("ram_size", PCIQXLDevice, vga.vram_size,
|
|
Justin M. Forbes |
13f703 |
+ 64 * 1024 * 1024),
|
|
Justin M. Forbes |
13f703 |
+ DEFINE_PROP_UINT32("vram_size", PCIQXLDevice, vram_size,
|
|
Justin M. Forbes |
13f703 |
+ 64 * 1024 * 1024),
|
|
Justin M. Forbes |
13f703 |
+ DEFINE_PROP_UINT32("revision", PCIQXLDevice, revision,
|
|
Justin M. Forbes |
13f703 |
+ QXL_DEFAULT_REVISION),
|
|
Justin M. Forbes |
13f703 |
DEFINE_PROP_UINT32("debug", PCIQXLDevice, debug, 0),
|
|
Justin M. Forbes |
13f703 |
DEFINE_PROP_UINT32("guestdebug", PCIQXLDevice, guestdebug, 0),
|
|
Justin M. Forbes |
13f703 |
DEFINE_PROP_UINT32("cmdlog", PCIQXLDevice, cmdlog, 0),
|
|
Justin M. Forbes |
13f703 |
@@ -1851,9 +1859,12 @@ static PCIDeviceInfo qxl_info_secondary = {
|
|
Justin M. Forbes |
13f703 |
.device_id = QXL_DEVICE_ID_STABLE,
|
|
Justin M. Forbes |
13f703 |
.class_id = PCI_CLASS_DISPLAY_OTHER,
|
|
Justin M. Forbes |
13f703 |
.qdev.props = (Property[]) {
|
|
Justin M. Forbes |
13f703 |
- DEFINE_PROP_UINT32("ram_size", PCIQXLDevice, vga.vram_size, 64 * 1024 * 1024),
|
|
Justin M. Forbes |
13f703 |
- DEFINE_PROP_UINT32("vram_size", PCIQXLDevice, vram_size, 64 * 1024 * 1024),
|
|
Justin M. Forbes |
13f703 |
- DEFINE_PROP_UINT32("revision", PCIQXLDevice, revision, 2),
|
|
Justin M. Forbes |
13f703 |
+ DEFINE_PROP_UINT32("ram_size", PCIQXLDevice, vga.vram_size,
|
|
Justin M. Forbes |
13f703 |
+ 64 * 1024 * 1024),
|
|
Justin M. Forbes |
13f703 |
+ DEFINE_PROP_UINT32("vram_size", PCIQXLDevice, vram_size,
|
|
Justin M. Forbes |
13f703 |
+ 64 * 1024 * 1024),
|
|
Justin M. Forbes |
13f703 |
+ DEFINE_PROP_UINT32("revision", PCIQXLDevice, revision,
|
|
Justin M. Forbes |
13f703 |
+ QXL_DEFAULT_REVISION),
|
|
Justin M. Forbes |
13f703 |
DEFINE_PROP_UINT32("debug", PCIQXLDevice, debug, 0),
|
|
Justin M. Forbes |
13f703 |
DEFINE_PROP_UINT32("guestdebug", PCIQXLDevice, guestdebug, 0),
|
|
Justin M. Forbes |
13f703 |
DEFINE_PROP_UINT32("cmdlog", PCIQXLDevice, cmdlog, 0),
|
|
Justin M. Forbes |
13f703 |
diff --git a/hw/qxl.h b/hw/qxl.h
|
|
Justin M. Forbes |
13f703 |
index 1046205..4bcf7e1 100644
|
|
Justin M. Forbes |
13f703 |
--- a/hw/qxl.h
|
|
Justin M. Forbes |
13f703 |
+++ b/hw/qxl.h
|
|
Justin M. Forbes |
13f703 |
@@ -102,6 +102,12 @@ typedef struct PCIQXLDevice {
|
|
Justin M. Forbes |
13f703 |
} \
|
|
Justin M. Forbes |
13f703 |
} while (0)
|
|
Justin M. Forbes |
13f703 |
|
|
Justin M. Forbes |
13f703 |
+#if SPICE_INTERFACE_QXL_MINOR >= 1
|
|
Justin M. Forbes |
13f703 |
+#define QXL_DEFAULT_REVISION QXL_REVISION_STABLE_V10
|
|
Justin M. Forbes |
13f703 |
+#else
|
|
Justin M. Forbes |
13f703 |
+#define QXL_DEFAULT_REVISION QXL_REVISION_STABLE_V06
|
|
Justin M. Forbes |
13f703 |
+#endif
|
|
Justin M. Forbes |
13f703 |
+
|
|
Justin M. Forbes |
13f703 |
/* qxl.c */
|
|
Justin M. Forbes |
13f703 |
void *qxl_phys2virt(PCIQXLDevice *qxl, QXLPHYSICAL phys, int group_id);
|
|
Justin M. Forbes |
13f703 |
void qxl_guest_bug(PCIQXLDevice *qxl, const char *msg, ...);
|
|
Justin M. Forbes |
13f703 |
--
|
|
Justin M. Forbes |
13f703 |
1.7.5.1
|
|
Justin M. Forbes |
13f703 |
|