-
Notifications
You must be signed in to change notification settings - Fork 58
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
pvh: Support booting via PVH ELFNOTE
This PR adds support for booting via the Xen HVM direct boot ABI. See: https://xenbits.xen.org/docs/4.12-testing/misc/pvh.html This uses a 32-bit unpaged entry point, so we just point it at ram32_start. This allows our firmware to be used with QEMU's -kernel option. Signed-off-by: Joe Richey <[email protected]>
- Loading branch information
Showing
3 changed files
with
24 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
.section .notes, "a" | ||
|
||
# From xen/include/public/elfnote.h, "Physical entry point into the kernel." | ||
XEN_ELFNOTE_PHYS32_ENTRY = 18 | ||
|
||
# We don't bother defining an ELFNOTE macro, as we only have one note. | ||
# This is equialent to the kernel's: | ||
# ELFNOTE(Xen, XEN_ELFNOTE_PHYS32_ENTRY, .long ram32_start) | ||
.align 4 | ||
.long name_end - name_start # namesz | ||
.long desc_end - desc_start # descsz | ||
.long XEN_ELFNOTE_PHYS32_ENTRY # type | ||
name_start: | ||
.asciz "Xen" | ||
name_end: | ||
.align 4 | ||
desc_start: | ||
.long ram32_start | ||
desc_end: | ||
.align 4 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters