public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
From: "Rebecca Cran" <rebecca@bsdio.com>
To: devel@edk2.groups.io, corvink@FreeBSD.org
Cc: Ard Biesheuvel <ardb+tianocore@kernel.org>,
	Jiewen Yao <jiewen.yao@intel.com>,
	Jordan Justen <jordan.l.justen@intel.com>,
	Gerd Hoffmann <kraxel@redhat.com>,
	Peter Grehan <grehan@freebsd.org>
Subject: Re: [edk2-devel] [PATCH v1 1/1] OvmfPkg/Bhyve: don't exit early if RSDP is not found in memory
Date: Fri, 8 Sep 2023 07:58:37 -0600	[thread overview]
Message-ID: <6b76efe3-6376-f7b9-1638-eb148ba8fa2a@bsdio.com> (raw)
In-Reply-To: <20230907083429.82300-2-corvink@FreeBSD.org>

Reviewed-by: Rebecca Cran <rebecca@bsdio.com>

On 9/7/23 02:34, Corvin Köhne 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@FreeBSD.org>
> Cc: Ard Biesheuvel <ardb+tianocore@kernel.org>
> Cc: Jiewen Yao <jiewen.yao@intel.com>
> Cc: Jordan Justen <jordan.l.justen@intel.com>
> Cc: Gerd Hoffmann <kraxel@redhat.com>
> Cc: Rebecca Cran <rebecca@bsdio.com>
> Cc: Peter Grehan <grehan@freebsd.org>
> ---
>   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);


-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.
View/Reply Online (#108448): https://edk2.groups.io/g/devel/message/108448
Mute This Topic: https://groups.io/mt/101210702/7686176
Group Owner: devel+owner@edk2.groups.io
Unsubscribe: https://edk2.groups.io/g/devel/unsub [rebecca@openfw.io]
-=-=-=-=-=-=-=-=-=-=-=-



  parent reply	other threads:[~2023-09-08 13:58 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-09-07  8:33 [edk2-devel] [PATCH v1 0/1] OvmfPkg/Bhyve: properly fall back to static ACPI tables Corvin Köhne
2023-09-07  8:34 ` [edk2-devel] [PATCH v1 1/1] OvmfPkg/Bhyve: don't exit early if RSDP is not found in memory Corvin Köhne
2023-09-07  9:54   ` Ard Biesheuvel
2023-09-08 13:58   ` Rebecca Cran [this message]
2023-09-08 15:43     ` Ard Biesheuvel

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-list from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=6b76efe3-6376-f7b9-1638-eb148ba8fa2a@bsdio.com \
    --to=devel@edk2.groups.io \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox