Change requested in launchpad bug #1288352
[packages/centos6/qemu.git] / 0513-qxl-fix-range-check-for-rev3-io-commands.patch
1 From 0e0d8cfb93813c0d693b14e3d433d36ee9bc6bab Mon Sep 17 00:00:00 2001
2 From: Gerd Hoffmann <kraxel@redhat.com>
3 Date: Tue, 25 Sep 2012 13:56:40 +0200
4 Subject: [PATCH] qxl: fix range check for rev3 io commands.
5
6 Enables QXL_IO_FLUSH_SURFACES_ASYNC and QXL_IO_FLUSH_RELEASE
7 which are part of the qxl rev3 feature set.
8
9 Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
10 ---
11  hw/qxl.c | 2 +-
12  1 file changed, 1 insertion(+), 1 deletion(-)
13
14 diff --git a/hw/qxl.c b/hw/qxl.c
15 index 720363f..9389752 100644
16 --- a/hw/qxl.c
17 +++ b/hw/qxl.c
18 @@ -1466,7 +1466,7 @@ static void ioport_write(void *opaque, target_phys_addr_t addr,
19      }
20  
21      if (d->revision <= QXL_REVISION_STABLE_V10 &&
22 -        io_port >= QXL_IO_FLUSH_SURFACES_ASYNC) {
23 +        io_port > QXL_IO_FLUSH_RELEASE) {
24          qxl_set_guest_bug(d, "unsupported io %d for revision %d\n",
25              io_port, d->revision);
26          return;
27 -- 
28 1.7.12.1
29