Blame 0513-qxl-fix-range-check-for-rev3-io-commands.patch
|
|
5544c1 |
From 0e0d8cfb93813c0d693b14e3d433d36ee9bc6bab 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
|
|
|
5544c1 |
Subject: [PATCH] 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
|
|
|
5544c1 |
index 720363f..9389752 100644
|
|
Hans de Goede |
5ba1a7 |
--- a/hw/qxl.c
|
|
Hans de Goede |
5ba1a7 |
+++ b/hw/qxl.c
|
|
|
5544c1 |
@@ -1466,7 +1466,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 |
--
|
|
|
5544c1 |
1.7.12.1
|
|
Hans de Goede |
5ba1a7 |
|