* [PATCH 0/2] OvmfPkg, ArmVirtPkg: sync Timeout with PcdPlatformBootTimeOut
@ 2020-03-04 9:44 Laszlo Ersek
2020-03-04 9:44 ` [PATCH 1/2] OvmfPkg/PlatformBootManagerLib: " Laszlo Ersek
` (4 more replies)
0 siblings, 5 replies; 9+ messages in thread
From: Laszlo Ersek @ 2020-03-04 9:44 UTC (permalink / raw)
To: edk2-devel-groups-io
Cc: Ard Biesheuvel, Jordan Justen, Leif Lindholm,
Philippe Mathieu-Daudé
Repo: https://pagure.io/lersek/edk2.git
Branch: timeout_var
In the PlatformBootManagerLib instances, set the Timeout global variable
to the same value as PcdPlatformBootTimeOut. This way the "setvar"
command in the UEFI shell, and the "efibootmgr" command in a Linux
guest, can report the front page timeout that was requested on the QEMU
command line (see GetFrontPageTimeoutFromQemu() in
"OvmfPkg/Library/QemuBootOrderLib/QemuBootOrderLib.c").
A DEBUG_VERBOSE message is logged on success too, for our QE team's
sake.
Cc: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Cc: Jordan Justen <jordan.l.justen@intel.com>
Cc: Leif Lindholm <leif@nuviainc.com>
Cc: Philippe Mathieu-Daudé <philmd@redhat.com>
Thanks
Laszlo
Laszlo Ersek (2):
OvmfPkg/PlatformBootManagerLib: sync Timeout with
PcdPlatformBootTimeOut
ArmVirtPkg/PlatformBootManagerLib: sync Timeout with
PcdPlatformBootTimeOut
ArmVirtPkg/Library/PlatformBootManagerLib/PlatformBm.c | 27 ++++++++++++++++++--
ArmVirtPkg/Library/PlatformBootManagerLib/PlatformBootManagerLib.inf | 1 +
OvmfPkg/Library/PlatformBootManagerLib/BdsPlatform.c | 26 +++++++++++++++++--
OvmfPkg/Library/PlatformBootManagerLib/PlatformBootManagerLib.inf | 2 ++
4 files changed, 52 insertions(+), 4 deletions(-)
--
2.19.1.3.g30247aa5d201
^ permalink raw reply [flat|nested] 9+ messages in thread
* [PATCH 1/2] OvmfPkg/PlatformBootManagerLib: sync Timeout with PcdPlatformBootTimeOut
2020-03-04 9:44 [PATCH 0/2] OvmfPkg, ArmVirtPkg: sync Timeout with PcdPlatformBootTimeOut Laszlo Ersek
@ 2020-03-04 9:44 ` Laszlo Ersek
2020-03-04 9:44 ` [PATCH 2/2] ArmVirtPkg/PlatformBootManagerLib: " Laszlo Ersek
` (3 subsequent siblings)
4 siblings, 0 replies; 9+ messages in thread
From: Laszlo Ersek @ 2020-03-04 9:44 UTC (permalink / raw)
To: edk2-devel-groups-io
Cc: Ard Biesheuvel, Jordan Justen, Philippe Mathieu-Daudé
Set the Timeout global variable to the same value as
PcdPlatformBootTimeOut. This way the "setvar" command in the UEFI shell,
and the "efibootmgr" command in a Linux guest, can report the front page
timeout that was requested on the QEMU command line (see
GetFrontPageTimeoutFromQemu()).
A DEBUG_VERBOSE message is logged on success too, for our QE team's sake.
Cc: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Cc: Jordan Justen <jordan.l.justen@intel.com>
Cc: Philippe Mathieu-Daudé <philmd@redhat.com>
Signed-off-by: Laszlo Ersek <lersek@redhat.com>
---
OvmfPkg/Library/PlatformBootManagerLib/PlatformBootManagerLib.inf | 2 ++
OvmfPkg/Library/PlatformBootManagerLib/BdsPlatform.c | 26 ++++++++++++++++++--
2 files changed, 26 insertions(+), 2 deletions(-)
diff --git a/OvmfPkg/Library/PlatformBootManagerLib/PlatformBootManagerLib.inf b/OvmfPkg/Library/PlatformBootManagerLib/PlatformBootManagerLib.inf
index f89cce187942..c479f113b92b 100644
--- a/OvmfPkg/Library/PlatformBootManagerLib/PlatformBootManagerLib.inf
+++ b/OvmfPkg/Library/PlatformBootManagerLib/PlatformBootManagerLib.inf
@@ -38,6 +38,7 @@ [LibraryClasses]
BaseLib
MemoryAllocationLib
UefiBootServicesTableLib
+ UefiRuntimeServicesTableLib
BaseMemoryLib
DebugLib
PcdLib
@@ -79,5 +80,6 @@ [Protocols]
[Guids]
gEfiEndOfDxeEventGroupGuid
+ gEfiGlobalVariableGuid
gRootBridgesConnectedEventGroupGuid
gUefiShellFileGuid
diff --git a/OvmfPkg/Library/PlatformBootManagerLib/BdsPlatform.c b/OvmfPkg/Library/PlatformBootManagerLib/BdsPlatform.c
index 8af9b71f18a3..45d0ee9cc3a8 100644
--- a/OvmfPkg/Library/PlatformBootManagerLib/BdsPlatform.c
+++ b/OvmfPkg/Library/PlatformBootManagerLib/BdsPlatform.c
@@ -353,6 +353,7 @@ PlatformBootManagerBeforeConsole (
{
EFI_HANDLE Handle;
EFI_STATUS Status;
+ UINT16 FrontPageTimeout;
RETURN_STATUS PcdStatus;
DEBUG ((EFI_D_INFO, "PlatformBootManagerBeforeConsole\n"));
@@ -400,9 +401,30 @@ PlatformBootManagerBeforeConsole (
PlatformInitializeConsole (
XenDetected() ? gXenPlatformConsole : gPlatformConsole);
- PcdStatus = PcdSet16S (PcdPlatformBootTimeOut,
- GetFrontPageTimeoutFromQemu ());
+
+ FrontPageTimeout = GetFrontPageTimeoutFromQemu ();
+ PcdStatus = PcdSet16S (PcdPlatformBootTimeOut, FrontPageTimeout);
ASSERT_RETURN_ERROR (PcdStatus);
+ //
+ // Reflect the PCD in the standard Timeout variable.
+ //
+ Status = gRT->SetVariable (
+ EFI_TIME_OUT_VARIABLE_NAME,
+ &gEfiGlobalVariableGuid,
+ (EFI_VARIABLE_NON_VOLATILE |
+ EFI_VARIABLE_BOOTSERVICE_ACCESS |
+ EFI_VARIABLE_RUNTIME_ACCESS),
+ sizeof FrontPageTimeout,
+ &FrontPageTimeout
+ );
+ DEBUG ((
+ EFI_ERROR (Status) ? DEBUG_ERROR : DEBUG_VERBOSE,
+ "%a: SetVariable(%s, %u): %r\n",
+ __FUNCTION__,
+ EFI_TIME_OUT_VARIABLE_NAME,
+ FrontPageTimeout,
+ Status
+ ));
PlatformRegisterOptionsAndKeys ();
--
2.19.1.3.g30247aa5d201
^ permalink raw reply related [flat|nested] 9+ messages in thread
* [PATCH 2/2] ArmVirtPkg/PlatformBootManagerLib: sync Timeout with PcdPlatformBootTimeOut
2020-03-04 9:44 [PATCH 0/2] OvmfPkg, ArmVirtPkg: sync Timeout with PcdPlatformBootTimeOut Laszlo Ersek
2020-03-04 9:44 ` [PATCH 1/2] OvmfPkg/PlatformBootManagerLib: " Laszlo Ersek
@ 2020-03-04 9:44 ` Laszlo Ersek
2020-03-04 9:54 ` [PATCH 0/2] OvmfPkg, ArmVirtPkg: " Ard Biesheuvel
` (2 subsequent siblings)
4 siblings, 0 replies; 9+ messages in thread
From: Laszlo Ersek @ 2020-03-04 9:44 UTC (permalink / raw)
To: edk2-devel-groups-io
Cc: Ard Biesheuvel, Leif Lindholm, Philippe Mathieu-Daudé
Set the Timeout global variable to the same value as
PcdPlatformBootTimeOut. This way the "setvar" command in the UEFI shell,
and the "efibootmgr" command in a Linux guest, can report the front page
timeout that was requested on the QEMU command line (see
GetFrontPageTimeoutFromQemu()).
A DEBUG_VERBOSE message is logged on success too, for our QE team's sake.
Cc: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Cc: Leif Lindholm <leif@nuviainc.com>
Cc: Philippe Mathieu-Daudé <philmd@redhat.com>
Signed-off-by: Laszlo Ersek <lersek@redhat.com>
---
ArmVirtPkg/Library/PlatformBootManagerLib/PlatformBootManagerLib.inf | 1 +
ArmVirtPkg/Library/PlatformBootManagerLib/PlatformBm.c | 27 ++++++++++++++++++--
2 files changed, 26 insertions(+), 2 deletions(-)
diff --git a/ArmVirtPkg/Library/PlatformBootManagerLib/PlatformBootManagerLib.inf b/ArmVirtPkg/Library/PlatformBootManagerLib/PlatformBootManagerLib.inf
index a9d4888d4377..6fe0a1bb122b 100644
--- a/ArmVirtPkg/Library/PlatformBootManagerLib/PlatformBootManagerLib.inf
+++ b/ArmVirtPkg/Library/PlatformBootManagerLib/PlatformBootManagerLib.inf
@@ -68,6 +68,7 @@ [Guids]
gEfiFileSystemInfoGuid
gEfiFileSystemVolumeLabelInfoIdGuid
gEfiEndOfDxeEventGroupGuid
+ gEfiGlobalVariableGuid
gRootBridgesConnectedEventGroupGuid
gUefiShellFileGuid
diff --git a/ArmVirtPkg/Library/PlatformBootManagerLib/PlatformBm.c b/ArmVirtPkg/Library/PlatformBootManagerLib/PlatformBm.c
index 5f6cfe64daca..69448ff65bde 100644
--- a/ArmVirtPkg/Library/PlatformBootManagerLib/PlatformBm.c
+++ b/ArmVirtPkg/Library/PlatformBootManagerLib/PlatformBm.c
@@ -25,6 +25,7 @@
#include <Protocol/PciRootBridgeIo.h>
#include <Protocol/VirtioDevice.h>
#include <Guid/EventGroup.h>
+#include <Guid/GlobalVariable.h>
#include <Guid/RootBridgesConnectedEventGroup.h>
#include <Guid/SerialPortLibVendor.h>
@@ -686,7 +687,9 @@ PlatformBootManagerBeforeConsole (
VOID
)
{
+ UINT16 FrontPageTimeout;
RETURN_STATUS PcdStatus;
+ EFI_STATUS Status;
//
// Signal EndOfDxe PI Event
@@ -744,9 +747,29 @@ PlatformBootManagerBeforeConsole (
//
// Set the front page timeout from the QEMU configuration.
//
- PcdStatus = PcdSet16S (PcdPlatformBootTimeOut,
- GetFrontPageTimeoutFromQemu ());
+ FrontPageTimeout = GetFrontPageTimeoutFromQemu ();
+ PcdStatus = PcdSet16S (PcdPlatformBootTimeOut, FrontPageTimeout);
ASSERT_RETURN_ERROR (PcdStatus);
+ //
+ // Reflect the PCD in the standard Timeout variable.
+ //
+ Status = gRT->SetVariable (
+ EFI_TIME_OUT_VARIABLE_NAME,
+ &gEfiGlobalVariableGuid,
+ (EFI_VARIABLE_NON_VOLATILE |
+ EFI_VARIABLE_BOOTSERVICE_ACCESS |
+ EFI_VARIABLE_RUNTIME_ACCESS),
+ sizeof FrontPageTimeout,
+ &FrontPageTimeout
+ );
+ DEBUG ((
+ EFI_ERROR (Status) ? DEBUG_ERROR : DEBUG_VERBOSE,
+ "%a: SetVariable(%s, %u): %r\n",
+ __FUNCTION__,
+ EFI_TIME_OUT_VARIABLE_NAME,
+ FrontPageTimeout,
+ Status
+ ));
//
// Register platform-specific boot options and keyboard shortcuts.
--
2.19.1.3.g30247aa5d201
^ permalink raw reply related [flat|nested] 9+ messages in thread
* Re: [PATCH 0/2] OvmfPkg, ArmVirtPkg: sync Timeout with PcdPlatformBootTimeOut
2020-03-04 9:44 [PATCH 0/2] OvmfPkg, ArmVirtPkg: sync Timeout with PcdPlatformBootTimeOut Laszlo Ersek
2020-03-04 9:44 ` [PATCH 1/2] OvmfPkg/PlatformBootManagerLib: " Laszlo Ersek
2020-03-04 9:44 ` [PATCH 2/2] ArmVirtPkg/PlatformBootManagerLib: " Laszlo Ersek
@ 2020-03-04 9:54 ` Ard Biesheuvel
2020-03-04 14:51 ` Laszlo Ersek
2020-03-04 15:50 ` Philippe Mathieu-Daudé
2020-03-05 8:56 ` [edk2-devel] " Laszlo Ersek
4 siblings, 1 reply; 9+ messages in thread
From: Ard Biesheuvel @ 2020-03-04 9:54 UTC (permalink / raw)
To: Laszlo Ersek
Cc: edk2-devel-groups-io, Jordan Justen, Leif Lindholm,
Philippe Mathieu-Daudé
On Wed, 4 Mar 2020 at 10:44, Laszlo Ersek <lersek@redhat.com> wrote:
>
> Repo: https://pagure.io/lersek/edk2.git
> Branch: timeout_var
>
> In the PlatformBootManagerLib instances, set the Timeout global variable
> to the same value as PcdPlatformBootTimeOut. This way the "setvar"
> command in the UEFI shell, and the "efibootmgr" command in a Linux
> guest, can report the front page timeout that was requested on the QEMU
> command line (see GetFrontPageTimeoutFromQemu() in
> "OvmfPkg/Library/QemuBootOrderLib/QemuBootOrderLib.c").
>
> A DEBUG_VERBOSE message is logged on success too, for our QE team's
> sake.
>
> Cc: Ard Biesheuvel <ard.biesheuvel@linaro.org>
> Cc: Jordan Justen <jordan.l.justen@intel.com>
> Cc: Leif Lindholm <leif@nuviainc.com>
> Cc: Philippe Mathieu-Daudé <philmd@redhat.com>
>
> Thanks
> Laszlo
>
> Laszlo Ersek (2):
> OvmfPkg/PlatformBootManagerLib: sync Timeout with
> PcdPlatformBootTimeOut
> ArmVirtPkg/PlatformBootManagerLib: sync Timeout with
> PcdPlatformBootTimeOut
>
Provided that the use of the bare 'sizeof <identifier>' doesn't throw
up any build errors with Clang (I seem to remember a report from Mike
Kinney about this?)
Reviewed-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
> ArmVirtPkg/Library/PlatformBootManagerLib/PlatformBm.c | 27 ++++++++++++++++++--
> ArmVirtPkg/Library/PlatformBootManagerLib/PlatformBootManagerLib.inf | 1 +
> OvmfPkg/Library/PlatformBootManagerLib/BdsPlatform.c | 26 +++++++++++++++++--
> OvmfPkg/Library/PlatformBootManagerLib/PlatformBootManagerLib.inf | 2 ++
> 4 files changed, 52 insertions(+), 4 deletions(-)
>
> --
> 2.19.1.3.g30247aa5d201
>
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [PATCH 0/2] OvmfPkg, ArmVirtPkg: sync Timeout with PcdPlatformBootTimeOut
2020-03-04 9:54 ` [PATCH 0/2] OvmfPkg, ArmVirtPkg: " Ard Biesheuvel
@ 2020-03-04 14:51 ` Laszlo Ersek
2020-03-04 14:52 ` Ard Biesheuvel
0 siblings, 1 reply; 9+ messages in thread
From: Laszlo Ersek @ 2020-03-04 14:51 UTC (permalink / raw)
To: Ard Biesheuvel
Cc: edk2-devel-groups-io, Jordan Justen, Leif Lindholm,
Philippe Mathieu-Daudé
On 03/04/20 10:54, Ard Biesheuvel wrote:
> On Wed, 4 Mar 2020 at 10:44, Laszlo Ersek <lersek@redhat.com> wrote:
>>
>> Repo: https://pagure.io/lersek/edk2.git
>> Branch: timeout_var
>>
>> In the PlatformBootManagerLib instances, set the Timeout global variable
>> to the same value as PcdPlatformBootTimeOut. This way the "setvar"
>> command in the UEFI shell, and the "efibootmgr" command in a Linux
>> guest, can report the front page timeout that was requested on the QEMU
>> command line (see GetFrontPageTimeoutFromQemu() in
>> "OvmfPkg/Library/QemuBootOrderLib/QemuBootOrderLib.c").
>>
>> A DEBUG_VERBOSE message is logged on success too, for our QE team's
>> sake.
>>
>> Cc: Ard Biesheuvel <ard.biesheuvel@linaro.org>
>> Cc: Jordan Justen <jordan.l.justen@intel.com>
>> Cc: Leif Lindholm <leif@nuviainc.com>
>> Cc: Philippe Mathieu-Daudé <philmd@redhat.com>
>>
>> Thanks
>> Laszlo
>>
>> Laszlo Ersek (2):
>> OvmfPkg/PlatformBootManagerLib: sync Timeout with
>> PcdPlatformBootTimeOut
>> ArmVirtPkg/PlatformBootManagerLib: sync Timeout with
>> PcdPlatformBootTimeOut
>>
>
> Provided that the use of the bare 'sizeof <identifier>' doesn't throw
> up any build errors with Clang (I seem to remember a report from Mike
> Kinney about this?)
>
> Reviewed-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
I use the "sizeof" operator exclusively without parens if the operand is
not a type name, at least in packages that I co-maintain. I don't recall
any particular build failures (even from the edk2 CI).
Thanks!
Laszlo
>
>> ArmVirtPkg/Library/PlatformBootManagerLib/PlatformBm.c | 27 ++++++++++++++++++--
>> ArmVirtPkg/Library/PlatformBootManagerLib/PlatformBootManagerLib.inf | 1 +
>> OvmfPkg/Library/PlatformBootManagerLib/BdsPlatform.c | 26 +++++++++++++++++--
>> OvmfPkg/Library/PlatformBootManagerLib/PlatformBootManagerLib.inf | 2 ++
>> 4 files changed, 52 insertions(+), 4 deletions(-)
>>
>> --
>> 2.19.1.3.g30247aa5d201
>>
>
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [PATCH 0/2] OvmfPkg, ArmVirtPkg: sync Timeout with PcdPlatformBootTimeOut
2020-03-04 14:51 ` Laszlo Ersek
@ 2020-03-04 14:52 ` Ard Biesheuvel
0 siblings, 0 replies; 9+ messages in thread
From: Ard Biesheuvel @ 2020-03-04 14:52 UTC (permalink / raw)
To: Laszlo Ersek
Cc: edk2-devel-groups-io, Jordan Justen, Leif Lindholm,
Philippe Mathieu-Daudé
On Wed, 4 Mar 2020 at 15:51, Laszlo Ersek <lersek@redhat.com> wrote:
>
> On 03/04/20 10:54, Ard Biesheuvel wrote:
> > On Wed, 4 Mar 2020 at 10:44, Laszlo Ersek <lersek@redhat.com> wrote:
> >>
> >> Repo: https://pagure.io/lersek/edk2.git
> >> Branch: timeout_var
> >>
> >> In the PlatformBootManagerLib instances, set the Timeout global variable
> >> to the same value as PcdPlatformBootTimeOut. This way the "setvar"
> >> command in the UEFI shell, and the "efibootmgr" command in a Linux
> >> guest, can report the front page timeout that was requested on the QEMU
> >> command line (see GetFrontPageTimeoutFromQemu() in
> >> "OvmfPkg/Library/QemuBootOrderLib/QemuBootOrderLib.c").
> >>
> >> A DEBUG_VERBOSE message is logged on success too, for our QE team's
> >> sake.
> >>
> >> Cc: Ard Biesheuvel <ard.biesheuvel@linaro.org>
> >> Cc: Jordan Justen <jordan.l.justen@intel.com>
> >> Cc: Leif Lindholm <leif@nuviainc.com>
> >> Cc: Philippe Mathieu-Daudé <philmd@redhat.com>
> >>
> >> Thanks
> >> Laszlo
> >>
> >> Laszlo Ersek (2):
> >> OvmfPkg/PlatformBootManagerLib: sync Timeout with
> >> PcdPlatformBootTimeOut
> >> ArmVirtPkg/PlatformBootManagerLib: sync Timeout with
> >> PcdPlatformBootTimeOut
> >>
> >
> > Provided that the use of the bare 'sizeof <identifier>' doesn't throw
> > up any build errors with Clang (I seem to remember a report from Mike
> > Kinney about this?)
> >
> > Reviewed-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
>
> I use the "sizeof" operator exclusively without parens if the operand is
> not a type name, at least in packages that I co-maintain. I don't recall
> any particular build failures (even from the edk2 CI).
>
OK fine. I don't remember the exact details, and I kind of like this
notation as well, so ... :-)
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [PATCH 0/2] OvmfPkg, ArmVirtPkg: sync Timeout with PcdPlatformBootTimeOut
2020-03-04 9:44 [PATCH 0/2] OvmfPkg, ArmVirtPkg: sync Timeout with PcdPlatformBootTimeOut Laszlo Ersek
` (2 preceding siblings ...)
2020-03-04 9:54 ` [PATCH 0/2] OvmfPkg, ArmVirtPkg: " Ard Biesheuvel
@ 2020-03-04 15:50 ` Philippe Mathieu-Daudé
2020-03-04 18:11 ` Laszlo Ersek
2020-03-05 8:56 ` [edk2-devel] " Laszlo Ersek
4 siblings, 1 reply; 9+ messages in thread
From: Philippe Mathieu-Daudé @ 2020-03-04 15:50 UTC (permalink / raw)
To: Laszlo Ersek, edk2-devel-groups-io
Cc: Ard Biesheuvel, Jordan Justen, Leif Lindholm
On 3/4/20 10:44 AM, Laszlo Ersek wrote:
> Repo: https://pagure.io/lersek/edk2.git
> Branch: timeout_var
>
> In the PlatformBootManagerLib instances, set the Timeout global variable
> to the same value as PcdPlatformBootTimeOut. This way the "setvar"
> command in the UEFI shell, and the "efibootmgr" command in a Linux
> guest, can report the front page timeout that was requested on the QEMU
> command line (see GetFrontPageTimeoutFromQemu() in
> "OvmfPkg/Library/QemuBootOrderLib/QemuBootOrderLib.c").
>
> A DEBUG_VERBOSE message is logged on success too, for our QE team's
> sake.
>
> Cc: Ard Biesheuvel <ard.biesheuvel@linaro.org>
> Cc: Jordan Justen <jordan.l.justen@intel.com>
> Cc: Leif Lindholm <leif@nuviainc.com>
> Cc: Philippe Mathieu-Daudé <philmd@redhat.com>
>
> Thanks
> Laszlo
>
> Laszlo Ersek (2):
> OvmfPkg/PlatformBootManagerLib: sync Timeout with
> PcdPlatformBootTimeOut
> ArmVirtPkg/PlatformBootManagerLib: sync Timeout with
> PcdPlatformBootTimeOut
>
> ArmVirtPkg/Library/PlatformBootManagerLib/PlatformBm.c | 27 ++++++++++++++++++--
> ArmVirtPkg/Library/PlatformBootManagerLib/PlatformBootManagerLib.inf | 1 +
> OvmfPkg/Library/PlatformBootManagerLib/BdsPlatform.c | 26 +++++++++++++++++--
> OvmfPkg/Library/PlatformBootManagerLib/PlatformBootManagerLib.inf | 2 ++
> 4 files changed, 52 insertions(+), 4 deletions(-)
>
Series:
Reviewed-by: Philippe Mathieu-Daude <philmd@redhat.com>
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [PATCH 0/2] OvmfPkg, ArmVirtPkg: sync Timeout with PcdPlatformBootTimeOut
2020-03-04 15:50 ` Philippe Mathieu-Daudé
@ 2020-03-04 18:11 ` Laszlo Ersek
0 siblings, 0 replies; 9+ messages in thread
From: Laszlo Ersek @ 2020-03-04 18:11 UTC (permalink / raw)
To: Philippe Mathieu-Daudé, edk2-devel-groups-io
Cc: Ard Biesheuvel, Jordan Justen, Leif Lindholm
On 03/04/20 16:50, Philippe Mathieu-Daudé wrote:
> On 3/4/20 10:44 AM, Laszlo Ersek wrote:
>> Repo: https://pagure.io/lersek/edk2.git
>> Branch: timeout_var
>>
>> In the PlatformBootManagerLib instances, set the Timeout global variable
>> to the same value as PcdPlatformBootTimeOut. This way the "setvar"
>> command in the UEFI shell, and the "efibootmgr" command in a Linux
>> guest, can report the front page timeout that was requested on the QEMU
>> command line (see GetFrontPageTimeoutFromQemu() in
>> "OvmfPkg/Library/QemuBootOrderLib/QemuBootOrderLib.c").
>>
>> A DEBUG_VERBOSE message is logged on success too, for our QE team's
>> sake.
>>
>> Cc: Ard Biesheuvel <ard.biesheuvel@linaro.org>
>> Cc: Jordan Justen <jordan.l.justen@intel.com>
>> Cc: Leif Lindholm <leif@nuviainc.com>
>> Cc: Philippe Mathieu-Daudé <philmd@redhat.com>
>>
>> Thanks
>> Laszlo
>>
>> Laszlo Ersek (2):
>> OvmfPkg/PlatformBootManagerLib: sync Timeout with
>> PcdPlatformBootTimeOut
>> ArmVirtPkg/PlatformBootManagerLib: sync Timeout with
>> PcdPlatformBootTimeOut
>>
>> ArmVirtPkg/Library/PlatformBootManagerLib/PlatformBm.c
>> | 27 ++++++++++++++++++--
>> ArmVirtPkg/Library/PlatformBootManagerLib/PlatformBootManagerLib.inf
>> | 1 +
>> OvmfPkg/Library/PlatformBootManagerLib/BdsPlatform.c
>> | 26 +++++++++++++++++--
>> OvmfPkg/Library/PlatformBootManagerLib/PlatformBootManagerLib.inf
>> | 2 ++
>> 4 files changed, 52 insertions(+), 4 deletions(-)
>>
>
> Series:
> Reviewed-by: Philippe Mathieu-Daude <philmd@redhat.com>
>
Thank you!
I plan to push this tomorrow, with your R-b, and Ard's.
Thanks
Laszlo
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [edk2-devel] [PATCH 0/2] OvmfPkg, ArmVirtPkg: sync Timeout with PcdPlatformBootTimeOut
2020-03-04 9:44 [PATCH 0/2] OvmfPkg, ArmVirtPkg: sync Timeout with PcdPlatformBootTimeOut Laszlo Ersek
` (3 preceding siblings ...)
2020-03-04 15:50 ` Philippe Mathieu-Daudé
@ 2020-03-05 8:56 ` Laszlo Ersek
4 siblings, 0 replies; 9+ messages in thread
From: Laszlo Ersek @ 2020-03-05 8:56 UTC (permalink / raw)
To: edk2-devel-groups-io
Cc: Ard Biesheuvel, Jordan Justen, Leif Lindholm,
Philippe Mathieu-Daudé
On 03/04/20 10:44, Laszlo Ersek wrote:
> Repo: https://pagure.io/lersek/edk2.git
> Branch: timeout_var
>
> In the PlatformBootManagerLib instances, set the Timeout global variable
> to the same value as PcdPlatformBootTimeOut. This way the "setvar"
> command in the UEFI shell, and the "efibootmgr" command in a Linux
> guest, can report the front page timeout that was requested on the QEMU
> command line (see GetFrontPageTimeoutFromQemu() in
> "OvmfPkg/Library/QemuBootOrderLib/QemuBootOrderLib.c").
>
> A DEBUG_VERBOSE message is logged on success too, for our QE team's
> sake.
>
> Cc: Ard Biesheuvel <ard.biesheuvel@linaro.org>
> Cc: Jordan Justen <jordan.l.justen@intel.com>
> Cc: Leif Lindholm <leif@nuviainc.com>
> Cc: Philippe Mathieu-Daudé <philmd@redhat.com>
>
> Thanks
> Laszlo
>
> Laszlo Ersek (2):
> OvmfPkg/PlatformBootManagerLib: sync Timeout with
> PcdPlatformBootTimeOut
> ArmVirtPkg/PlatformBootManagerLib: sync Timeout with
> PcdPlatformBootTimeOut
>
> ArmVirtPkg/Library/PlatformBootManagerLib/PlatformBm.c | 27 ++++++++++++++++++--
> ArmVirtPkg/Library/PlatformBootManagerLib/PlatformBootManagerLib.inf | 1 +
> OvmfPkg/Library/PlatformBootManagerLib/BdsPlatform.c | 26 +++++++++++++++++--
> OvmfPkg/Library/PlatformBootManagerLib/PlatformBootManagerLib.inf | 2 ++
> 4 files changed, 52 insertions(+), 4 deletions(-)
>
Merged as commit range 3b9cd714542a..7288ff4095cf, via
<https://github.com/tianocore/edk2/pull/422>.
Thanks!
Laszlo
^ permalink raw reply [flat|nested] 9+ messages in thread
end of thread, other threads:[~2020-03-05 8:56 UTC | newest]
Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-03-04 9:44 [PATCH 0/2] OvmfPkg, ArmVirtPkg: sync Timeout with PcdPlatformBootTimeOut Laszlo Ersek
2020-03-04 9:44 ` [PATCH 1/2] OvmfPkg/PlatformBootManagerLib: " Laszlo Ersek
2020-03-04 9:44 ` [PATCH 2/2] ArmVirtPkg/PlatformBootManagerLib: " Laszlo Ersek
2020-03-04 9:54 ` [PATCH 0/2] OvmfPkg, ArmVirtPkg: " Ard Biesheuvel
2020-03-04 14:51 ` Laszlo Ersek
2020-03-04 14:52 ` Ard Biesheuvel
2020-03-04 15:50 ` Philippe Mathieu-Daudé
2020-03-04 18:11 ` Laszlo Ersek
2020-03-05 8:56 ` [edk2-devel] " Laszlo Ersek
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox