public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
* [PATCH] OvmfPkg: initialize bochs when initializing vmsvga
@ 2018-10-23  2:40 yuchenlin
  2018-10-23 10:18 ` Laszlo Ersek
  0 siblings, 1 reply; 7+ messages in thread
From: yuchenlin @ 2018-10-23  2:40 UTC (permalink / raw)
  To: edk2-devel
  Cc: jordan.l.justen, lersek, ard.biesheuvel, anthony.perard,
	julien.grall, yuchenlin

From: yuchenlin <yuchenlin@synology.com>

When driver doesn't set fifo config, the vmsvga will fall back
to std vga. However, we don't initialize vbe related port. It
causes blank screen in qemu console.

This patch will fix "Guest has not initialized the display (yet)"
when using qemu -device vmware-svga with ovmf.

Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: yuchenlin <yuchenlin@synology.com>
---
 OvmfPkg/QemuVideoDxe/Driver.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/OvmfPkg/QemuVideoDxe/Driver.c b/OvmfPkg/QemuVideoDxe/Driver.c
index 0dce80e59..255c01881 100644
--- a/OvmfPkg/QemuVideoDxe/Driver.c
+++ b/OvmfPkg/QemuVideoDxe/Driver.c
@@ -1067,8 +1067,7 @@ InitializeVmwareSvgaGraphicsMode (
 
   VmwareSvgaWrite (Private, VmwareSvgaRegEnable, 1);
 
-  SetDefaultPalette (Private);
-  ClearScreen (Private);
+  InitializeBochsGraphicsMode (Private, ModeData);
 }
 
 EFI_STATUS
-- 
2.18.0



^ permalink raw reply related	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2018-10-24  1:33 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-10-23  2:40 [PATCH] OvmfPkg: initialize bochs when initializing vmsvga yuchenlin
2018-10-23 10:18 ` Laszlo Ersek
2018-10-23 11:12   ` yuchenlin
2018-10-23 12:45     ` Laszlo Ersek
2018-10-23 13:42       ` Gerd Hoffmann
2018-10-23 14:02         ` Laszlo Ersek
2018-10-24  1:33           ` yuchenlin

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox