Re: [PATCH] OvmfPkg/BhyveBhfPkg: install bhyve's ACPI tables
Peter Grehan
It's much easier to create configuration dependend ACPI tables for > bhyve than for OVMF. For this reason, don't use the statically>created ACPI tables provided by OVMF. Instead use the dynamically> created ACPI tables of bhyve. If bhyve provides no ACPI tables or> we are unable to detect those, fall back to OVMF tables. This looks fine though bhyve will need to generate MCFG to get to full parity. I've requested in the past that you do this so I'll request again: please discuss these changes on the freebsd-virtualization list before sending patches outside of the project. Acked-by: Peter Grehan <grehan@...> later, Peter.
|
|
|
|
Re: [PATCH V2 0/3] Introduce TdProtocol into EDK2
Min Xu
On October 12, 2021 11:27 PM, Sami Mujawar wrote:
Hi Min,Thanks for your comments. Let me first discuss your feedback with our architecture. We will reply to your proposal a bit later. Thanks. Min
|
|
|
|
Re: [PATCH V2 06/28] MdePkg: Update BaseIoLibIntrinsicSev to support Tdx
Gerd Hoffmann
Hi,
Hmm, I guess we should move the pcd then so it cam be used more widely.Calling CPUID should not be needed, we have a new fancyThe gUefiCpuPkgTokenSpaceGuid.PcdConfidentialComputingGuestAttr is defined in UefiCpuPkg. While BaseIoLibIntrinsicSev is in MdePkg. Confidential computing has an impact beyond just cpu, it's also memory, io and more. That'll work too, I don't care much about the ordering.Maybe that's something to cleanup for amd (Brijesh?) beforehand, so theTdx patches can first use above structure. AMD can update it later. Either way is ok. take care, Gerd
|
|
|
|
Re: [PATCH V2 05/28] MdePkg: Add TdxLib to wrap Tdx operations
Gerd Hoffmann
Hi,
MdePkg/Include/Base.h has a bunch of ALIGN_* macros to do the math forIn the PoC of TDVF I had thought about it. But at last I gave up such solution. The reasons are:+UINT8 *mExtendBufferAddress = NULL;Can't you just use __attribute__((aligned(64))) for that? you, which should simplify this alot. I'd suggest to also drop the mExtendBufferAddress and the function calculating it. Just use the macro instead when needed. take care, Gerd
|
|
|
|
Re: [PATCH V2 28/28] OvmfPkg: Add LocalApicTimerDxe
Min Xu
On October 12, 2021 9:02 PM, Gerd Hoffmann wrote:
On Tue, Oct 05, 2021 at 11:39:39AM +0800, Min Xu wrote:Thanks for reminder. Let me first do some more investigation about the XenTimerDxe. It will be better to use an existing lapic timer than introducing a new one.RFC: https://bugzilla.tianocore.org/show_bug.cgi?id=3429Hmm. Let me do some more investigation. Thanks. Min
|
|
|
|
Re: [PATCH] OvmfPkg/Bhyve: Use QemuFwCfg over BhyveFwCtl
Gerd Hoffmann
On Wed, Oct 13, 2021 at 11:26:23AM +0200, Corvin Köhne wrote:
From: Corvin Köhne <CorvinK@...>Does bhyve implement the qemu fwcfg interface? Acked-by: Gerd Hoffmann <kraxel@...> take care, Gerd
|
|
|
|
Re: [PATCH] OvmfPkg/BhyveBhfPkg: install bhyve's ACPI tables
Gerd Hoffmann
Hi,
+#define BHYVE_ACPI_PHYSICAL_ADDRESS ((UINTN)0x000F2400) + //So bhyve copies the tables to guest memory and ovmf searches for them, correct? The commit message should (briefly) describe how the tables are passed from the host to the guest. The code looks sane to me, so with a more verbose commit message: Acked-by: Gerd Hoffmann <kraxel@...> take care, Gerd
|
|
|
|
Re: [edk2-libc Patch 1/1] AppPkg/Applications/Python/Python3.6.8: add IA32 support for py3 package creation batch script
Rebecca Cran <rebecca@...>
Pushed as 2ebe49ccd34cfd59bac32216b71334d371b3fa44.
toggle quoted messageShow quoted text
Sorry, I forgot to add my "Acked-by" to the commit before pushing. Acked-by: Rebecca Cran <rebecca@...>
On 10/13/21 10:48 PM, Jayaprakash Nevara wrote:
REF: https://bugzilla.tianocore.org/show_bug.cgi?id=3638
|
|
|
|
Re: [PATCH v2] ArmPkg/TimerDxe: Delay End Of Interrupt Signal
Ashish Singhal
Hello Jeff,
Thanks for the reference you provided of the change made by you. Leveraging a similar change resolves the problem 90 percent for me as I do not get the ISR interrupted for the most part because of another timer interrupt. However, even with your change, during
the ISR there are few instructions during which IRQ is enabled and we may be interrupted by a timer interrupt during that time unless I am understanding it wrong.
Thanks
Ashish
From: fanjianfeng@... <fanjianfeng@...>
Sent: Tuesday, October 12, 2021 8:32 PM To: devel@edk2.groups.io <devel@edk2.groups.io>; Ashish Singhal <ashishsingha@...>; Marc Zyngier <maz@...>; Ard Biesheuvel <ardb@...>; Shanker Donthineni <sdonthineni@...> Cc: devel@edk2.groups.io <devel@edk2.groups.io>; Leif Lindholm <leif@...> Subject: Re: Re: [edk2-devel] [PATCH v2] ArmPkg/TimerDxe: Delay End Of Interrupt Signal
OVMF did a similare change on Time Driver, please refer to
https://github.com/tianocore/edk2/commit/239b50a863704f7960525799eda82de061c7c458
I do not think this will be apply for ArmPkg/TimerDxe.
If one real issue happened on platform, it seems that interrupt was reenabled by reigstered timer event functions.
Jeff
|
|
|
|
[edk2-libc Patch 1/1] AppPkg/Applications/Python/Python3.6.8: add IA32 support for py3 package creation batch script
Jayaprakash, N
REF: https://bugzilla.tianocore.org/show_bug.cgi?id=3638
This change is to add IA32 support into py3 EFI package creation batch script. Enhanced the script take Architecture as an additional parameter. With this the script can be used to create deployable Python 3.6.8 EFI package from X64 and IA32 builds as required by the user Cc: Rebecca Cran <rebecca@...> Cc: Michael D Kinney <michael.d.kinney@...> Signed-off-by: Jayaprakash N <n.jayaprakash@...> --- .../Python-3.6.8/create_python368_pkg.bat | 62 ++++++++++++------- 1 file changed, 39 insertions(+), 23 deletions(-) diff --git a/AppPkg/Applications/Python/Python-3.6.8/create_python368_pkg.bat b/AppPkg/Applications/Python/Python-3.6.8/create_python368_pkg.bat index 6bbdbd9..b48f83e 100644 --- a/AppPkg/Applications/Python/Python-3.6.8/create_python368_pkg.bat +++ b/AppPkg/Applications/Python/Python-3.6.8/create_python368_pkg.bat @@ -2,47 +2,63 @@ set TOOL_CHAIN_TAG=%1 set TARGET=%2 -set OUT_FOLDER=%3 +set ARCH=%3 +set OUT_FOLDER=%4 if "%TOOL_CHAIN_TAG%"=="" goto usage if "%TARGET%"=="" goto usage +if "%ARCH%"=="" goto usage if "%OUT_FOLDER%"=="" goto usage goto continue :usage echo. +echo Batch Script to create Python EFI Package. echo. +echo Invalid command line arguments passed, please see the below usage instructions echo. -echo Creates Python EFI Package. -echo. -echo "Usage: %0 <ToolChain> <Target> <OutFolder>" -echo. -echo ToolChain = one of VS2013x86, VS2015x86, VS2017, VS2019 -echo Target = one of RELEASE, DEBUG -echo OutFolder = Target folder where package needs to create -echo. +echo "Usage: %0 <ToolChain> <Target> <Architecture> <OutFolder>" echo. +echo ToolChain = one of VS2013x86, VS2015x86, VS2017, VS2019 +echo Target = one of RELEASE, DEBUG +echo Architecture = one of IA32, X64 +echo OutFolder = Output directory for creating the package echo. goto :eof :continue cd ..\..\..\..\ -IF NOT EXIST Build\AppPkg\%TARGET%_%TOOL_CHAIN_TAG%\X64\Python368.efi goto error -mkdir %OUT_FOLDER%\EFI\Tools -xcopy Build\AppPkg\%TARGET%_%TOOL_CHAIN_TAG%\X64\Python368.efi %OUT_FOLDER%\EFI\Tools\ /y -mkdir %OUT_FOLDER%\EFI\StdLib\lib\python36.8 -mkdir %OUT_FOLDER%\EFI\StdLib\etc -xcopy AppPkg\Applications\Python\Python-3.6.8\Lib\* %OUT_FOLDER%\EFI\StdLib\lib\python36.8\ /Y /S /I -xcopy StdLib\Efi\StdLib\etc\* %OUT_FOLDER%\EFI\StdLib\etc\ /Y /S /I -goto all_done - -:error -echo Failed to Create Python 3.6.8 Package, Python368.efi is not available on build location Build\AppPkg\%TARGET%_%TOOL_CHAIN_TAG%\X64\ +if not exist Build\AppPkg\%TARGET%_%TOOL_CHAIN_TAG%\%ARCH%\Python368.efi ( + goto error +) +if not exist %OUT_FOLDER%\EFI\Tools ( + mkdir %OUT_FOLDER%\EFI\Tools +) +xcopy Build\AppPkg\%TARGET%_%TOOL_CHAIN_TAG%\%ARCH%\Python368.efi %OUT_FOLDER%\EFI\Tools\ /y -:all_done -exit /b %ec% - +if not exist %OUT_FOLDER%\EFI\StdLib\lib\python36.8 ( + mkdir %OUT_FOLDER%\EFI\StdLib\lib\python36.8 +) +if not exist %OUT_FOLDER%\EFI\StdLib\etc ( + mkdir %OUT_FOLDER%\EFI\StdLib\etc +) +xcopy AppPkg\Applications\Python\Python-3.6.8\Lib\* %OUT_FOLDER%\EFI\StdLib\lib\python36.8\ /Y /S /I +xcopy StdLib\Efi\StdLib\etc\* %OUT_FOLDER%\EFI\StdLib\etc\ /Y /S /I +echo. +if not x%OUT_FOLDER::=%==x%OUT_FOLDER% ( + echo Python EFI package available at %OUT_FOLDER% +) else ( + echo Python EFI package available at %CD%\%OUT_FOLDER% +) +goto all_done +:error +echo Failed to Create Python EFI Package +echo Python368.efi is not available at Build\AppPkg\%TARGET%_%TOOL_CHAIN_TAG%\%ARCH%\ +echo Follow the instructions in Py368ReadMe.txt to build Python interpreter +echo Then use this script to create a Python EFI package +:all_done +exit /b %ERRORLEVEL% -- 2.32.0.windows.2
|
|
|
|
[edk2-libc Patch v2 0/1] AppPkg/Applications/Python/Python3.6.8: add IA32 support for py3 package creation batch script
Jayaprakash, N
Jayaprakash Nevara (1):
AppPkg/Applications/Python/Python3.6.8: add IA32 support for py3 package creation batch script .../Python-3.6.8/create_python368_pkg.bat | 62 ++++++++++++------- 1 file changed, 39 insertions(+), 23 deletions(-)
|
|
|
|
TianoCore Community Meeting Minutes - October 2021
TianoCore Community Meeting October 7, 2021
Events UEFI Plugfest: No new updates since last month. Past AR review from September – o Community Action: provide input to Dick Wilkins Dick_Wilkins@...<mailto:Dick_Wilkins@...> on these questions - * Is your company interested in sponsoring? * Are you willing to pay for the conference?
Community Response - Community thinks that it’s useful to have a face to face event. Paying for the conference maybe fine for those that need to pay for hotel and flight. Aligning with UEFI plugfest is beneficial for the TianoCore design/technical roadmap discussions and for the TianoCore community to come together.
Stable Tag updates: Stable tag 202111 is collecting features. Soft freeze on Nov 8th. Community Action: please send your feature requests ahead of time to Liming.
Stewards Download:
Reduces code review time and provides consistent code base when having to recode so you don’t see mixed styles in diff parts of the tree. Community action – review the code style and provide feedback if you like it or not and what changes would you like to see. EDK2 C coding style is not identical to Uncrustify. Should we change EDK2 style? Please follow the discussion here - https://edk2.groups.io/g/devel/topic/progress_on_getting/84932137?p=,,,20,0,0,0::recentpostdate/sticky,,,20,2,0,84932137,previd=1633659901428425771,nextid=1633620778663080075&previd=1633659901428425771&nextid=1633620778663080075
Please follow the discussion here - https://edk2.groups.io/g/rfc/topic/rfc_static_analysis_in_edk2/85318202?p=,,,20,0,0,0::recentpostdate/sticky,,,20,2,0,85318202,previd=1633604560724866953,nextid=1619704994055247213&previd=1633604560724866953&nextid=1619704994055247213
a. Mike has handled it by changing the permissions disabling for people to create accounts to avoid the spam. Open: What process should we follow? AR: Mike and Liming will follow up in the email on the TianoCore Bugzilla account creation process and post it. wiki pages need to be updated as well.
Opens:
OCP summit schedule here - https://2021ocpglobal.fnvirtual.app/a/schedule Check out these sessions – 1) Wed, November 10, 2:15pm - 2:30pm | SJCC - Concourse Level - 210BF FSP and MinPlatform for Sapphire Rapids Intel® Xeon® Scalable Processors by Nate Desimone and Isaac Oram (Intel). 2) Wed, November 10, 4:15pm - 4:30pm | SJCC - Concourse Level - 210BF Enabling Runtime RAS on Xeon OCP Platforms Using Intel FSP and Coreboot by Ruth Li
Regards, Soumya Guptha TianoCore Community Manager
|
|
|
|
Re: [edk2-libc Patch 1/1] AppPkg/Applications/Python/Python3.6.8: add IA32 support for py3 package creation batch script
Rebecca Cran <rebecca@...>
Sorry for the delay.
toggle quoted messageShow quoted text
I can't see the copy of the patch you sent out: could you send it again, this time marking it as v2 please? Since it's sent out via email there's no problem with duplicates. -- Rebecca Cran
On 10/3/21 6:35 PM, Jayaprakash, N wrote:
Hi Rebecca / Mike,
|
|
|
|
[PATCH v1 1/1] StandaloneMmPkg: To support CLANGPDB build
Jiyang Yang
the flag "-fpie" is passed for all builds with a GCC family toolchain,
including CLANGPDB, but CLANGPDB does not support this flag, it will report "clang: error: unsupported option '-fpie' for target 'x86_64-unknown-windows-gnu'". So we add the CLANGPDB option "-fno-pie" later to overwrite it. Cc: Ard Biesheuvel <ardb+tianocore@...> Cc: Sami Mujawar <sami.mujawar@...> Cc: Jiewen Yao <jiewen.yao@...> Cc: Supreeth Venkatesh <supreeth.venkatesh@...> Cc: Vitaly Cheptsov <vit9696@...> Cc: Marvin Häuser <mhaeuser@...> Cc: Steven Shi <steven.shi@...> Signed-off-by: Jiyang Yang <jiyangx.yang@...> --- StandaloneMmPkg/Core/StandaloneMmCore.inf | 2 ++ StandaloneMmPkg/Library/StandaloneMmCoreEntryPoint/StandaloneMmCoreEntryPoint.inf | 1 + 2 files changed, 3 insertions(+) diff --git a/StandaloneMmPkg/Core/StandaloneMmCore.inf b/StandaloneMmPkg/Core/StandaloneMmCore.inf index 56042b7b39f4..3213142523f4 100644 --- a/StandaloneMmPkg/Core/StandaloneMmCore.inf +++ b/StandaloneMmPkg/Core/StandaloneMmCore.inf @@ -79,3 +79,5 @@ [BuildOptions] GCC:*_*_*_CC_FLAGS = -fpie GCC:*_*_*_DLINK_FLAGS = -Wl,-z,text,-Bsymbolic,-pie + CLANGPDB:*_*_*_CC_FLAGS = -fno-pie + CLANGPDB:*_*_*_DLINK_FLAGS = diff --git a/StandaloneMmPkg/Library/StandaloneMmCoreEntryPoint/StandaloneMmCoreEntryPoint.inf b/StandaloneMmPkg/Library/StandaloneMmCoreEntryPoint/StandaloneMmCoreEntryPoint.inf index 1762586cfa02..ef69e07d2c07 100644 --- a/StandaloneMmPkg/Library/StandaloneMmCoreEntryPoint/StandaloneMmCoreEntryPoint.inf +++ b/StandaloneMmPkg/Library/StandaloneMmCoreEntryPoint/StandaloneMmCoreEntryPoint.inf @@ -56,3 +56,4 @@ [BuildOptions] GCC:*_*_*_CC_FLAGS = -fpie + CLANGPDB:*_*_*_CC_FLAGS = -fno-pie -- 2.26.2.windows.1
|
|
|
|
[PATCH v1 0/1] StandaloneMmPkg: To support CLANGPDB build
Jiyang Yang
the flag "-fpie" is passed for all builds with a GCC family toolchain,
including CLANGPDB, but CLANGPDB does not support this flag, it will report "clang: error: unsupported option '-fpie' for target 'x86_64-unknown-windows-gnu'". So we add the CLANGPDB option "-fno-pie" later to overwrite it. Cc: Ard Biesheuvel <ardb+tianocore@...> Cc: Sami Mujawar <sami.mujawar@...> Cc: Jiewen Yao <jiewen.yao@...> Cc: Supreeth Venkatesh <supreeth.venkatesh@...> Cc: Vitaly Cheptsov <vit9696@...> Cc: Marvin Häuser <mhaeuser@...> Cc: Steven Shi <steven.shi@...> Signed-off-by: Jiyang Yang <jiyangx.yang@...> Jiyang Yang (1): StandaloneMmPkg/StandaloneMmCoreEntryPoint: To support CLANGPDB build StandaloneMmPkg/Core/StandaloneMmCore.inf | 2 ++ StandaloneMmPkg/Library/StandaloneMmCoreEntryPoint/StandaloneMmCoreEntryPoint.inf | 1 + 2 files changed, 3 insertions(+) -- 2.26.2.windows.1
|
|
|
|
Re: [PATCH v3] MdeModulePkg/Core/Dxe: Acquire a lock when iterating gHandleList
Dandan Bi
Reviewed-by: Dandan Bi <dandan.bi@...>
toggle quoted messageShow quoted text
Thanks, Dandan
-----Original Message-----
|
|
|
|
Re: [PATCH V2 27/28] OvmfPkg: Update IoMmuDxe to support TDX
Min Xu
On October 12, 2021 8:16 PM, Gerd Hoffmann wrote:
Hi,Thanks for reminder. It will be updated in next version.+#define IO_MMU_LEGACY 0x0Yet another place where you should be able to just use the Thanks Min
|
|
|
|
Re: [PATCH V9 2/4] OvmfPkg: Clear WORK_AREA_GUEST_TYPE in Main.asm
Min Xu
On October 13, 2021 11:46 PM, Brijesh Singh wrote:
On 10/12/21 5:58 PM, Xu, Min M wrote:Ok. I will update the TDX code based on your new patch.On October 12, 2021 9:23 PM, Lendacky Thomas wrote:Good point Tom. The WORK_AREA_GUEST_TYPE define should be moved Thanks. Min
|
|
|
|
Re: [PATCH V2 14/28] OvmfPkg: Update SecEntry.nasm to support Tdx
Min Xu
On October 12, 2021 6:39 PM, Gerd Hoffmann wrote:
Hi,To mitigate the performance impact of accepting pages, there are 3 ways.- AcceptPages:Hmm, I'm wondering whenever it is useful to have this in the first place with 1. Big accept page size. 2. Accept the pages by BSP and APs together. 3. Lazy on-demand acceptance. From the perspective of implementation complexity, 1 < 2 < 3. Lazy on-demand acceptance need the update not only in TDVF, but also in Guest kernel. More investigation shows it also impacts the grub and memory management in EDK2. From the perspective of performance improvement, 2M accept page size + BSP/AP together, can improve the performance a lot. Based on above consideration, in current TDVF upstream, 1 + 2 are the ways to mitigate the performance impact. Upstream of 3 is in the future plan. Thanks! Min
|
|
|
|
Re: [PATCH V2 13/28] UefiCpuPkg: Enable Tdx support in MpInitLib
Min Xu
On October 12, 2021 6:32 PM, Gerd Hoffman wrote:
Hi,ConfidentialComputing PCD is set in PlatformPei. So any check of this PCD should be after PlatformPei.+ do {Again: this should use PCD. MpInitLib will be included in CpuMpPei. So if PCD is checked in MpInitLib, then we must assume CpuMpPei is called after PlatformPei. In current OVMF, CpuMpPei is called after PlatforPei. But I am not sure if it is always the case. Can we have such assumption? Based on above consideration, CPUID is used to probe if it is Tdx guest.
|
|
|