Patchwork [3/8] qxl: fix range check for rev3 io commands.

login
register
mail settings
Submitter Gerd Hoffmann
Date Oct. 8, 2012, 10:49 a.m.
Message ID <1349693391-32704-4-git-send-email-kraxel@redhat.com>
Download mbox | patch
Permalink /patch/189984/
State New
Headers show

Comments

Gerd Hoffmann - Oct. 8, 2012, 10:49 a.m.
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 files changed, 1 insertions(+), 1 deletions(-)

Patch

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;