[edk2-devel] [PATCH 2/3] EmulatorPkg/WinHost: XIP for SEC and PEI_CORE

2022-11-11 Thread Ni, Ray
In EmulatorPkg/Win, SEC and PEI_CORE are loaded to memory allocated through VirtualAlloc. Though the corresponding DLL files are loaded and the entry points in DLL files are executed. The loading to memory allocated through VirtualAlloc is for the case when the DLL files can not be loaded.

[edk2-devel] [PATCH 1/3] EmulatorPkg/WinHost: pre-allocate "physical" RAM

2022-11-11 Thread Ni, Ray
Move the "physical" RAM allocation from WinPeiAutoScan to main() entrypoint. This is to prepare the changes for "reset" support. Signed-off-by: Ray Ni Cc: Andrew Fish Cc: Zhiguang Liu --- EmulatorPkg/Win/Host/WinHost.c | 60 ++ 1 file changed, 25

[edk2-devel] [PATCH 0/3] Add reset support in Emulator/WinHost PEI

2022-11-11 Thread Ni, Ray
Ray Ni (3): EmulatorPkg/WinHost: pre-allocate "physical" RAM EmulatorPkg/WinHost: XIP for SEC and PEI_CORE EmulatorPkg/WinHost: Add Reset2 PPI EmulatorPkg/Win/Host/WinHost.c | 139 --- EmulatorPkg/Win/Host/WinHost.h | 3 +- EmulatorPkg/Win/Host/WinHost.inf

[edk2-devel] [PATCH 3/3] EmulatorPkg/WinHost: Add Reset2 PPI

2022-11-11 Thread Ni, Ray
When shutdown is requested, WinHost exits. Otherwise, WinHost re-runs from SEC. Tested no extra memory consumption with multiple resets in PEI. Signed-off-by: Ray Ni Cc: Andrew Fish Cc: Zhiguang Liu --- EmulatorPkg/Win/Host/WinHost.c | 75

[edk2-devel] [edk2-stable202211] [PATCH V6 0/3] Rename VmgExitLib to CcExitLib

2022-11-11 Thread Yao, Jiewen
Reviewed by: Jiewen Yao Hi Mike/Liming I suggest this be in edk2-stable202211. Thank you Yao, Jiewen > -Original Message- > From: Xu, Min M > Sent: Friday, November 11, 2022 3:17 PM > To: devel@edk2.groups.io > Cc: Xu, Min M ; Dong, Eric ; > Ni, Ray ; Brijesh Singh ; Aktas, > Erdem ;

Re: [edk2-devel] [PATCH v1 1/1] .github/dependabot.yml: Enable dependabot

2022-11-11 Thread Michael Kubacki
I think that process is reasonable and we can discuss further in the upcoming Tools & CI meeting. For now, I will leave the v1 patch on the mailing list and keep those other commits up for reference. Thanks, Michael On 11/11/2022 1:44 PM, Michael D Kinney wrote: Hi Michael, Thanks for the

Re: [edk2-devel] [PATCH v1 1/1] .github/dependabot.yml: Enable dependabot

2022-11-11 Thread Michael D Kinney
Hi Michael, Thanks for the quick investigation. I have reviewed some of the PRs generated in your fork by dependabot. The detailed information it collects and adds to the PR is really good. I do notice that some dependencies (such as cmocka) are picking up the wrong content. I think this

Re: [edk2-devel] dek2 setup build failed

2022-11-11 Thread Michael D Kinney
Please try Python 3.9 or higher. What is actual failure in the log? Thanks, Mike From: devel@edk2.groups.io On Behalf Of tdmaha...@gmail.com Sent: Thursday, November 10, 2022 9:44 PM To: devel@edk2.groups.io Subject: [edk2-devel] dek2 setup build failed Hi, I'm facing an issues to build

[edk2-devel] dek2 setup build failed

2022-11-11 Thread tdmahawar
Hi, I'm facing an issues to build edk2 setup C:\edk2>build Build environment: Windows-post2008Server-6.2.9200 Build start time: 11:07:27, Nov.11 2022 WORKSPACE        = c:\edk2 EDK_TOOLS_PATH   = c:\edk2\basetools EDK_TOOLS_BIN    = c:\edk2\basetools\bin\win32 CONF_PATH        =

