Marc-André Lureau
eeee989f72
qxl: don't assert() if device isn't yet initialized
If the PCI BAR isn't yet mapped or was unmapped, QXL_IO_SET_MODE will
assert(). Instead, report a guest bug and keep going.
This can be reproduced with:
cat << EOF | ./qemu-system-x86_64 -vga qxl -m 2048 -nodefaults -qtest stdio
outl 0xcf8 0x8000101c
outl 0xcfc 0xc000
outl 0xcf8 0x80001001
outl 0xcfc 0x01000000
outl 0xc006 0x00
EOF
Fixes: https://gitlab.com/qemu-project/qemu/-/issues/1829
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Reviewed-by: Thomas Huth <thuth@redhat.com>
Cc: qemu-stable@nongnu.org
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
(cherry picked from commit 95bef686e490bc3afc3f51f5fc6e20bf260b938c)
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
2023-09-21 19:35:19 +03:00
..
2023-01-18 11:14:34 +01:00
2023-01-18 11:14:34 +01:00
2023-06-20 10:01:30 +02:00
2023-01-12 17:15:09 +00:00
2023-01-12 17:15:09 +00:00
2023-03-13 22:57:39 +04:00
2023-09-21 19:35:19 +03:00
2023-01-19 13:30:01 +01:00
2023-05-05 12:34:22 -03:00
2023-01-19 13:30:01 +01:00
2023-04-20 11:25:32 +02:00
2023-07-10 18:59:32 -04:00
2023-08-07 15:45:25 +04:00
2023-07-17 15:22:28 +04:00
2023-06-27 17:08:56 +02:00
2023-08-07 15:45:45 +04:00
2023-03-13 22:57:39 +04:00
2023-03-07 17:04:30 +00:00