From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received-SPF: Pass (sender SPF authorized) identity=mailfrom; client-ip=209.132.183.28; helo=mx1.redhat.com; envelope-from=lersek@redhat.com; receiver=edk2-devel@lists.01.org Received: from mx1.redhat.com (mx1.redhat.com [209.132.183.28]) (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 8D084201B0403 for ; Wed, 20 Feb 2019 00:16:56 -0800 (PST) Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.phx2.redhat.com [10.5.11.16]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id F12C9368E7; Wed, 20 Feb 2019 08:16:55 +0000 (UTC) Received: from lacos-laptop-7.usersys.redhat.com (ovpn-120-220.rdu2.redhat.com [10.10.120.220]) by smtp.corp.redhat.com (Postfix) with ESMTP id 6346461B9C; Wed, 20 Feb 2019 08:16:54 +0000 (UTC) From: Laszlo Ersek To: edk2-devel@lists.01.org Cc: Anthony Perard , Ard Biesheuvel , Jordan Justen , Julien Grall , Ray Ni Date: Wed, 20 Feb 2019 09:16:42 +0100 Message-Id: <20190220081644.8238-4-lersek@redhat.com> In-Reply-To: <20190220081644.8238-1-lersek@redhat.com> References: <20190220081644.8238-1-lersek@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.16 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.30]); Wed, 20 Feb 2019 08:16:56 +0000 (UTC) Subject: [PATCH v2 3/5] OvmfPkg/PlatformBootManagerLib: display boot option loading/starting 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: Wed, 20 Feb 2019 08:16:56 -0000 Content-Transfer-Encoding: 8bit Consume PlatformBmPrintScLib, added earlier in this series. When BdsDxe+UefiBootManagerLib report LoadImage() / StartImage() preparations and return statuses, print the reports to the UEFI console. This allows end-users better visibility into the boot process. Cc: Anthony Perard Cc: Ard Biesheuvel Cc: Jordan Justen Cc: Julien Grall Cc: Ray Ni Ref: https://bugzilla.redhat.com/show_bug.cgi?id=1515418 Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Laszlo Ersek --- Notes: v2: - Split the OvmfPkg/PlatformBootManagerLib change to a separate patch. - Drop general messages from PlatformBootManagerAfterConsole(), which would report calls of EfiBootManagerRefreshAllBootOption(), RemoveStaleFvFileOptions(), and SetBootOrderFromQemu(). Those messages weren't really helpful for diagnosing boot problems. OvmfPkg/Library/PlatformBootManagerLib/PlatformBootManagerLib.inf | 1 + OvmfPkg/Library/PlatformBootManagerLib/BdsPlatform.c | 3 +++ 2 files changed, 4 insertions(+) diff --git a/OvmfPkg/Library/PlatformBootManagerLib/PlatformBootManagerLib.inf b/OvmfPkg/Library/PlatformBootManagerLib/PlatformBootManagerLib.inf index 5d9b53bf2d1e..c41aaeef3fc3 100644 --- a/OvmfPkg/Library/PlatformBootManagerLib/PlatformBootManagerLib.inf +++ b/OvmfPkg/Library/PlatformBootManagerLib/PlatformBootManagerLib.inf @@ -58,6 +58,7 @@ [LibraryClasses] QemuBootOrderLib ReportStatusCodeLib UefiLib + PlatformBmPrintScLib Tcg2PhysicalPresenceLib [Pcd] diff --git a/OvmfPkg/Library/PlatformBootManagerLib/BdsPlatform.c b/OvmfPkg/Library/PlatformBootManagerLib/BdsPlatform.c index b2faa797c61b..12303fb0f1f3 100644 --- a/OvmfPkg/Library/PlatformBootManagerLib/BdsPlatform.c +++ b/OvmfPkg/Library/PlatformBootManagerLib/BdsPlatform.c @@ -16,6 +16,7 @@ #include #include #include +#include #include @@ -1542,6 +1543,8 @@ PlatformBootManagerAfterConsole ( RemoveStaleFvFileOptions (); SetBootOrderFromQemu (); + + PlatformBmPrintScRegisterHandler (); } /** -- 2.19.1.3.g30247aa5d201