Re: [edk2-devel] [PATCH 0/3] OVMF: support EFI_RNG_PROTOCOL without virtio-rng

2022-11-11 Thread Jason A. Donenfeld via groups.io
Hi Ard, On Thu, Nov 10, 2022 at 2:48 PM Ard Biesheuvel wrote: > > Currently, we only expose EFI_RNG_PROTOCOL when running under QEMU if it > exposes a virtio-rng device. This means that generic EFI apps or > loaders have no access to an entropy source if this device is > unavailable, unless they

Re: [edk2-devel] [PATCH 0/3] OVMF: support EFI_RNG_PROTOCOL without virtio-rng

2022-11-11 Thread Jason A. Donenfeld via groups.io
Hi Ard, On Fri, Nov 11, 2022 at 8:47 AM Ard Biesheuvel wrote: > > On Fri, 11 Nov 2022 at 03:41, Jason A. Donenfeld wrote: > > > > Hi Ard, > > > > On Thu, Nov 10, 2022 at 2:48 PM Ard Biesheuvel wrote: > > > > > > Currently, we only expose EFI_RNG_PROTOCOL when running under QEMU if it > > >

Re: [edk2-devel] [PATCH v1 1/1] MiscBootServices: Stall_Func: Reduces the stall interval for Stall_Func

2022-11-11 Thread G Edhaya Chandran
Hi Robert, Thank you for the confirmation. The patch is upstreamed through the below commit: https://github.com/tianocore/edk2-test/commit/1d181ad0d82520c099435ff08a8e829b44f493cc With Warm Regards, Edhay -=-=-=-=-=-=-=-=-=-=-=- Groups.io Links: You receive all messages sent to this group.

Re: [edk2-devel] [PATCH v1 1/1] .github/dependabot.yml: Enable dependabot

2022-11-11 Thread Michael Kubacki
Hi Mike, It looks like the ability to open draft PRs is not possible at the moment: Configure dependabot to create draft PRs · Issue #1291 · dependabot/dependabot-core · GitHub ( https://github.com/dependabot/dependabot-core/issues/1291 ) I could not find an ability for dependabot to leave

[edk2-devel] [PATCH 3/3] OvmfPkg/OvmfXen: Introduce Xen's ResetSystemLib, to use xen hypercall

2022-11-11 Thread Anthony PERARD via groups.io
From: Anthony PERARD When booting OvmfXen, the ACPI interface for shutdown/reset might not be available, instead use the hypercall interface. While it's probably possible to use the hypercall in all cases, we keep using the same interface while it still possible. That is ACPI on HVM guest, and

[edk2-devel] [PATCH 2/3] OvmfPkg/XenHypercallLib: Add SchedOp hypercall

2022-11-11 Thread Anthony PERARD via groups.io
From: Anthony PERARD Add a new function to allow to make an hypercall to shutdown the machine. This import "sched.h" public header from Xen Project's repo. Some changes have been made to be closer to EDK2's coding style. Signed-off-by: Anthony PERARD ---

[edk2-devel] [PATCH 1/3] OvmfPkg: Introduce runtime XenHypercallLib

2022-11-11 Thread Anthony PERARD via groups.io
From: Anthony PERARD We need a way to execute instruction "generated" at runtime from the runtime library. This patch introduce XenHypercallRuntimeLib, which is mostly a copy of XenHypercallLib with a few changes. We reserved some code space with "XenHypercallPage", which we will overwrite to

[edk2-devel] [PATCH 0/3] OvmfXen: Fix machine shutdown in PVH guest

2022-11-11 Thread Anthony PERARD via groups.io
From: Anthony PERARD Patch series available in this git branch: https://xenbits.xen.org/git-http/people/aperard/ovmf.git br.fix-pvh-shutdown-v2-v1 From: Anthony PERARD Hi, This series instroduce a XenHypercallLib that can be used at runtime by a EFI service. And then it introduce a modified

[edk2-devel] [PATCH 1/1] BaseSynchronizationLib: Fix RISC-V helper name

