]> git.proxmox.com Git - mirror_edk2.git/commit
OvmfPkg/OvmfXen: Build platform info HOB in XenPlatformPei
authorAnthony PERARD <anthony.perard@citrix.com>
Mon, 19 Dec 2022 16:36:20 +0000 (00:36 +0800)
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Wed, 21 Dec 2022 08:53:58 +0000 (08:53 +0000)
commit0b633b14944903c32aa061befaf38bd8d994cf13
tree6a759e4c660303cb3a1821d77f80c427a8b43505
parent451521ccbcaa45de27fbcd2565cb363fd05e3661
OvmfPkg/OvmfXen: Build platform info HOB in XenPlatformPei

Copy the function BuildPlatformInfoHob() from OvmfPkg/PlatformPei.

QemuFwCfgLib expect this HOB to be present, or fails to do anything.
InternalQemuFwCfgIsAvailable() from QemuFwCfgPeiLib module will not
check if the HOB is actually present for example and try to use a NULL
pointer.

Fixes: cda98df16228 ("OvmfPkg/QemuFwCfgLib: remove mQemuFwCfgSupported + mQemuFwCfgDmaSupported")
Signed-off-by: Anthony PERARD <anthony.perard@citrix.com>
Reviewed-by: Gerd Hoffmann <kraxel@redhat.com>
Acked-by: Jiewen Yao <jiewen.yao@intel.com>
OvmfPkg/XenPlatformPei/Platform.c
OvmfPkg/XenPlatformPei/Platform.h