qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH V2] loongarch: Change the UEFI loading mode to loongarch


From: Andrea Bolognani
Subject: Re: [PATCH V2] loongarch: Change the UEFI loading mode to loongarch
Date: Tue, 6 Feb 2024 05:38:35 -0800

On Tue, Feb 06, 2024 at 10:10:02AM +0800, Xianglai Li wrote:
> The UEFI loading mode in loongarch is very different
> from that in other architectures:loongarch's UEFI code
> is in rom, while other architectures' UEFI code is in flash.
>
> loongarch UEFI can be loaded as follows:
> -machine virt,pflash=pflash0-format
> -bios ./QEMU_EFI.fd
>
> Other architectures load UEFI using the following methods:
> -machine virt,pflash0=pflash0-format,pflash1=pflash1-format
>
> loongarch's UEFI loading method makes qemu and libvirt incompatible
> when using NVRAM, and the cost of loongarch's current loading method
> far outweighs the benefits, so we decided to use the same UEFI loading
> scheme as other architectures.
>
> Cc: Andrea Bolognani <abologna@redhat.com>
> Cc: maobibo@loongson.cn
> Cc: Philippe Mathieu-Daudé <philmd@linaro.org>
> Cc: Song Gao <gaosong@loongson.cn>
> Cc: zhaotianrui@loongson.cn
> Signed-off-by: Xianglai Li <lixianglai@loongson.cn>
> ---
>  hw/loongarch/acpi-build.c   |  29 +++++++++--
>  hw/loongarch/virt.c         | 101 ++++++++++++++++++++++++++----------
>  include/hw/loongarch/virt.h |  10 ++--
>  3 files changed, 107 insertions(+), 33 deletions(-)

For future reference, it's usually good practice to keep track of
changes between subsequent versions of the same patchset.

Can you please confirm that the build of edk2 added with [1] is
intended to work with a version of QEMU that contains these changes?
I'd like to test things out as soon as I get a moment.

Thanks.


[1] 
https://github.com/lixianglai/LoongarchVirtFirmware/commit/985ce19438d9544968c7e921c6acf2c74fd4713e
-- 
Andrea Bolognani / Red Hat / Virtualization




reply via email to

[Prev in Thread] Current Thread [Next in Thread]