Blame 0227-qxl-fix-range-check-for-rev3-io-commands.patch

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