From 459536ecb9b2df9656277b9bbd8b155b04b6ed01 Mon Sep 17 00:00:00 2001 From: qi zhou Date: Tue, 14 Feb 2023 04:19:34 +0000 Subject: [PATCH] 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 --- qxldod/QxlDod.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qxldod/QxlDod.cpp b/qxldod/QxlDod.cpp index f498115..25b9af6 100755 --- a/qxldod/QxlDod.cpp +++ b/qxldod/QxlDod.cpp @@ -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__)); }