2012-12-16 23:27:22 +00:00
|
|
|
From 7d349451b0b2561922927e45d7febeed514d7a86 Mon Sep 17 00:00:00 2001
|
2012-09-25 19:47:24 +00:00
|
|
|
From: Gerd Hoffmann <kraxel@redhat.com>
|
|
|
|
Date: Tue, 25 Sep 2012 13:56:40 +0200
|
2012-10-28 18:05:07 +00:00
|
|
|
Subject: [PATCH] qxl: fix range check for rev3 io commands.
|
2012-09-25 19:47:24 +00:00
|
|
|
|
|
|
|
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
|
2012-12-16 23:27:22 +00:00
|
|
|
index 6b9d5d0..8d33745 100644
|
2012-09-25 19:47:24 +00:00
|
|
|
--- a/hw/qxl.c
|
|
|
|
+++ b/hw/qxl.c
|
2012-10-28 18:05:07 +00:00
|
|
|
@@ -1466,7 +1466,7 @@ static void ioport_write(void *opaque, target_phys_addr_t addr,
|
2012-09-25 19:47:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
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;
|