Skip to content

Make Xenstore-stubdom live update possible

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 Latest14 patches 2 repliesIn review
  2. v119 patches 27 repliesSuperseded

Changes in v2 from the cover letter

- patches 1-5 of V1 have been applied already
- addressed the (minor) comments to V1

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/14mm: don't add module pages to free memoryarch/x86/mm.c include/mm.h mm.c+98 -11 reply
2/14kexec: fix physical addresses in start info dataarch/x86/kexec.c+6 -60 replies
3/14e820: don't count lapic page as initially reservede820.c+3 -00 replies
4/14kexec: restructure building the start info dataarch/x86/kexec.c+11 -70 replies
5/14e820: use special type for software reserved memoryarch/x86/kexec.c e820.c include/e820.h+9 -50 replies
6/14mini-os: config: add support for config items with numerical valuesConfig.mk+4 -00 replies
7/14mini-os: kexec: add support for handing over some memory across kexecConfig.mk arch/x86/kexec.c arch/x86/mm.c +6 more+207 -01 reply
8/14kexec: add support for allocating pages from kexec module memoryarch/x86/kexec.c include/kexec.h kexec.c+183 -00 replies
9/149pfs: store bepath in struct struct dev_9pfs9pfront.c+10 -130 replies
10/149pfs: refactor init_9pfront()9pfront.c+86 -500 replies
11/14gnttab: remove gnttab_alloc_and_grant() functiongnttab.c include/gnttab.h+0 -140 replies
12/14gnttab: add function to obtain memory address from grantrefgnttab.c include/gnttab.h+11 -00 replies
13/149pfs: add support to keep device opened across kexec9pfront.c include/9pfront.h include/kexec.h+117 -130 replies
14/14events: export bind_evtchn()events.c+1 -00 replies

Reviews trailers per patch

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

PatchJason AndryukJan Beulich
1/14R-b
2/14R-b
3/14R-b
4/14R-b
5/14R-b
6/14R-b
7/14R-b
8/14R-b
9/14R-b
10/14R-b
11/14R-b
12/14R-b
13/14R-b
14/14R-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/14] Make Xenstore-stubdom live update possible

With this series applied I was able to perform Live Update of Xenstore running in a PVH stubdom.

The main problem to solve was to keep the 9pfs device used to store and later retrieve the Xenstore state usable across kexec(). This has been achieved by using a module containing the shared pages of the device and the related config data. This module is then passed to the new kernel via linking it to the struct hvm_start_info.

The rest of the series are some missing bits and pieces to have a sane state when activating the new kernel, and some minor fixes and cleanups.

In order to be able to perform a Xenstore live update an associated patch series for Xen is needed. The Xen series is depending on this Mini-OS patch series.

Changes in V2:
- patches 1-5 of V1 have been applied already
- addressed the (minor) comments to V1

Juergen Gross (14):
mm: don't add module pages to free memory
kexec: fix physical addresses in start info data
e820: don't count lapic page as initially reserved
kexec: restructure building the start info data
e820: use special type for software reserved memory
mini-os: config: add support for config items with numerical values
mini-os: kexec: add support for handing over some memory across kexec
kexec: add support for allocating pages from kexec module memory 9pfs: store bepath in struct struct dev_9pfs
9pfs: refactor init_9pfront()
gnttab: remove gnttab_alloc_and_grant() function
gnttab: add function to obtain memory address from grantref 9pfs: add support to keep device opened across kexec
events: export bind_evtchn()

 9pfront.c             | 267 +++++++++++++++++++++++++++++++-----------
 Config.mk             |   6 +
 arch/x86/kexec.c      | 123 +++++++++++++++++--
 arch/x86/mm.c         |  95 +++++++++++++++
 arch/x86/setup.c      |  28 +++++
 e820.c                |  11 +-
 events.c              |   1 +
 gnttab.c              |  15 +--
 include/9pfront.h     |   9 ++
 include/e820.h        |   2 +
 include/gnttab.h      |   2 +-
 include/kernel.h      |   1 +
 include/kexec.h       | 122 +++++++++++++++++++
 include/mm.h          |   1 +
 include/x86/arch_mm.h |   1 +
 kexec.c               | 118 +++++++++++++++++++
 mm.c                  |  27 ++++-
 17 files changed, 733 insertions(+), 96 deletions(-)
Signature · 1 line
2.43.0