2022-11-11 Thread Sunil V L
REF: https://bugzilla.tianocore.org/show_bug.cgi?id=4143 Fix the name of InternalSyncCompareExchange64() function. Signed-off-by: Sunil V L Reported-by: Zhihao Li Tested-by: Zhihao Li Cc: Michael D Kinney Cc: Liming Gao Cc: Zhiguang Liu Cc: Daniel Schaefer ---

Re: [edk2-devel] [edk2-platforms][PATCH V5 14/15] Platform/Loongson: Support Dxe

2022-11-11 Thread Chao Li
Reviewed-by: Chao Li Thanks, Chao On 11月 11 2022, at 5:12 下午, xianglai li wrote: > Support Dxe for LoogArch. > > > > REF: https://bugzilla.tianocore.org/show_bug.cgi?id=4054 > > > Cc: Bibo Mao > Cc: Chao Li > Cc: Leif Lindholm > Cc: Liming Gao > Cc: Michael D Kinney >

Re: [edk2-devel] [edk2-platforms][PATCH V5 13/15] Platform/Loongson: Add Reset System Lib.

2022-11-11 Thread Chao Li
Reviewed-by: Chao Li Thanks, Chao On 11月 11 2022, at 5:12 下午, xianglai li wrote: > This library provides interfaces related to restart and shutdown. > > > > REF: https://bugzilla.tianocore.org/show_bug.cgi?id=4054 > > > Cc: Bibo Mao > Cc: Chao Li > Cc: Leif Lindholm > Cc: Liming

Re: [edk2-devel] [edk2-platforms][PATCH V5 12/15] Platform/Loongson: Add Platform Boot Manager Lib.

2022-11-11 Thread Chao Li
Reviewed-by: Chao Li Thanks, Chao On 11月 11 2022, at 5:12 下午, xianglai li wrote: > The Library provides Boot Manager interfaces. > > > > REF: https://bugzilla.tianocore.org/show_bug.cgi?id=4054 > > > Cc: Bibo Mao > Cc: Chao Li > Cc: Leif Lindholm > Cc: Liming Gao > Cc: Michael D

Re: [edk2-devel] [edk2-platforms][PATCH V5 11/15] Platform/Loongson: Add RealTime Clock lib.

2022-11-11 Thread Chao Li
Reviewed-by: Chao Li Thanks, Chao On 11月 11 2022, at 5:12 下午, xianglai li wrote: > This library provides interfaces such as > > real-time clock initialization > to get time and setting time. > > > REF: https://bugzilla.tianocore.org/show_bug.cgi?id=4054 > > > Cc: Bibo Mao > Cc: Chao

Re: [edk2-devel] [edk2-platforms][PATCH V5 10/15] Platform/Loongson: Add timer Dxe driver.

2022-11-11 Thread Chao Li
Reviewed-by: Chao Li Thanks, Chao On 11月 11 2022, at 5:12 下午, xianglai li wrote: > This driver produces Timer Architectural Protocol, > > Registers a timer interrupt and initializes the timer. > > > REF: https://bugzilla.tianocore.org/show_bug.cgi?id=4054 > > > Cc: Bibo Mao > Cc:

Re: [edk2-devel] [edk2-platforms][PATCH V5 09/15] Platform/Loongson: Add PciCpuIoDxe driver.

2022-11-11 Thread Chao Li
Reviewed-by: Chao Li Thanks, Chao On 11月 11 2022, at 5:12 下午, xianglai li wrote: > Add PCI CpuIo protocol.there is no fix translation > > offset between I/O port accesses and MMIO accesses. > Add PciCpuIo2Dxe driver to implement EFI_CPU_IO2_PROTOCOL > to add the translation for IO

Re: [edk2-devel] [edk2-platforms][PATCH V5 08/15] Platform/Loongson: Add CPU DXE driver.

2022-11-11 Thread Chao Li
Reviewed-by: Chao Li Thanks, Chao On 11月 11 2022, at 5:12 下午, xianglai li wrote: > The driver produces EFI_CPU_ARCH_PROTOCOL, > > Initialize the exception entry address. > > > REF: https://bugzilla.tianocore.org/show_bug.cgi?id=4054 > > > Cc: Bibo Mao > Cc: Chao Li > Cc: Leif

Re: [edk2-devel] [edk2-platforms][PATCH V5 08/15] Platform/Loongson: Add CPU DXE driver.

