Blame 0019-qxl-only-disallow-specific-io-s-in-vga-mode.patch

Justin M. Forbes fc5c27
>From e8f481961a5fd3ad92a55dbabcccf09b037d86c9 Mon Sep 17 00:00:00 2001
Justin M. Forbes 13f703
From: Alon Levy <alevy@redhat.com>
Justin M. Forbes 13f703
Date: Wed, 29 Jun 2011 11:53:21 +0200
Justin M. Forbes fc5c27
Subject: [PATCH 19/28] qxl: only disallow specific io's in vga mode
Justin M. Forbes 13f703
Justin M. Forbes 13f703
Since the driver is still in operation even after moving to UNDEFINED, i.e.
Justin M. Forbes 13f703
by destroying primary in any way.
Justin M. Forbes 13f703
Justin M. Forbes 13f703
Signed-off-by: Alon Levy <alevy@redhat.com>
Justin M. Forbes 13f703
---
Justin M. Forbes 13f703
 hw/qxl.c |    3 ++-
Justin M. Forbes 13f703
 1 files changed, 2 insertions(+), 1 deletions(-)
Justin M. Forbes 13f703
Justin M. Forbes 13f703
diff --git a/hw/qxl.c b/hw/qxl.c
Justin M. Forbes 13f703
index c50eaf9..23e3240 100644
Justin M. Forbes 13f703
--- a/hw/qxl.c
Justin M. Forbes 13f703
+++ b/hw/qxl.c
Justin M. Forbes 13f703
@@ -1055,8 +1055,9 @@ static void ioport_write(void *opaque, uint32_t addr, uint32_t val)
Justin M. Forbes 13f703
     case QXL_IO_LOG:
Justin M. Forbes 13f703
         break;
Justin M. Forbes 13f703
     default:
Justin M. Forbes 13f703
-        if (d->mode == QXL_MODE_NATIVE || d->mode == QXL_MODE_COMPAT)
Justin M. Forbes 13f703
+        if (d->mode != QXL_MODE_VGA) {
Justin M. Forbes 13f703
             break;
Justin M. Forbes 13f703
+        }
Justin M. Forbes 13f703
         dprint(d, 1, "%s: unexpected port 0x%x (%s) in vga mode\n",
Justin M. Forbes 13f703
             __func__, io_port, io_port_to_string(io_port));
Justin M. Forbes 13f703
         return;
Justin M. Forbes 13f703
-- 
Justin M. Forbes 13f703
1.7.5.1
Justin M. Forbes 13f703