OvmfPkg/PlatformPei: remove mFeatureControlValue

Use PlatformInfoHob->FeatureControlValue instead.
OnMpServicesAvailable() will find PlatformInfoHob using
GetFirstGuidHob() and pass a pointer to the WriteFeatureControl
callback.

Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Tested-by: Tom Lendacky <thomas.lendacky@amd.com>
Acked-by: Ard Biesheuvel <ardb@kernel.org>
This commit is contained in:
Gerd Hoffmann
2022-12-02 14:10:06 +01:00
committed by mergify[bot]
parent 862614e254
commit f6a196c7eb
4 changed files with 36 additions and 14 deletions

View File

@@ -396,7 +396,7 @@ InitializePlatform (
}
IntelTdxInitialize ();
InstallFeatureControlCallback ();
InstallFeatureControlCallback (PlatformInfoHob);
return EFI_SUCCESS;
}