[edk2-devel] 回复: [PATCH V3 0/7] Introduce CcProbe in MdePkg

2022-04-16 Thread gaoliming
Min: The change in MdePkg is good to me. Reviewed-by: Liming Gao Thanks Liming > -邮件原件- > 发件人: Min Xu > 发送时间: 2022年4月17日 11:01 > 收件人: devel@edk2.groups.io > 抄送: Min Xu ; Michael D Kinney > ; Liming Gao ; > Zhiguang Liu ; James Bottomley > ; Jiewen Yao ; Gerd Hoffmann > ; Brijesh Singh

回复: [edk2-devel] [PATCH v1 1/1] MdeModulePkg: Use SmmWaitForAllProcessor() in VariableSmm driver.

2022-04-16 Thread gaoliming
Zhihao: I see three platforms in edk2-platforms to consume VariableStandaloneMm module. So, I think this change will impact them. Can you confirm this change with those platform owners? Platform\ARM\SgiPkg\PlatformStandaloneMm.fdf Platform\Socionext\DeveloperBox\DeveloperBoxMm.fdf

回复: [edk2-devel] [PATCH v2] MdePkg: Update smbiosview type 9 with SMBIOS 3.5 fields

2022-04-16 Thread gaoliming
Reviewed-by: Liming Gao > -邮件原件- > 发件人: devel@edk2.groups.io 代表 Bo Chang Ke > 发送时间: 2022年4月15日 16:35 > 收件人: Gao, Zhichao ; devel@edk2.groups.io > 抄送: Liu, Zhiguang ; Bi, Dandan > ; Zeng, Star ; Gao, Liming > ; Kinney, Michael D > > 主题: Re: [edk2-devel] [PATCH v2] MdePkg: Update

Re: [edk2-devel] [PATCH V3 0/7] Introduce CcProbe in MdePkg

2022-04-16 Thread Yao, Jiewen
Series reviewed-by: Jiewen Yao > -Original Message- > From: Xu, Min M > Sent: Sunday, April 17, 2022 11:01 AM > To: devel@edk2.groups.io > Cc: Xu, Min M ; Kinney, Michael D > ; Gao, Liming ; Liu, > Zhiguang ; James Bottomley ; > Yao, Jiewen ; Gerd Hoffmann ; > Brijesh Singh ; Aktas,

回复: [edk2-devel] 回复: [PATCH v2 1/1] MdePkg/Include: Use DEBUG_FILE_PATH to specify debug file path.

2022-04-16 Thread gaoliming
Guomin: I understand the purpose. But, I don't see the complete solution to configure DEBUG_FILE_PATH for every source file in order to meet with the debug image reproducible builds. Have you verified this solution with the real DEBUG_FILE_PATH for every source file? Or, you just set

Re: [edk2-devel] [PATCH V12 33/47] OvmfPkg: Update Sec to support Tdx

2022-04-16 Thread Min Xu
On April 16, 2022 10:52 PM, Tom Lendacky wrote: > On 4/15/22 19:13, Xu, Min M wrote: > > On April 16, 2022 4:05 AM, Tom Lendacky wrote: > >>>#define SEC_IDT_ENTRY_COUNT 34 > >>> @@ -738,6 +737,20 @@ SecCoreStartupWithStack ( > >>> UINT32Index; > >>> volatile UINT8

[edk2-devel] [PATCH V3 7/7] OvmfPkg: Call CcProbe in SecMain.c instead of TsIsEnabled

2022-04-16 Thread Min Xu
BZ: https://bugzilla.tianocore.org/show_bug.cgi?id=3902 TdIsEnabled() uses the CPUID instruction. At this point, exception handling is not established and a CPUID instruction will generate a #VC and cause the booting guest to crash. CcProbe() checks Ovmf work area to return the guest type. So

[edk2-devel] [PATCH V3 6/7] MdePkg: Probe Cc guest in BaseIoLibIntrinsicSev

2022-04-16 Thread Min Xu
BZ: https://bugzilla.tianocore.org/show_bug.cgi?id=3902 Bad IO performance in SEC phase is observed after TDX features was introduced. (after commit b6b2de884864 - "MdePkg: Support mmio for Tdx guest in BaseIoLibIntrinsic"). This is because IsTdxGuest() will be called in each MMIO operation. It

[edk2-devel] [PATCH V3 5/7] OvmfPkg: Add CcProbeLib in *.dsc

2022-04-16 Thread Min Xu
BZ: https://bugzilla.tianocore.org/show_bug.cgi?id=3902 CcProbeLib is imported in BaseIoLibIntrinsicSev. OvmfPkg/Library/CcProbeLib is the OvmfPkg version which checks OvmfWorkArea to return the Cc guest type. It is included in OvmfPkgX64.dsc and IntelTdx/IntelTdxX64.dsc. Other .dsc include the

[edk2-devel] [PATCH V3 4/7] OvmfPkg: Add CcProbeLib

2022-04-16 Thread Min Xu
BZ: https://bugzilla.tianocore.org/show_bug.cgi?id=3902 This is the OvmfPkg specific CcProbeLib. It checks the Ovmf WorkArea (PcdOvmfWorkAreaBase) to return the guest type. Cc: Michael D Kinney Cc: Liming Gao Cc: Zhiguang Liu Cc: James Bottomley Cc: James Bottomley Cc: Jiewen Yao Cc: Gerd

[edk2-devel] [PATCH V3 3/7] MdePkg: Add CcProbeLib

