]> git.proxmox.com Git - mirror_edk2.git/commit
OvmfPkg/QemuFwCfgLib: rewrite fw_cfg probe
authorGerd Hoffmann <kraxel@redhat.com>
Fri, 2 Dec 2022 13:10:08 +0000 (14:10 +0100)
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Wed, 14 Dec 2022 17:45:41 +0000 (17:45 +0000)
commit81bbc1452c972218f071cd4a8f5899df974b1dae
tree0ef7199afdd87d10b1d418c8bd53bde5864cc5ab
parente59747bd8246135faeecc18879d62db66a6acfc2
OvmfPkg/QemuFwCfgLib: rewrite fw_cfg probe

Move the code to a new QemuFwCfgProbe() function.  Use direct Io*() calls
instead of indirect QemuFwCfg*() calls to make sure we don't get
recursive calls.  Also simplify CC guest detection.

Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Tested-by: Tom Lendacky <thomas.lendacky@amd.com>
Acked-by: Ard Biesheuvel <ardb@kernel.org>
OvmfPkg/Library/QemuFwCfgLib/QemuFwCfgPei.c
OvmfPkg/Library/QemuFwCfgLib/QemuFwCfgPeiLib.inf