From e21a298a7b7a5c5e8edc4912dec3b497497c347d Mon Sep 17 00:00:00 2001 From: Alon Levy Date: Wed, 20 Jul 2011 12:20:57 +0300 Subject: [PATCH] qxl: only disallow specific io's in vga mode Since the driver is still in operation even after moving to UNDEFINED, i.e. by destroying primary in any way. Signed-off-by: Alon Levy Signed-off-by: Gerd Hoffmann --- hw/qxl.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/hw/qxl.c b/hw/qxl.c index c50eaf9ac1..23e3240379 100644 --- a/hw/qxl.c +++ b/hw/qxl.c @@ -1055,8 +1055,9 @@ static void ioport_write(void *opaque, uint32_t addr, uint32_t val) case QXL_IO_LOG: break; default: - if (d->mode == QXL_MODE_NATIVE || d->mode == QXL_MODE_COMPAT) + if (d->mode != QXL_MODE_VGA) { break; + } dprint(d, 1, "%s: unexpected port 0x%x (%s) in vga mode\n", __func__, io_port, io_port_to_string(io_port)); return;