Re: [edk2-devel] [PATCH v3 4/6] OvmfPkg/ResetVector: SEV: keep #vc handler installed longer

2024-02-20 Thread Lendacky, Thomas via groups.io
On 2/20/24 03:06, Gerd Hoffmann wrote: When running in SEV mode do not uninstall the #vc handler in CheckSevFeatures. Keep it active and uninstall it later in SevClearPageEncMaskForGhcbPage. This allows using the cpuid instruction in SetCr3ForPageTables64, which is needed to check for la57 & 1

Re: [edk2-devel] [PATCH v3 4/6] OvmfPkg/ResetVector: SEV: keep #vc handler installed longer

2024-02-20 Thread Laszlo Ersek
On 2/20/24 10:06, Gerd Hoffmann wrote: > When running in SEV mode do not uninstall the #vc handler in > CheckSevFeatures. Keep it active and uninstall it later in > SevClearPageEncMaskForGhcbPage. > > This allows using the cpuid instruction in SetCr3ForPageTables64, > which is needed to check fo

[edk2-devel] [PATCH v3 4/6] OvmfPkg/ResetVector: SEV: keep #vc handler installed longer

2024-02-20 Thread Gerd Hoffmann
When running in SEV mode do not uninstall the #vc handler in CheckSevFeatures. Keep it active and uninstall it later in SevClearPageEncMaskForGhcbPage. This allows using the cpuid instruction in SetCr3ForPageTables64, which is needed to check for la57 & 1G page support. Signed-off-by: Gerd Hoff