2022-11-11 Thread Chao Li
Reviewed-by: Chao Li Thanks, Chao On 11月 11 2022, at 5:12 下午, xianglai li wrote: > The driver produces EFI_CPU_ARCH_PROTOCOL, > > Initialize the exception entry address. > > > REF: https://bugzilla.tianocore.org/show_bug.cgi?id=4054 > > > Cc: Bibo Mao > Cc: Chao Li > Cc: Leif

Re: [edk2-devel] [edk2-platforms][PATCH V5 07/15] Platform/Loongson: Support PEI phase.

2022-11-11 Thread Chao Li
Reviewed-by: Chao Li Thanks, Chao On 11月 11 2022, at 5:12 下午, "xianglai" wrote: > Platform PEI module for LoongArch platform initialization. > > > > REF: https://bugzilla.tianocore.org/show_bug.cgi?id=4054 > > > Cc: Bibo Mao > Cc: Chao Li > Cc: Leif Lindholm > Cc: Liming Gao > Cc:

Re: [edk2-devel] [edk2-platforms][PATCH V5 06/15] Platform/Loongson: Add StableTimerLib.

2022-11-11 Thread Chao Li
Reviewed-by: Chao Li Thanks, Chao On 11月 11 2022, at 5:12 下午, xianglai li wrote: > This library provides a delay interface and a timing interface. > > > > REF: https://bugzilla.tianocore.org/show_bug.cgi?id=4054 > > > Cc: Bibo Mao > Cc: Chao Li > Cc: Leif Lindholm > Cc: Liming Gao

Re: [edk2-devel] [edk2-platforms][PATCH V5 05/15] Platform/Loongson: Add MmuLib.

2022-11-11 Thread Chao Li
Reviewed-by: Chao Li Thanks, Chao On 11月 11 2022, at 5:12 下午, xianglai li wrote: > Read the memory map information through the QemuFwCfg interface, > > then build the page table through the memory map information, > and finally enable Mmu. > > > REF:

Re: [edk2-devel] [edk2-platforms][PATCH V5 04/15] Platform/Loongson: Add QemuFwCfgLib.

2022-11-11 Thread Chao Li
Reviewed-by: Chao Li Thanks, Chao On 11月 11 2022, at 5:12 下午, xianglai li wrote: > QemuFwCfgLib for PEI phase. > > This library obtains the QemuFWCfg base address by > directly parsing the fdt, and reads and writes the data > in the QemuFWCfg by operating on the QemuFWCfg base

Re: [edk2-devel] [edk2-platforms][PATCH V5 03/15] Platform/Loongson: Add PeiServicesTablePointerLib.

2022-11-11 Thread Chao Li
Reviewed-by: Chao Li Thanks, Chao On 11月 11 2022, at 5:12 下午, xianglai li wrote: > Use a register to save PeiServicesTable pointer, > > This lib Provides PeiServicesTable pointer saving > and retrieval services. > > > REF: https://bugzilla.tianocore.org/show_bug.cgi?id=4054 > > > Cc:

Re: [edk2-devel] [edk2-platforms][PATCH V5 02/15] Platform/Loongson: Support SEC

2022-11-11 Thread Chao Li
Reviewed-by: Chao Li Thanks, Chao On 11月 11 2022, at 5:12 下午, xianglai li wrote: > Add SEC Code And Readme.md for LoongArchQemu > > > > REF: https://bugzilla.tianocore.org/show_bug.cgi?id=4054 > > > Cc: Bibo Mao > Cc: Chao Li > Cc: Leif Lindholm > Cc: Liming Gao > Cc: Michael D

Re: [edk2-devel] [edk2-platforms][PATCH V5 01/15] Platform/Loongson: Add Serial Port library

2022-11-11 Thread Chao Li
Reviewed-by: Chao Li Thanks, Chao On 11月 11 2022, at 5:12 下午, xianglai li wrote: > Serial Port library for LoongarchQemuPkg > > > > REF: https://bugzilla.tianocore.org/show_bug.cgi?id=4054 > > > Cc: Bibo Mao > Cc: Chao Li > Cc: Leif Lindholm > Cc: Liming Gao > Cc: Michael D Kinney

