5ba1a77e21
- Fix building with usbredir >= 0.5.2
30 lines
909 B
Diff
30 lines
909 B
Diff
From 3133cf6b440dab301639ff979714bb08cab68eec Mon Sep 17 00:00:00 2001
|
|
From: Gerd Hoffmann <kraxel@redhat.com>
|
|
Date: Tue, 25 Sep 2012 13:56:40 +0200
|
|
Subject: [PATCH 228/228] qxl: fix range check for rev3 io commands.
|
|
|
|
Enables QXL_IO_FLUSH_SURFACES_ASYNC and QXL_IO_FLUSH_RELEASE
|
|
which are part of the qxl rev3 feature set.
|
|
|
|
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
|
|
---
|
|
hw/qxl.c | 2 +-
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
|
diff --git a/hw/qxl.c b/hw/qxl.c
|
|
index 1f0f4e7..ad5ebd5 100644
|
|
--- a/hw/qxl.c
|
|
+++ b/hw/qxl.c
|
|
@@ -1470,7 +1470,7 @@ static void ioport_write(void *opaque, target_phys_addr_t addr,
|
|
}
|
|
|
|
if (d->revision <= QXL_REVISION_STABLE_V10 &&
|
|
- io_port >= QXL_IO_FLUSH_SURFACES_ASYNC) {
|
|
+ io_port > QXL_IO_FLUSH_RELEASE) {
|
|
qxl_set_guest_bug(d, "unsupported io %d for revision %d\n",
|
|
io_port, d->revision);
|
|
return;
|
|
--
|
|
1.7.12
|
|
|