f375e62
From 7d349451b0b2561922927e45d7febeed514d7a86 Mon Sep 17 00:00:00 2001
5ba1a77
From: Gerd Hoffmann <kraxel@redhat.com>
5ba1a77
Date: Tue, 25 Sep 2012 13:56:40 +0200
5544c1b
Subject: [PATCH] qxl: fix range check for rev3 io commands.
5ba1a77
5ba1a77
Enables QXL_IO_FLUSH_SURFACES_ASYNC and QXL_IO_FLUSH_RELEASE
5ba1a77
which are part of the qxl rev3 feature set.
5ba1a77
5ba1a77
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
5ba1a77
---
5ba1a77
 hw/qxl.c | 2 +-
5ba1a77
 1 file changed, 1 insertion(+), 1 deletion(-)
5ba1a77
5ba1a77
diff --git a/hw/qxl.c b/hw/qxl.c
f375e62
index 6b9d5d0..8d33745 100644
5ba1a77
--- a/hw/qxl.c
5ba1a77
+++ b/hw/qxl.c
5544c1b
@@ -1466,7 +1466,7 @@ static void ioport_write(void *opaque, target_phys_addr_t addr,
5ba1a77
     }
5ba1a77
 
5ba1a77
     if (d->revision <= QXL_REVISION_STABLE_V10 &&
5ba1a77
-        io_port >= QXL_IO_FLUSH_SURFACES_ASYNC) {
5ba1a77
+        io_port > QXL_IO_FLUSH_RELEASE) {
5ba1a77
         qxl_set_guest_bug(d, "unsupported io %d for revision %d\n",
5ba1a77
             io_port, d->revision);
5ba1a77
         return;