[edk2-devel] [edk2-platforms][PATCH V5 14/15] Platform/Loongson: Support Dxe

2022-11-11 Thread xianglai
Support Dxe for LoogArch. REF: https://bugzilla.tianocore.org/show_bug.cgi?id=4054 Cc: Bibo Mao Cc: Chao Li Cc: Leif Lindholm Cc: Liming Gao Cc: Michael D Kinney Signed-off-by: xianglai li --- .../Loongson/LoongArchQemuPkg/Loongson.dec| 13 +

[edk2-devel] [edk2-platforms][PATCH V5 15/15] Platform/Loongson: Add Readme.

2022-11-11 Thread xianglai
Add Readme for LoogArch and Modify the Readme in the root directory. REF: https://bugzilla.tianocore.org/show_bug.cgi?id=4054 Cc: Bibo Mao Cc: Chao Li Cc: Leif Lindholm Cc: Liming Gao Cc: Michael D Kinney Signed-off-by: xianglai li --- Platform/Loongson/LoongArchQemuPkg/Readme.md | 60

[edk2-devel] [edk2-platforms][PATCH V5 13/15] Platform/Loongson: Add Reset System Lib.

2022-11-11 Thread xianglai
This library provides interfaces related to restart and shutdown. REF: https://bugzilla.tianocore.org/show_bug.cgi?id=4054 Cc: Bibo Mao Cc: Chao Li Cc: Leif Lindholm Cc: Liming Gao Cc: Michael D Kinney Signed-off-by: xianglai li --- .../BaseResetSystemAcpiGed.c | 146

[edk2-devel] [edk2-platforms][PATCH V5 12/15] Platform/Loongson: Add Platform Boot Manager Lib.

2022-11-11 Thread xianglai
The Library provides Boot Manager interfaces. REF: https://bugzilla.tianocore.org/show_bug.cgi?id=4054 Cc: Bibo Mao Cc: Chao Li Cc: Leif Lindholm Cc: Liming Gao Cc: Michael D Kinney Signed-off-by: xianglai li --- .../PlatformBootManagerLib/PlatformBm.c | 742 ++

[edk2-devel] [edk2-platforms][PATCH V5 11/15] Platform/Loongson: Add RealTime Clock lib.

2022-11-11 Thread xianglai
This library provides interfaces such as real-time clock initialization to get time and setting time. REF: https://bugzilla.tianocore.org/show_bug.cgi?id=4054 Cc: Bibo Mao Cc: Chao Li Cc: Leif Lindholm Cc: Liming Gao Cc: Michael D Kinney Signed-off-by: xianglai li ---

[edk2-devel] [edk2-platforms][PATCH V5 08/15] Platform/Loongson: Add CPU DXE driver.

2022-11-11 Thread xianglai
The driver produces EFI_CPU_ARCH_PROTOCOL, Initialize the exception entry address. REF: https://bugzilla.tianocore.org/show_bug.cgi?id=4054 Cc: Bibo Mao Cc: Chao Li Cc: Leif Lindholm Cc: Liming Gao Cc: Michael D Kinney Signed-off-by: xianglai li ---

[edk2-devel] [edk2-platforms][PATCH V5 09/15] Platform/Loongson: Add PciCpuIoDxe driver.

2022-11-11 Thread xianglai
Add PCI CpuIo protocol.there is no fix translation offset between I/O port accesses and MMIO accesses. Add PciCpuIo2Dxe driver to implement EFI_CPU_IO2_PROTOCOL to add the translation for IO access. REF: https://bugzilla.tianocore.org/show_bug.cgi?id=4054 Cc: Bibo Mao Cc: Chao Li Cc: Leif

[edk2-devel] [edk2-platforms][PATCH V5 10/15] Platform/Loongson: Add timer Dxe driver.

2022-11-11 Thread xianglai
This driver produces Timer Architectural Protocol, Registers a timer interrupt and initializes the timer. REF: https://bugzilla.tianocore.org/show_bug.cgi?id=4054 Cc: Bibo Mao Cc: Chao Li Cc: Leif Lindholm Cc: Liming Gao Cc: Michael D Kinney Signed-off-by: xianglai li ---

[edk2-devel] [edk2-platforms][PATCH V5 05/15] Platform/Loongson: Add MmuLib.