2022-04-16 Thread Min Xu
BZ: https://bugzilla.tianocore.org/show_bug.cgi?id=3902 CcProbeLib is used to probe the Confidential Computing guest type. This library is designed to run on SEC / PEI / DXE phases. A null instance of the library always returns CCGuestTypeNonEncrypted. A platform specific CcProbeLib will be

[edk2-devel] [PATCH V3 2/7] OvmfPkg: Replace GUEST_TYPE with CC_GUEST_TYPE

2022-04-16 Thread Min Xu
BZ: https://bugzilla.tianocore.org/show_bug.cgi?id=3902 Replace GUEST_TYPE with CC_GUEST_TYPE which is defined in MdePkg/Include/ConfidentialComputingGuestAttr.h. Cc: Michael D Kinney Cc: Liming Gao Cc: Zhiguang Liu Cc: James Bottomley Cc: Jiewen Yao Cc: Gerd Hoffmann Cc: Brijesh Singh

[edk2-devel] [PATCH V3 1/7] MdePkg: Add CC_GUEST_TYPE in ConfidentialComputingGuestAttr.h

2022-04-16 Thread Min Xu
BZ: https://bugzilla.tianocore.org/show_bug.cgi?id=3902 The confidential computing guest type (GUEST_TYPE) was defined in OvmfPkg/Include/WorkArea.h. Now it is to be moved to MdePkg/Include/ConfidentialComputingGuestAttr.h and renamed as CC_GUEST_TYPE. There are 2 reasons for this change. 1.

[edk2-devel] [PATCH V3 0/7] Introduce CcProbe in MdePkg

2022-04-16 Thread Min Xu
BZ: https://bugzilla.tianocore.org/show_bug.cgi?id=3902 Bad IO performance in SEC phase is observed after TDX features was introduced. (after commit b6b2de884864 - "MdePkg: Support mmio for Tdx guest in BaseIoLibIntrinsic"). This is because IsTdxGuest() will be called in each MMIO operation. It

Re: [edk2-devel] [PATCH V12 42/47] OvmfPkg: Add TdxDxe driver

2022-04-16 Thread Min Xu
On April 16, 2022 11:09 PM, Lendacky, Thomas wrote: > On 4/15/22 20:57, Xu, Min M wrote: > > On April 16, 2022 4:52 AM, Lendacky, Thomas wrote: > >> > >> Unfortunately, this driver also breaks SEV-ES. I bypassed the TDX > >> code in the SEC library, but then hit an issue because this driver is >

Re: [edk2-devel] Applying for GSoC 2022: Add Rust Support to EDK II

2022-04-16 Thread Ayush Singh
Thanks, I have updated my Proposal based on the discussion on the mailing list, so feel free to give feedback on that. As far as my views go, I agree that it's not realistic to convert all edk2 to Rust. I think of this project to be about making Rust an option to do firmware development in, and

Re: [edk2-devel] [PATCH V12 42/47] OvmfPkg: Add TdxDxe driver

2022-04-16 Thread Lendacky, Thomas via groups.io
On 4/15/22 20:57, Xu, Min M wrote: On April 16, 2022 4:52 AM, Lendacky, Thomas wrote: Unfortunately, this driver also breaks SEV-ES. I bypassed the TDX code in the SEC library, but then hit an issue because this driver is loaded before the AmdSevDxe driver. The AmdSevDxe driver performs a

[edk2-devel] How do you go about porting a new platform to MinPlatform?

2022-04-16 Thread Pedro Falcato
Hi all, Inspired by the current possible QemuOpenBoardPkg efforts in GSoC, I'm interested in writing something similar myself, in my spare time, possibly using the ARM or RISCV virt machine types in QEMU as a basis. The MinPlatform spec is (or at least, looks) pretty detailed on porting platforms

Re: [edk2-devel] [staging/LoongArch RESEND PATCH v1 19/33] MdePkg: Add LoongArch LOONGARCH64 binding

2022-04-16 Thread Abner Chang
HI Li, No, you don’t have to remove the tailing “_”. You can check section 5.3.5. in EDK2 C Coding Standards Spec. Regards, Abner From: Chao Li Sent: Tuesday, April 12, 2022 5:05 PM To: Chang, Abner (HPS SW/FW Technologist) Cc: "devel@edk2.groups.io" ; Michael D Kinney ; Liming Gao ; Zhiguang

Re: [edk2-devel] [PATCH V12 33/47] OvmfPkg: Update Sec to support Tdx

2022-04-16 Thread Lendacky, Thomas via groups.io
On 4/15/22 19:13, Xu, Min M wrote: On April 16, 2022 4:05 AM, Tom Lendacky wrote: #define SEC_IDT_ENTRY_COUNT 34 @@ -738,6 +737,20 @@ SecCoreStartupWithStack ( UINT32Index; volatile UINT8*Table; + #if defined (TDX_GUEST_SUPPORTED) + if (TdIsEnabled ()) {

Re: [edk2-devel] [staging/LoongArch RESEND PATCH v1 25/33] MdePkg/BaseCpuLib: LoongArch Base CPU library implementation.

2022-04-16 Thread Abner Chang
Hi Li, Maybe I forget to attach it. The cover letter of that CpuLib patch set attached. Regards, Abner From: Chao Li Sent: Wednesday, April 13, 2022 11:17 AM To: Chang, Abner (HPS SW/FW Technologist) Cc: "devel@edk2.groups.io" ; Michael D Kinney ; Liming Gao ;

Re: [edk2-devel] [edk2-discuss] GSoC Proposal

2022-04-16 Thread Ada Christine
I've submitted an updated version of my proposal document. There's a little more detail and I've shifted from using the term "dynamic linking" to "code sharing" to reflect the fact that the question of which solution will fit best is not yet answered. If there are any more important matters not