Re: [edk2-devel] [PATCH V3 2/2] OvmfPkg: Update CcProbeLib to DxeCcProbeLib

2022-08-26 Thread Gerd Hoffmann
On Fri, Aug 26, 2022 at 08:21:49AM +, Xu, Min M wrote: > On August 26, 2022 1:23 PM, Gerd Hoffmann wrote: > > Hi, > > > > > In DxeCcProbeLib we cache the GuestType in Ovmf work area in first-call. > > > After that the Guest type is returned with the cached value. So that > > > we don't need

Re: [edk2-devel] [PATCH V3 2/2] OvmfPkg: Update CcProbeLib to DxeCcProbeLib

2022-08-26 Thread Min Xu
On August 26, 2022 1:23 PM, Gerd Hoffmann wrote: > Hi, > > > In DxeCcProbeLib we cache the GuestType in Ovmf work area in first-call. > > After that the Guest type is returned with the cached value. So that > > we don't need to worry about the access to Ovmf work area after > > ExitBootService.

Re: [edk2-devel] [PATCH V3 2/2] OvmfPkg: Update CcProbeLib to DxeCcProbeLib

2022-08-25 Thread Gerd Hoffmann
Hi, > In DxeCcProbeLib we cache the GuestType in Ovmf work area in first-call. > After that the Guest type is returned with the cached value. So that we > don't need to worry about the access to Ovmf work area after > ExitBootService. This only works in case the first call is early enough. Bett

[edk2-devel] [PATCH V3 2/2] OvmfPkg: Update CcProbeLib to DxeCcProbeLib

2022-08-25 Thread Min Xu
From: Min M Xu BZ: https://bugzilla.tianocore.org/show_bug.cgi?id=3974 CcProbeLib once was designed to probe the Confidential Computing guest type by checking the PcdOvmfWorkArea. But this memory is allocated with either EfiACPIMemoryNVS or EfiBootServicesData. It cannot be accessed after ExitBo