[edk2-devel] [PATCH v1 1/1] OvmfPkg/Bhyve: don't exit early if RSDP is not found in memory

Ard Biesheuvel ardb at kernel.org
Thu Sep 7 09:54:54 UTC 2023


On Thu, 7 Sept 2023 at 10:34, Corvin Köhne <corvink at freebsd.org> wrote:
>
> If OVMF fails to find the RSDP in memory, it should fall back installing
> the statically provided ACPI tables.
>
> Signed-off-by: Corvin Köhne <corvink at FreeBSD.org>
> Cc: Ard Biesheuvel <ardb+tianocore at kernel.org>
> Cc: Jiewen Yao <jiewen.yao at intel.com>
> Cc: Jordan Justen <jordan.l.justen at intel.com>
> Cc: Gerd Hoffmann <kraxel at redhat.com>
> Cc: Rebecca Cran <rebecca at bsdio.com>
> Cc: Peter Grehan <grehan at freebsd.org>

Nit: please cc the cover letter to the same group of people as the
actual patches.

Typically, I add the cc's to the cover letter only, and use --cc-cover
with git send-email.

That way, the cc's don't pollute the commit log either.

The patch looks fine to me but i'd like someone with a clue about
bhyve to review/ack it as well.

Thanks,
Ard.


> ---
>  OvmfPkg/Bhyve/AcpiPlatformDxe/AcpiPlatform.c | 19 ++++++++-----------
>  1 file changed, 8 insertions(+), 11 deletions(-)
>
> diff --git a/OvmfPkg/Bhyve/AcpiPlatformDxe/AcpiPlatform.c b/OvmfPkg/Bhyve/AcpiPlatformDxe/AcpiPlatform.c
> index fb926a8bd803..57b1e7a99666 100644
> --- a/OvmfPkg/Bhyve/AcpiPlatformDxe/AcpiPlatform.c
> +++ b/OvmfPkg/Bhyve/AcpiPlatformDxe/AcpiPlatform.c
> @@ -259,19 +259,17 @@ InstallAcpiTables (
>               BHYVE_BIOS_PHYSICAL_END,
>               &Rsdp
>               );
> -  if (EFI_ERROR (Status)) {
> -    return Status;
> -  }
> -
> -  Status = InstallAcpiTablesFromRsdp (
> -             AcpiTable,
> -             Rsdp
> -             );
>    if (!EFI_ERROR (Status)) {
> -    return EFI_SUCCESS;
> +    Status = InstallAcpiTablesFromRsdp (
> +               AcpiTable,
> +               Rsdp
> +               );
> +    if (!EFI_ERROR (Status)) {
> +      return EFI_SUCCESS;
> +    }
>    }
>
> -  if (Status != EFI_NOT_FOUND) {
> +  if (EFI_ERROR (Status)) {
>      DEBUG (
>        (
>         DEBUG_WARN,
> @@ -280,7 +278,6 @@ InstallAcpiTables (
>         Status
>        )
>        );
> -    return Status;
>    }
>
>    Status = InstallOvmfFvTables (AcpiTable);
> --
> 2.42.0
>
>
>
> 
>
>


-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.
View/Reply Online (#108371): https://edk2.groups.io/g/devel/message/108371
Mute This Topic: https://groups.io/mt/101210702/1813853
Group Owner: devel+owner at edk2.groups.io
Unsubscribe: https://edk2.groups.io/g/devel/unsub [edk2-devel-archive at redhat.com]
-=-=-=-=-=-=-=-=-=-=-=-




More information about the edk2-devel-archive mailing list