2022-11-11 Thread xianglai
Read the memory map information through the QemuFwCfg interface, then build the page table through the memory map information, and finally enable Mmu. REF: https://bugzilla.tianocore.org/show_bug.cgi?id=4054 Cc: Bibo Mao Cc: Chao Li Cc: Leif Lindholm Cc: Liming Gao Cc: Michael D Kinney

[edk2-devel] [edk2-platforms][PATCH V5 07/15] Platform/Loongson: Support PEI phase.

2022-11-11 Thread xianglai
Platform PEI module for LoongArch platform initialization. REF: https://bugzilla.tianocore.org/show_bug.cgi?id=4054 Cc: Bibo Mao Cc: Chao Li Cc: Leif Lindholm Cc: Liming Gao Cc: Michael D Kinney Signed-off-by: xianglai li --- .../Loongson/LoongArchQemuPkg/Loongson.dec| 23 ++

[edk2-devel] [edk2-platforms][PATCH V5 00/15] Platform: Add Loongson support.

2022-11-11 Thread xianglai
REF: https://bugzilla.tianocore.org/show_bug.cgi?id=4054 The uploaded code generates firmware to support Linux launching on the LoongArch platform under qemu, So it will run in a virtual machine. LoongArch is the general processor architecture of Loongson. You can get the latest LoongArch

[edk2-devel] [edk2-platforms][PATCH V5 02/15] Platform/Loongson: Support SEC

2022-11-11 Thread xianglai
Add SEC Code And Readme.md for LoongArchQemu REF: https://bugzilla.tianocore.org/show_bug.cgi?id=4054 Cc: Bibo Mao Cc: Chao Li Cc: Leif Lindholm Cc: Liming Gao Cc: Michael D Kinney Signed-off-by: xianglai li Signed-off-by: xianglai li --- .../Include/LoongArchQemuPlatform.h |

[edk2-devel] [edk2-platforms][PATCH V5 03/15] Platform/Loongson: Add PeiServicesTablePointerLib.

2022-11-11 Thread xianglai
Use a register to save PeiServicesTable pointer, This lib Provides PeiServicesTable pointer saving and retrieval services. REF: https://bugzilla.tianocore.org/show_bug.cgi?id=4054 Cc: Bibo Mao Cc: Chao Li Cc: Leif Lindholm Cc: Liming Gao Cc: Michael D Kinney Signed-off-by: xianglai li ---

[edk2-devel] [edk2-platforms][PATCH V5 04/15] Platform/Loongson: Add QemuFwCfgLib.

2022-11-11 Thread xianglai
QemuFwCfgLib for PEI phase. This library obtains the QemuFWCfg base address by directly parsing the fdt, and reads and writes the data in the QemuFWCfg by operating on the QemuFWCfg base address. REF: https://bugzilla.tianocore.org/show_bug.cgi?id=4054 Cc: Bibo Mao Cc: Chao Li Cc: Leif

[edk2-devel] [edk2-platforms][PATCH V5 01/15] Platform/Loongson: Add Serial Port library

2022-11-11 Thread xianglai
Serial Port library for LoongarchQemuPkg REF: https://bugzilla.tianocore.org/show_bug.cgi?id=4054 Cc: Bibo Mao Cc: Chao Li Cc: Leif Lindholm Cc: Liming Gao Cc: Michael D Kinney Signed-off-by: xianglai li --- .../LoongArchQemuPkg/Include/Library/Cpu.h| 237 +++

[edk2-devel] [edk2-platforms][PATCH V5 06/15] Platform/Loongson: Add StableTimerLib.

2022-11-11 Thread xianglai
This library provides a delay interface and a timing interface. REF: https://bugzilla.tianocore.org/show_bug.cgi?id=4054 Cc: Bibo Mao Cc: Chao Li Cc: Leif Lindholm Cc: Liming Gao Cc: Michael D Kinney Signed-off-by: xianglai li --- .../Include/Library/StableTimer.h | 59 +

[edk2-devel] [edk2-platforms][PATCH V5 14/15] Platform/Loongson: Support Dxe

