[edk2-devel] [PATCH v4 05/35] OvmfPkg/OvmfXen: Creating an ELF header
Laszlo Ersek
lersek at redhat.com
Tue Jul 30 09:25:25 UTC 2019
On 07/29/19 17:39, Anthony PERARD wrote:
> This patch changes the flash device image of OvmfXen to make it look
> like it's an ELF. For this, we replace the empty embedded variable store
> by a binary array, which is a ELF file header.
>
> The ELF header explain to a loader to load the binary at the address
> 1MB, then jump to the PVH entry point which will be created in a later
> patch. The header also includes a Xen ELF note that is part of the
> PVH ABI.
>
> That patch include OvmfXenElfHeaderGenerator.c which can be use to
> regenerate the ELF header, but this will be a manual step.
>
> Ref: https://bugzilla.tianocore.org/show_bug.cgi?id=1689
> Signed-off-by: Anthony PERARD <anthony.perard at citrix.com>
> Acked-by: Laszlo Ersek <lersek at redhat.com>
> ---
>
> Notes:
> v4:
> - fix top-level comment style
> - Update Maintainers.txt
>
> v3:
> - added license to generate_elf_header.c
> which is renamed to OvmfPkg/OvmfXenElfHeaderGenerator.c
> - added an ELF NOTE into the header
>
> OvmfPkg/OvmfXen.fdf | 101 +++++++++++++++++++-
> OvmfPkg/OvmfXenElfHeaderGenerator.c | 140 ++++++++++++++++++++++++++++
> Maintainers.txt | 1 +
> 3 files changed, 239 insertions(+), 3 deletions(-)
> create mode 100644 OvmfPkg/OvmfXenElfHeaderGenerator.c
[...]
> diff --git a/Maintainers.txt b/Maintainers.txt
> index 42ec8d54af..016523b401 100644
> --- a/Maintainers.txt
> +++ b/Maintainers.txt
> @@ -373,6 +373,7 @@ F: OvmfPkg/Library/XenConsoleSerialPortLib/
> F: OvmfPkg/Library/XenHypercallLib/
> F: OvmfPkg/Library/XenIoMmioLib/
> F: OvmfPkg/OvmfXen.*
> +F: OvmfPkg/OvmfXenElfHeaderGenerator.c
> F: OvmfPkg/PlatformPei/MemDetect.c
> F: OvmfPkg/PlatformPei/Platform.*
> F: OvmfPkg/PlatformPei/Xen.*
>
Acked-by: Laszlo Ersek <lersek at redhat.com>
-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.
View/Reply Online (#44610): https://edk2.groups.io/g/devel/message/44610
Mute This Topic: https://groups.io/mt/32643838/1813853
Group Owner: devel+owner at edk2.groups.io
Unsubscribe: https://edk2.groups.io/g/devel/unsub [edk2-devel-archive at redhat.com]
-=-=-=-=-=-=-=-=-=-=-=-
More information about the edk2-devel-archive
mailing list