From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received-SPF: Pass (sender SPF authorized) identity=mailfrom; client-ip=59.124.61.242; helo=synology.com; envelope-from=yuchenlin@synology.com; receiver=edk2-devel@lists.01.org Received: from synology.com (synology.com [59.124.61.242]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id DB0CD21C8EFB5 for ; Mon, 22 Oct 2018 19:42:51 -0700 (PDT) From: yuchenlin@synology.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=synology.com; s=123; t=1540262570; bh=Ah2edA/EcCsCwLb88nqzeQ5jccrCMPpwTbzOthqzTz0=; h=From:To:Cc:Subject:Date; b=N9kf9FvIRlXTTvRqBEyZGU9MqBWvlIeGAvJXJJwbg0dzlVql0+FIUBo2AP7Qbj0Sy VboP0ykCnoKN2j4KGtHBRnedteH5+BJ9gzk4cxGdzY2TQSWD+G87lPxtYp42PSw6Mb k21OtY5O+4taoi1+4/bTMYyJo9PIIcGcgvOGjLrE= To: edk2-devel@lists.01.org Cc: jordan.l.justen@intel.com, lersek@redhat.com, ard.biesheuvel@linaro.org, anthony.perard@citrix.com, julien.grall@linaro.org, yuchenlin Date: Tue, 23 Oct 2018 10:40:57 +0800 Message-Id: <20181023024057.21942-1-yuchenlin@synology.com> X-Synology-MCP-Status: no X-Synology-Spam-Flag: no X-Synology-Spam-Status: score=0, required 6, WHITELIST_FROM_ADDRESS 0 X-Synology-Virus-Status: no Subject: [PATCH] OvmfPkg: initialize bochs when initializing vmsvga X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 23 Oct 2018 02:42:53 -0000 From: yuchenlin 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 --- 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