2022-11-11 Thread xianglai
Support Dxe for LoogArch. REF: https://bugzilla.tianocore.org/show_bug.cgi?id=4054 Cc: Bibo Mao Cc: Chao Li Cc: Leif Lindholm Cc: Liming Gao Cc: Michael D Kinney Signed-off-by: xianglai li --- .../Loongson/LoongArchQemuPkg/Loongson.dec| 13 +

[edk2-devel] [edk2-platforms][PATCH V5 15/15] Platform/Loongson: Add Readme.

2022-11-11 Thread xianglai
Add Readme for LoogArch and Modify the Readme in the root directory. REF: https://bugzilla.tianocore.org/show_bug.cgi?id=4054 Cc: Bibo Mao Cc: Chao Li Cc: Leif Lindholm Cc: Liming Gao Cc: Michael D Kinney Signed-off-by: xianglai li --- Platform/Loongson/LoongArchQemuPkg/Readme.md | 60

[edk2-devel] [edk2-platforms][PATCH V5 12/15] Platform/Loongson: Add Platform Boot Manager Lib.

2022-11-11 Thread xianglai
The Library provides Boot Manager interfaces. REF: https://bugzilla.tianocore.org/show_bug.cgi?id=4054 Cc: Bibo Mao Cc: Chao Li Cc: Leif Lindholm Cc: Liming Gao Cc: Michael D Kinney Signed-off-by: xianglai li --- .../PlatformBootManagerLib/PlatformBm.c | 742 ++

[edk2-devel] [edk2-platforms][PATCH V5 09/15] Platform/Loongson: Add PciCpuIoDxe driver.

2022-11-11 Thread xianglai
Add PCI CpuIo protocol.there is no fix translation offset between I/O port accesses and MMIO accesses. Add PciCpuIo2Dxe driver to implement EFI_CPU_IO2_PROTOCOL to add the translation for IO access. REF: https://bugzilla.tianocore.org/show_bug.cgi?id=4054 Cc: Bibo Mao Cc: Chao Li Cc: Leif

[edk2-devel] [edk2-platforms][PATCH V5 13/15] Platform/Loongson: Add Reset System Lib.

2022-11-11 Thread xianglai
This library provides interfaces related to restart and shutdown. REF: https://bugzilla.tianocore.org/show_bug.cgi?id=4054 Cc: Bibo Mao Cc: Chao Li Cc: Leif Lindholm Cc: Liming Gao Cc: Michael D Kinney Signed-off-by: xianglai li --- .../BaseResetSystemAcpiGed.c | 146

[edk2-devel] [edk2-platforms][PATCH V5 08/15] Platform/Loongson: Add CPU DXE driver.

2022-11-11 Thread xianglai
The driver produces EFI_CPU_ARCH_PROTOCOL, Initialize the exception entry address. REF: https://bugzilla.tianocore.org/show_bug.cgi?id=4054 Cc: Bibo Mao Cc: Chao Li Cc: Leif Lindholm Cc: Liming Gao Cc: Michael D Kinney Signed-off-by: xianglai li ---

[edk2-devel] [edk2-platforms][PATCH V5 11/15] Platform/Loongson: Add RealTime Clock lib.

2022-11-11 Thread xianglai
This library provides interfaces such as real-time clock initialization to get time and setting time. REF: https://bugzilla.tianocore.org/show_bug.cgi?id=4054 Cc: Bibo Mao Cc: Chao Li Cc: Leif Lindholm Cc: Liming Gao Cc: Michael D Kinney Signed-off-by: xianglai li ---

[edk2-devel] [edk2-platforms][PATCH V5 07/15] Platform/Loongson: Support PEI phase.

2022-11-11 Thread xianglai
Platform PEI module for LoongArch platform initialization. REF: https://bugzilla.tianocore.org/show_bug.cgi?id=4054 Cc: Bibo Mao Cc: Chao Li Cc: Leif Lindholm Cc: Liming Gao Cc: Michael D Kinney Signed-off-by: xianglai li --- .../Loongson/LoongArchQemuPkg/Loongson.dec| 23 ++

[edk2-devel] [edk2-platforms][PATCH V5 10/15] Platform/Loongson: Add timer Dxe driver.

