From: Alon Levy Date: Wed, 20 Jul 2011 09:20:57 +0000 (+0300) Subject: qxl: only disallow specific io's in vga mode X-Git-Tag: v1.0-rc0~568^2~3^2~3 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=e21a298a7b7a5c5e8edc4912dec3b497497c347d;p=thirdparty%2Fqemu.git 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 --- diff --git a/hw/qxl.c b/hw/qxl.c index c50eaf9ac11..23e32403795 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;