On 2024-03-14 03:11, Jan Beulich wrote:
On 13.03.2024 20:30, Jason Andryuk wrote:
A new ELF note will specify the alignment for a relocatable PVH kernel.
ELF notes are suitable for vmlinux and other ELF files, so this
Linux-specific bzImage parsing in unnecessary.
Hmm, shouldn't the order of attempts to figure the alignment be ELF note,
ELF header, and then 2Mb?
This patch series makes Xen only relocate when the ELF Note is present.
Linux PVH entry points today are not relocatable, so that needs to be
specified some way. This new note also includes the alignment, so there
is no need to try other means of obtaining the alignment.
Also, the ELF header values didn't change with CONFIG_PHYSICAL_ALIGN, so
that didn't seem reliable.
Thanks,
Jason