diff options
author | Alon Levy <alevy@redhat.com> | 2011-06-29 11:53:21 +0200 |
---|---|---|
committer | Alon Levy <alevy@redhat.com> | 2011-06-29 11:53:27 +0200 |
commit | 689751989c66b8f426c60899a9054af3caab7b8a (patch) | |
tree | 9cfd85034c6fa27b441cb2cf41932bba66181b44 | |
parent | 3f7f61db21a8bfb1f20bb977d2262871bb4d26ce (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.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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 */ |