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 <alevy@redhat.com> Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
This commit is contained in:
parent
7635392ce6
commit
e21a298a7b
3
hw/qxl.c
3
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;
|
||||
|
Loading…
Reference in New Issue
Block a user