2022-11-11 Thread xianglai
This driver produces Timer Architectural Protocol, Registers a timer interrupt and initializes the timer. REF: https://bugzilla.tianocore.org/show_bug.cgi?id=4054 Cc: Bibo Mao Cc: Chao Li Cc: Leif Lindholm Cc: Liming Gao Cc: Michael D Kinney Signed-off-by: xianglai li ---

[edk2-devel] [edk2-platforms][PATCH V5 05/15] Platform/Loongson: Add MmuLib.

2022-11-11 Thread xianglai
Read the memory map information through the QemuFwCfg interface, then build the page table through the memory map information, and finally enable Mmu. REF: https://bugzilla.tianocore.org/show_bug.cgi?id=4054 Cc: Bibo Mao Cc: Chao Li Cc: Leif Lindholm Cc: Liming Gao Cc: Michael D Kinney

[edk2-devel] [edk2-platforms][PATCH V5 01/15] Platform/Loongson: Add Serial Port library

2022-11-11 Thread xianglai
Serial Port library for LoongarchQemuPkg REF: https://bugzilla.tianocore.org/show_bug.cgi?id=4054 Cc: Bibo Mao Cc: Chao Li Cc: Leif Lindholm Cc: Liming Gao Cc: Michael D Kinney Signed-off-by: xianglai li --- .../LoongArchQemuPkg/Include/Library/Cpu.h| 237 +++

[edk2-devel] [edk2-platforms][PATCH V5 02/15] Platform/Loongson: Support SEC

2022-11-11 Thread xianglai
Add SEC Code And Readme.md for LoongArchQemu REF: https://bugzilla.tianocore.org/show_bug.cgi?id=4054 Cc: Bibo Mao Cc: Chao Li Cc: Leif Lindholm Cc: Liming Gao Cc: Michael D Kinney Signed-off-by: xianglai li Signed-off-by: xianglai li --- .../Include/LoongArchQemuPlatform.h |

[edk2-devel] [edk2-platforms][PATCH V5 06/15] Platform/Loongson: Add StableTimerLib.

2022-11-11 Thread xianglai
This library provides a delay interface and a timing interface. REF: https://bugzilla.tianocore.org/show_bug.cgi?id=4054 Cc: Bibo Mao Cc: Chao Li Cc: Leif Lindholm Cc: Liming Gao Cc: Michael D Kinney Signed-off-by: xianglai li --- .../Include/Library/StableTimer.h | 59 +

[edk2-devel] [edk2-platforms][PATCH V5 04/15] Platform/Loongson: Add QemuFwCfgLib.

2022-11-11 Thread xianglai
QemuFwCfgLib for PEI phase. This library obtains the QemuFWCfg base address by directly parsing the fdt, and reads and writes the data in the QemuFWCfg by operating on the QemuFWCfg base address. REF: https://bugzilla.tianocore.org/show_bug.cgi?id=4054 Cc: Bibo Mao Cc: Chao Li Cc: Leif

[edk2-devel] [edk2-platforms][PATCH V5 00/15] Platform: Add Loongson support.

2022-11-11 Thread xianglai
REF: https://bugzilla.tianocore.org/show_bug.cgi?id=4054 The uploaded code generates firmware to support Linux launching on the LoongArch platform under qemu, So it will run in a virtual machine. LoongArch is the general processor architecture of Loongson. You can get the latest LoongArch

[edk2-devel] [edk2-platforms][PATCH V5 03/15] Platform/Loongson: Add PeiServicesTablePointerLib.

2022-11-11 Thread xianglai
Use a register to save PeiServicesTable pointer, This lib Provides PeiServicesTable pointer saving and retrieval services. REF: https://bugzilla.tianocore.org/show_bug.cgi?id=4054 Cc: Bibo Mao Cc: Chao Li Cc: Leif Lindholm Cc: Liming Gao Cc: Michael D Kinney Signed-off-by: xianglai li ---

Re: [edk2-devel] [PATCH 0/3] OVMF: support EFI_RNG_PROTOCOL without virtio-rng

2022-11-11 Thread Gerd Hoffmann
On Thu, Nov 10, 2022 at 02:47:35PM +0100, Ard Biesheuvel wrote: > Currently, we only expose EFI_RNG_PROTOCOL when running under QEMU if it > exposes a virtio-rng device. This means that generic EFI apps or > loaders have no access to an entropy source if this device is > unavailable, unless they