render / rpms / qemu

Forked from rpms/qemu 7 months ago
Clone

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

Justin M. Forbes 13f703
>From 4eb9272a4185cf47a4a4e9cb59a95cfd9939e86c 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 13f703
Subject: [PATCH 21/25] 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