Reset QXL to VGA mode

In Windows guest, if we trigger a bluescreen, Windows will reset GPU to VGA
mode, otherwise the bluescreen will not shown.

Signed-off-by: Qi Zhou <atmgnd@outlook.com>
This commit is contained in:
qi zhou 2023-02-14 04:19:34 +00:00 committed by Frediano Ziglio
parent 64a9d73b10
commit 459536ecb9

View File

@ -3869,7 +3869,7 @@ void QxlDevice::ResetDevice(void)
{
DbgPrint(TRACE_LEVEL_VERBOSE, ("---> %s\n", __FUNCTION__));
m_RamHdr->int_mask = ~0;
WRITE_PORT_UCHAR(m_IoBase + QXL_IO_MEMSLOT_ADD, 0);
WRITE_PORT_UCHAR(m_IoBase + QXL_IO_RESET, 0);
DbgPrint(TRACE_LEVEL_VERBOSE, ("<--- %s\n", __FUNCTION__));
}