summaryrefslogtreecommitdiffstats
path: root/hw
diff options
context:
space:
mode:
authorGerd Hoffmann <kraxel@redhat.com>2012-09-25 13:56:40 +0200
committerGerd Hoffmann <kraxel@redhat.com>2012-10-08 12:15:17 +0200
commitffe01e599f106bedf13ba0e0f6956735b1942a0c (patch)
tree3a698ef2d1cb0e562ea5479a4e1abb60ee4efca6 /hw
parent36a03e0ba5202cf49749b2128bb62d41983681d6 (diff)
downloadhqemu-ffe01e599f106bedf13ba0e0f6956735b1942a0c.zip
hqemu-ffe01e599f106bedf13ba0e0f6956735b1942a0c.tar.gz
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>
Diffstat (limited to 'hw')
-rw-r--r--hw/qxl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/qxl.c b/hw/qxl.c
index 3c82c2a..eb7707c 100644
--- a/hw/qxl.c
+++ b/hw/qxl.c
@@ -1466,7 +1466,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;
OpenPOWER on IntegriCloud