mirror of
https://git.proxmox.com/git/qemu
synced 2025-08-15 08:04:12 +00:00
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:
|
case QXL_IO_LOG:
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
if (d->mode == QXL_MODE_NATIVE || d->mode == QXL_MODE_COMPAT)
|
if (d->mode != QXL_MODE_VGA) {
|
||||||
break;
|
break;
|
||||||
|
}
|
||||||
dprint(d, 1, "%s: unexpected port 0x%x (%s) in vga mode\n",
|
dprint(d, 1, "%s: unexpected port 0x%x (%s) in vga mode\n",
|
||||||
__func__, io_port, io_port_to_string(io_port));
|
__func__, io_port, io_port_to_string(io_port));
|
||||||
return;
|
return;
|
||||||
|
Loading…
Reference in New Issue
Block a user