Skip to content

x86/kexec: Secure Boot support

Kevin Lampis xen-devel 3 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest7 patches 1 replyIn review
  2. v2 posting 2/27 patches 9 repliesSuperseded
  3. v2 posting 1/27 patches 15 repliesSuperseded

Changes in v3 from the cover letter

- Review comments

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/7x86/kexec: add digest checksxen/common/kexec.c xen/common/kimage.c xen/include/xen/kimage.h+87 -00 replies
2/7x86/kexec: rename setup_header to bzimage_headerxen/arch/x86/bzimage.c xen/arch/x86/include/asm/bzimage.h+43 -430 replies
3/7x86/kexec: add new struct kimage_segmentxen/common/kexec.c xen/common/kimage.c xen/include/xen/kimage.h+36 -190 replies
4/7x86/kexec: Support non-page-aligned kexec segmentsxen/common/kimage.c xen/include/xen/kimage.h+38 -100 replies
5/7x86/kexec: Implement new EFI load typetools/libs/ctrl/xc_kexec.c xen/arch/x86/Makefile xen/arch/x86/include/asm/bzimage.h +6 more+143 -321 reply
6/7x86/kexec: Pass boot params directly to new kernelxen/arch/x86/include/asm/machine_kexec.h xen/arch/x86/machine_kexec.c xen/arch/x86/x86_64/kexec_reloc.S+6 -20 replies
7/7x86/kexec: Zero GPRs before enteringxen/arch/x86/x86_64/kexec_reloc.S+20 -00 replies

Reviews trailers per patch

1 of 7 patches has a Reviewed-by or Acked-by.

PatchAndrew Cooper
1/7
2/7R-b
3/7
4/7
5/7
6/7
7/7

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v3 thread

Cover letter [PATCH v3 0/7] x86/kexec: Secure Boot support

These changes allow loading and booting an EFI kexec crash kernel.

For this new EFI kexec type, userspace won't provide purgatory code. Instead Xen jumps directly to the new kernel.

Signature validation is done by the dom0 kernel. Xen then calculates a digest for all the segments stored in memory. This digest is verified again during execution. This digest check obviates the need for Xen to verify Secure Boot signatures directly.

Changes in v3:
- Review comments

Changes in v2:
- Addressed review comments for specific patches

Kevin Lampis (2):
x86/kexec: Pass boot params directly to new kernel x86/kexec: Zero GPRs before entering

Ross Lagerwall (5):
x86/kexec: add digest checks
x86/kexec: rename setup_header to bzimage_header x86/kexec: add new struct kimage_segment x86/kexec: Support non-page-aligned kexec segments x86/kexec: Implement new EFI load type

 tools/libs/ctrl/xc_kexec.c               |   2 +-
 xen/arch/x86/Makefile                    |   1 +
 xen/arch/x86/bzimage.c                   |  47 +----
 xen/arch/x86/include/asm/bzimage.h       |  44 +++++
 xen/arch/x86/include/asm/kexec.h         |   9 +
 xen/arch/x86/include/asm/machine_kexec.h |   2 +-
 xen/arch/x86/kexec.c                     |  58 +++++++
 xen/arch/x86/machine_kexec.c             |   3 +-
 xen/arch/x86/x86_64/kexec_reloc.S        |  23 +++
 xen/common/kexec.c                       |  38 ++++-
 xen/common/kimage.c                      | 208 ++++++++++++++++++-----
 xen/include/public/kexec.h               |  12 +-
 xen/include/xen/kimage.h                 |  20 ++-
 13 files changed, 367 insertions(+), 100 deletions(-)
 create mode 100644 xen/arch/x86/include/asm/kexec.h
 create mode 100644 xen/arch/x86/kexec.c
Signature · 1 line
2.52.0