Skip to content

kexec: add kexec support to Mini-OS

Juergen Gross xen-devel 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest12 patches 2 repliesIn review
  2. v112 patches 24 repliesSuperseded

Changes in v2 from the cover letter

- addressed comments

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/12add kexec frameworkConfig.mk Makefile arch/x86/testbuild/all-no +4 more+76 -00 replies
2/12Mini-OS: add final kexec stagearch/x86/kexec.c arch/x86/minios-x86.lds.S arch/x86/x86_hvm.S +3 more+216 -01 reply
3/12mini-os: add elf.hinclude/elf.h+300 -00 replies
4/12mini-os: analyze new kernel for kexecarch/x86/kexec.c include/kexec.h kexec.c+220 -00 replies
5/12mini-os: kexec: finalize parameter location and sizearch/x86/kexec.c include/kexec.h kexec.c+20 -00 replies
6/12mini-os: reserve memory below boundaryinclude/mm.h kexec.c mm.c+98 -10 replies
7/12mini-os: kexec: build parameters for new kernelarch/x86/kexec.c include/kexec.h kexec.c+74 -10 replies
8/12mini-os: kexec: move used pages away for new kernelarch/x86/mm.c include/kexec.h kexec.c+137 -00 replies
9/12Mini-OS: mm: change set_readonly() to change_readonly()arch/x86/mm.c include/mm.h+64 -500 replies
10/12Mini-OS: kexec: switch read-only area to be writable againarch/x86/mm.c kexec.c+5 -10 replies
11/12mini-os: kexec: add kexec callback functionalityarch/x86/minios-x86.lds.S include/kexec.h kexec.c+27 -00 replies
12/12mini-os: kexec: do the final kexec stepkexec.c+15 -21 reply

Reviews trailers per patch

All 12 patches have a Reviewed-by or Acked-by.

PatchJason AndryukJan Beulich
1/12R-b
2/12R-b
3/12R-b
4/12R-b
5/12R-b
6/12R-b
7/12R-b
8/12R-b
9/12R-b
10/12R-b
11/12R-b
12/12R-b

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

Read the v2 thread

Cover letter [MINI-OS PATCH v2 00/12] kexec: add kexec support to Mini-OS

Add basic kexec support to Mini-OS for running in x86 PVH mode.

With this series applied it is possible to activate another kernel from within Mini-OS.

Right now no Xen related teardown is done (so no reset of grant table, event channels, PV devices). These should be added via kexec callbacks which are added as a framework.

This is a major building block for support of Xenstore-stubdom live update (in fact I've tested the kexec path to work using the PVH variant of Xenstore-stubdom).

Changes in V2:
- addressed comments

Juergen Gross (12):
add kexec framework
Mini-OS: add final kexec stage
mini-os: add elf.h
mini-os: analyze new kernel for kexec
mini-os: kexec: finalize parameter location and size
mini-os: reserve memory below boundary
mini-os: kexec: build parameters for new kernel
mini-os: kexec: move used pages away for new kernel
Mini-OS: mm: change set_readonly() to change_readonly()
Mini-OS: kexec: switch read-only area to be writable again
mini-os: kexec: add kexec callback functionality
mini-os: kexec: do the final kexec step

 Config.mk                  |   1 +
 Makefile                   |   1 +
 arch/x86/kexec.c           | 272 +++++++++++++++++++++++++++++++++
 arch/x86/minios-x86.lds.S  |  17 +++
 arch/x86/mm.c              | 238 ++++++++++++++++++++++-------
 arch/x86/testbuild/all-no  |   1 +
 arch/x86/testbuild/all-yes |   2 +
 arch/x86/testbuild/kexec   |   4 +
 arch/x86/x86_hvm.S         |  46 ++++++
 include/elf.h              | 300 +++++++++++++++++++++++++++++++++++++
 include/kexec.h            |  63 ++++++++
 include/mm.h               |   8 +
 include/x86/os.h           |   5 +
 kexec.c                    | 252 +++++++++++++++++++++++++++++++
 mm.c                       |  89 ++++++++++-
 15 files changed, 1248 insertions(+), 51 deletions(-)
 create mode 100644 arch/x86/kexec.c
 create mode 100644 arch/x86/testbuild/kexec
 create mode 100644 include/elf.h
 create mode 100644 include/kexec.h
 create mode 100644 kexec.c
Signature · 1 line
2.43.0