[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Xen-devel] HVMLite / PVHv2 - using x86 EFI boot entry
- To: Roger Pau Monné <roger.pau@xxxxxxxxxx>
- From: Matt Fleming <matt@xxxxxxxxxxxxxxxxxxx>
- Date: Fri, 15 Apr 2016 23:53:28 +0100
- Cc: Michael Chang <MChang@xxxxxxxx>, "linux-kernel@xxxxxxxxxxxxxxx" <linux-kernel@xxxxxxxxxxxxxxx>, Jim Fehlig <jfehlig@xxxxxxxx>, Jan Beulich <JBeulich@xxxxxxxx>, "H. Peter Anvin" <hpa@xxxxxxxxx>, Daniel Kiper <daniel.kiper@xxxxxxxxxx>, X86 ML <x86@xxxxxxxxxx>, Vojtěch Pavlík <vojtech@xxxxxxx>, Gary Lin <GLin@xxxxxxxx>, "xen-devel@xxxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxxx>, Jeffrey Cheung <JCheung@xxxxxxxx>, Charles Arndol <carnold@xxxxxxxx>, Stefano Stabellini <stefano.stabellini@xxxxxxxxxxxxx>, joeyli <jlee@xxxxxxxx>, Borislav Petkov <bp@xxxxxxxxx>, Boris Ostrovsky <boris.ostrovsky@xxxxxxxxxx>, Juergen Gross <jgross@xxxxxxxx>, Andrew Cooper <andrew.cooper3@xxxxxxxxxx>, Julien Grall <julien.grall@xxxxxxx>, Andy Lutomirski <luto@xxxxxxxxxxxxxx>, "Luis R. Rodriguez" <mcgrof@xxxxxxxxxx>, David Vrabel <david.vrabel@xxxxxxxxxx>, Linus Torvalds <torvalds@xxxxxxxxxxxxxxxxxxxx>
- Delivery-date: Fri, 15 Apr 2016 22:53:36 +0000
- List-id: Xen developer discussion <xen-devel.lists.xen.org>
(Sorry, just realised I never replied to this)
On Wed, 13 Apr, at 01:59:10PM, Roger Pau Monné wrote:
>
> Is this header compatible with the ELF header? Con both co-exist in the
> same binary without issues?
Nope, they cannot. We get away with mixing bzImage headers and PE/COFF
headers for the EFI stub because bzImage has no magic string and
contains historical code at the start of the file. The code is never
executed in practice nowadays (it tells the user to use a boot loader
instead of direct execution) so we just stamp a PE/COFF header over it
when CONFIG_EFI_STUB is enabled.
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
http://lists.xen.org/xen-devel
|