All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH V2 0/1] Change the UEFI loading mode to loongarch
@ 2024-02-19 10:34 Xianglai Li
  2024-02-19 10:34 ` [PATCH V2 1/1] loongarch: " Xianglai Li
  0 siblings, 1 reply; 6+ messages in thread
From: Xianglai Li @ 2024-02-19 10:34 UTC (permalink / raw)
  To: qemu-devel
  Cc: Andrea Bolognani, maobibo, Philippe Mathieu-Daudé,
	Song Gao, zhaotianrui

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.

V2:
Change the size of flash0 from 4M to 16M
Add test-by

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

Xianglai Li (1):
  loongarch: Change the UEFI loading mode to loongarch

 hw/loongarch/acpi-build.c   |  29 +++++++++--
 hw/loongarch/virt.c         | 101 ++++++++++++++++++++++++++----------
 include/hw/loongarch/virt.h |  10 ++--
 3 files changed, 107 insertions(+), 33 deletions(-)

-- 
2.39.1



^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2024-02-25 13:58 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-02-19 10:34 [PATCH V2 0/1] Change the UEFI loading mode to loongarch Xianglai Li
2024-02-19 10:34 ` [PATCH V2 1/1] loongarch: " Xianglai Li
2024-02-21  8:25   ` gaosong
2024-02-22 15:10   ` Philippe Mathieu-Daudé
2024-02-22 15:49     ` Andrea Bolognani
2024-02-25 13:57       ` Laszlo Ersek

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.