diff options
author | Gerd Hoffmann <kraxel@redhat.com> | 2022-12-02 14:10:09 +0100 |
---|---|---|
committer | mergify[bot] <37929162+mergify[bot]@users.noreply.github.com> | 2022-12-14 17:45:41 +0000 |
commit | cda98df16228970dcf9a4ce2af5368219711b4b0 (patch) | |
tree | bd172b19636374812c4921d03a42d35798039295 /OvmfPkg/Include | |
parent | 81bbc1452c972218f071cd4a8f5899df974b1dae (diff) | |
download | edk2-cda98df16228970dcf9a4ce2af5368219711b4b0.tar.gz edk2-cda98df16228970dcf9a4ce2af5368219711b4b0.tar.bz2 edk2-cda98df16228970dcf9a4ce2af5368219711b4b0.zip |
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>
Diffstat (limited to 'OvmfPkg/Include')
-rw-r--r-- | OvmfPkg/Include/Library/PlatformInitLib.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/OvmfPkg/Include/Library/PlatformInitLib.h b/OvmfPkg/Include/Library/PlatformInitLib.h index da7ed76041..bf6f90a576 100644 --- a/OvmfPkg/Include/Library/PlatformInitLib.h +++ b/OvmfPkg/Include/Library/PlatformInitLib.h @@ -50,6 +50,10 @@ typedef struct { UINT32 S3AcpiReservedMemorySize;
UINT64 FeatureControlValue;
+
+ BOOLEAN QemuFwCfgChecked;
+ BOOLEAN QemuFwCfgSupported;
+ BOOLEAN QemuFwCfgDmaSupported;
} EFI_HOB_PLATFORM_INFO;
#pragma pack()
|