OvmfPkg/QemuFwCfgLib: remove mQemuFwCfgSupported + mQemuFwCfgDmaSupported

Remove global variables, store the state in PlatformInfoHob instead.
Probing for fw_cfg happens on first use, at library initialization
time the Hob might not be present yet.

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:09 +01:00
committed by mergify[bot]
parent 81bbc1452c
commit cda98df162
3 changed files with 45 additions and 7 deletions

View File

@@ -39,8 +39,12 @@
BaseLib
BaseMemoryLib
DebugLib
HobLib
IoLib
MemoryAllocationLib
[Guids]
gUefiOvmfPkgPlatformInfoGuid
[Pcd]
gUefiOvmfPkgTokenSpaceGuid.PcdOvmfWorkAreaBase