]> git.proxmox.com Git - mirror_edk2.git/commit
OvmfPkg: CloudHv: Fix FW_BASE_ADDRESS
authorSebastien Boeuf <sebastien.boeuf@intel.com>
Tue, 10 May 2022 12:50:43 +0000 (20:50 +0800)
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Fri, 3 Jun 2022 10:51:26 +0000 (10:51 +0000)
commit5c9f151e0c8c0a881bc374ec52fef07714735a82
treed3570839475c16b44eb87055d389f2c34da1ff0d
parent632574ced10fe184d5665b73c62c959109c39961
OvmfPkg: CloudHv: Fix FW_BASE_ADDRESS

The FW_BASE_ADDRESS value provided by OvmfPkgDefines.fdf.inc is
incorrect for the CloudHv target. We know the generated firmware
contains a PVH ELF header, meaning it will be loaded according to the
address provided through this header. And since we know this address
isn't going to change as it's part of CloudHvElfHeader.fdf.inc, we can
hardcode it through a new include file CloudHvDefines.fdf.inc, which
replaces the generic one OvmfPkgDefines.fdf.inc.

With this change, we prevent the firmware from accessing MMIO addresses
from the address range 0xffc00000-0xffffffff since we know the firmware
hasn't been loaded on this address range.

Signed-off-by: Sebastien Boeuf <sebastien.boeuf@intel.com>
OvmfPkg/CloudHv/CloudHvDefines.fdf.inc [new file with mode: 0644]
OvmfPkg/CloudHv/CloudHvX64.fdf