summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlon Levy <alevy@redhat.com>2011-06-29 11:53:21 +0200
committerAlon Levy <alevy@redhat.com>2011-06-29 11:53:27 +0200
commit689751989c66b8f426c60899a9054af3caab7b8a (patch)
tree9cfd85034c6fa27b441cb2cf41932bba66181b44
parent3f7f61db21a8bfb1f20bb977d2262871bb4d26ce (diff)
qxl: only disallow specific io's in vga modes3.v3
Since the driver is still operation also after moving to UNDEFINED, i.e. by destroying primary in any way.
-rw-r--r--hw/qxl.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/hw/qxl.c b/hw/qxl.c
index 833c76cc7..83c29c0dd 100644
--- a/hw/qxl.c
+++ b/hw/qxl.c
@@ -1080,8 +1080,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",
__FUNCTION__, io_port, io_port_to_string(io_port));
/* be nice to buggy guest drivers */