]> git.proxmox.com Git - mirror_edk2.git/commit - OvmfPkg/Include/Library/PlatformInitLib.h
OvmfPkg/QemuFwCfgLib: remove mQemuFwCfgSupported + mQemuFwCfgDmaSupported
authorGerd Hoffmann <kraxel@redhat.com>
Fri, 2 Dec 2022 13:10:09 +0000 (14:10 +0100)
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Wed, 14 Dec 2022 17:45:41 +0000 (17:45 +0000)
commitcda98df16228970dcf9a4ce2af5368219711b4b0
treebd172b19636374812c4921d03a42d35798039295
parent81bbc1452c972218f071cd4a8f5899df974b1dae
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>
OvmfPkg/Include/Library/PlatformInitLib.h
OvmfPkg/Library/QemuFwCfgLib/QemuFwCfgPei.c
OvmfPkg/Library/QemuFwCfgLib/QemuFwCfgPeiLib.inf