Re: [edk2-devel] [PATCH] OvmfPkg/OvmfPkgX64: Use different CcProbeLib when SMM is on or off

2022-05-17 Thread Yao, Jiewen
@edk2.groups.io; Aktas, Erdem > ; James Bottomley ; Tom > Lendacky > Subject: Re: [edk2-devel] [PATCH] OvmfPkg/OvmfPkgX64: Use different > CcProbeLib when SMM is on or off > > On Tue, May 17, 2022 at 12:47:21PM +, Yao, Jiewen wrote: > > Question: Does this patch need catch r

Re: [edk2-devel] [PATCH] OvmfPkg/OvmfPkgX64: Use different CcProbeLib when SMM is on or off

2022-05-17 Thread dann frazier
On Tue, May 17, 2022 at 12:47:21PM +, Yao, Jiewen wrote: > Question: Does this patch need catch release 202205 release? It does fix a regression since 202202, so I'd hope so :) -dann > > > > -Original Message- > > From: Xu, Min M > > Sent: Tuesday, May 17, 2022 8:43 PM > > To: d

Re: [edk2-devel] [PATCH] OvmfPkg/OvmfPkgX64: Use different CcProbeLib when SMM is on or off

2022-05-17 Thread dann frazier
On Tue, May 17, 2022 at 08:43:14PM +0800, Min Xu wrote: > CcProbeLib is designed to check the vm guest type. The OvmfPkg/CcProbeLib > reads the OvmfWorkArea (0x80B000) to get the vm guest type which is > written by each guest (SEV or TDX guest). But in SMM drivers the access > to OvmfWorkArea is il

Re: [edk2-devel] [PATCH] OvmfPkg/OvmfPkgX64: Use different CcProbeLib when SMM is on or off

2022-05-17 Thread Yao, Jiewen
Question: Does this patch need catch release 202205 release? > -Original Message- > From: Xu, Min M > Sent: Tuesday, May 17, 2022 8:43 PM > To: devel@edk2.groups.io > Cc: Xu, Min M ; dann frazier > ; Aktas, Erdem ; > James Bottomley ; Yao, Jiewen ; > Tom Lendacky > Subject: [PATCH] Ovm

[edk2-devel] [PATCH] OvmfPkg/OvmfPkgX64: Use different CcProbeLib when SMM is on or off

2022-05-17 Thread Min Xu
CcProbeLib is designed to check the vm guest type. The OvmfPkg/CcProbeLib reads the OvmfWorkArea (0x80B000) to get the vm guest type which is written by each guest (SEV or TDX guest). But in SMM drivers the access to OvmfWorkArea is illegal. PiSmmCpuDxeSmm.inf is an example. It uses IoLib which in