Skip to content

RFC Hyperlaunch domain builder

Daniel P. Smith xen-devel 2 versions – New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 RFC Latest38 patches 0 repliesNew
  2. v1 RFC38 patches 17 repliesSuperseded

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/38maintainers: add new section for hyperlaunchMAINTAINERS+11 -00 replies
2/38x86/hyperlaunch: correct the naming of domain ramdisk fieldxen/arch/x86/hvm/dom0_build.c xen/arch/x86/include/asm/boot-domain.h xen/arch/x86/pv/dom0_build.c +2 more+8 -80 replies
3/38x86/hyperlaunch: convert max vcpu determination to domain builderxen/arch/x86/Makefile xen/arch/x86/domain-builder/Makefile xen/arch/x86/domain-builder/domain.c +2 more+47 -20 replies
4/38x86/hyperlaunch: convert vcpu0 creation to domain builderxen/arch/x86/dom0_build.c xen/arch/x86/domain-builder/domain.c xen/arch/x86/include/asm/boot-domain.h +3 more+27 -50 replies
5/38x86/hyperlaunch: move dom0 cpuid policy behind capability checkxen/arch/x86/setup.c+2 -10 replies
6/38x86/hyperlaunch: introduce pvh domain builderxen/arch/x86/dom0_build.c xen/arch/x86/hvm/Makefile xen/arch/x86/hvm/dom_build.c +2 more+44 -30 replies
7/38x86/hyperlaunch: move initial hwdom setup to dom_construct_pvhxen/arch/x86/hvm/dom0_build.c xen/arch/x86/hvm/dom_build.c+50 -440 replies
8/38x86/boot: convert dom0 page calculation to use boot domainxen/arch/x86/dom0_build.c xen/arch/x86/hvm/dom0_build.c xen/arch/x86/include/asm/dom0_build.h +1 more+51 -390 replies
9/38x86/boot: refactor dom0 page calculationxen/arch/x86/dom0_build.c+41 -350 replies
10/38x86/boot: generalize paging pages calculationxen/arch/x86/dom0_build.c xen/arch/x86/domain-builder/domain.c xen/arch/x86/hvm/dom0_build.c +3 more+28 -210 replies
11/38x86/boot: generalize compute number of domain pagesxen/arch/x86/dom0_build.c xen/arch/x86/hvm/dom0_build.c xen/arch/x86/include/asm/dom0_build.h +1 more+16 -60 replies
12/38x86/hyperlaunch: move page computation to domain builderxen/arch/x86/dom0_build.c xen/arch/x86/domain-builder/domain.c xen/arch/x86/include/asm/dom0_build.h +1 more+81 -730 replies
13/38x86/hyperlaunch: move pvh p2m init to domain builderxen/arch/x86/hvm/dom0_build.c xen/arch/x86/hvm/dom_build.c xen/arch/x86/include/asm/dom0_build.h+28 -220 replies
14/38x86/hyperlaunch: move iommu init to domain builderxen/arch/x86/hvm/dom0_build.c xen/arch/x86/hvm/dom_build.c+4 -20 replies
15/38x86/boot: move and rename sched_setup_dom0_vcpusxen/arch/x86/domain-builder/domain.c xen/arch/x86/hvm/dom0_build.c xen/arch/x86/pv/dom0_build.c +3 more+16 -150 replies
16/38x86/hyperlaunch: move pvh_setup_cpus to domain builderxen/arch/x86/hvm/dom0_build.c xen/arch/x86/hvm/dom_build.c xen/arch/x86/include/asm/domain-builder.h+49 -440 replies
17/38x86/boot: rename pvh acpi setup functionxen/arch/x86/hvm/dom0_build.c xen/arch/x86/include/asm/dom0_build.h+4 -20 replies
18/38x86/hyperlaunch: add domu memory map constructionxen/arch/x86/hvm/dom_build.c+148 -10 replies
19/38x86/hyperlaunch: move populating p2m under domain builderxen/arch/x86/hvm/dom0_build.c xen/arch/x86/hvm/dom_build.c xen/arch/x86/include/asm/dom0_build.h +1 more+45 -110 replies
20/38x86/hyperlaunch: move remaining pvh dom0 constructionxen/arch/x86/hvm/dom0_build.c xen/arch/x86/hvm/dom_build.c xen/arch/x86/include/asm/dom0_build.h+360 -3660 replies
21/38x86/hyperlaunch: relocate pvh_steal_ram to domain builderxen/arch/x86/hvm/dom0_build.c xen/arch/x86/hvm/dom_build.c xen/arch/x86/include/asm/domain-builder.h+102 -950 replies
22/38x86/hyperlaunch: add domu acpi constructionxen/arch/x86/hvm/dom_build.c+212 -10 replies
23/38x86/boot: export command line processingxen/arch/x86/include/asm/setup.h xen/arch/x86/setup.c+3 -30 replies
24/38x86/hyperlaunch: convert create_dom0 to arch_create_domxen/arch/x86/domain-builder/Makefile xen/arch/x86/domain-builder/domain.c xen/arch/x86/setup.c +1 more+185 -1740 replies
25/38x86/hyperlaunch: remove dom0-isms from arch_create_domxen/arch/x86/domain-builder/domain.c+26 -210 replies
26/38x86/hyperlaunch: introduce domain builder general dom creationxen/arch/x86/domain-builder/Makefile xen/arch/x86/domain-builder/core.c xen/arch/x86/include/asm/bootinfo.h +2 more+85 -30 replies
27/38x86/hyperlaunch: introduce arch builder finalizexen/arch/x86/domain-builder/core.c xen/arch/x86/domain-builder/domain.c xen/arch/x86/hvm/dom_build.c +2 more+12 -60 replies
28/38x86/hyperlaunch: allocate xenstore for domuxen/arch/x86/domain-builder/domain.c xen/arch/x86/hvm/dom_build.c xen/arch/x86/include/asm/boot-domain.h +1 more+87 -00 replies
29/38x86/hyperlaunch: allocate console for domuxen/arch/x86/domain-builder/domain.c xen/arch/x86/hvm/dom_build.c xen/arch/x86/include/asm/boot-domain.h+48 -20 replies
30/38x86/hyperlaunch: introduce concept of core domainsxen/arch/x86/domain-builder/core.c xen/arch/x86/include/asm/boot-domain.h+61 -70 replies
31/38common/gzip: add function to read isize fieldxen/arch/x86/bzimage.c xen/common/gzip/gunzip.c xen/include/xen/gunzip.h+18 -70 replies
32/38x86/hyperlaunch: move headroom under domain builderxen/arch/x86/bzimage.c xen/arch/x86/domain-builder/domain.c xen/arch/x86/include/asm/bzimage.h +3 more+58 -270 replies
33/38x86/hyperlaunch: move kernel extraction under domain builderxen/arch/x86/bzimage.c xen/arch/x86/domain-builder/domain.c xen/arch/x86/hvm/dom_build.c +3 more+55 -240 replies
34/38x86/hyperlaunch: introduce multidomain kconfig optionxen/arch/x86/dom0_build.c xen/arch/x86/domain-builder/domain.c xen/arch/x86/include/asm/bootinfo.h +2 more+20 -70 replies
35/38x86/hyperlaunch: add multidomain construction logicxen/arch/x86/domain-builder/core.c xen/arch/x86/domain-builder/domain.c xen/arch/x86/hvm/dom_build.c +1 more+41 -40 replies
36/38x86/hyperlaunch: enable unpausing mulitple domainsxen/arch/x86/domain-builder/core.c xen/arch/x86/include/asm/boot-domain.h xen/arch/x86/setup.c +1 more+33 -40 replies
37/38x86/hyperlaunch: generalize domid assignmentxen/common/domain-builder/fdt.c+23 -90 replies
38/38tools: introduce hyperlaunch domain late init.gitignore tools/helpers/Makefile tools/helpers/late-init-domains.c +3 more+538 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.

Read the v2 thread

Cover letter [RFCv2 00/38] Hyperlaunch domain builder

NOTE: Sending this series as an RFC as it is a follow-on to the hyperlaunch dom0 device tree series going through rounds of review right now. This iteration of the RFC series is based off of v6 of the dom0 device tree series.

The Hyperlaunch domain builder series is the third split out for the introduction of the Hyperlaunch domain builder logic. These changes focus on introducing the ability to create multiple PVH domains at boot. The definition for those domains will come from the Device Tree capability introduced in the dom0 device tree series.

Significant Changes in v2:
- bzimage renetrant was dropped for a proper refactoring of kernel headroom and expansion
- While there is concern on the affect for pv construction, event channel allocation has been delayed to a newly introduced builder_finalize function called after all construction has completed

Documentation on Hyperlaunch:
https://wiki.xenproject.org/wiki/Hyperlaunch

Original Hyperlaunch v1 patch series:
https://lists.xenproject.org/archives/html/xen-devel/2022-07/msg00345.html

V/r,
Daniel P. Smith

Daniel P. Smith (38):
maintainers: add new section for hyperlaunch x86/hyperlaunch: correct the naming of domain ramdisk field x86/hyperlaunch: convert max vcpu determination to domain builder x86/hyperlaunch: convert vcpu0 creation to domain builder x86/hyperlaunch: move dom0 cpuid policy behind capability check x86/hyperlaunch: introduce pvh domain builder x86/hyperlaunch: move initial hwdom setup to dom_construct_pvh x86/boot: convert dom0 page calculation to use boot domain x86/boot: refactor dom0 page calculation
x86/boot: generalize paging pages calculation x86/boot: generalize compute number of domain pages x86/hyperlaunch: move page computation to domain builder x86/hyperlaunch: move pvh p2m init to domain builder x86/hyperlaunch: move iommu init to domain builder x86/boot: move and rename sched_setup_dom0_vcpus x86/hyperlaunch: move pvh_setup_cpus to domain builder x86/boot: rename pvh acpi setup function x86/hyperlaunch: add domu memory map construction x86/hyperlaunch: move populating p2m under domain builder x86/hyperlaunch: move remaining pvh dom0 construction x86/hyperlaunch: relocate pvh_steal_ram to domain builder x86/hyperlaunch: add domu acpi construction
x86/boot: export command line processing x86/hyperlaunch: convert create_dom0 to arch_create_dom x86/hyperlaunch: remove dom0-isms from arch_create_dom x86/hyperlaunch: introduce domain builder general dom creation x86/hyperlaunch: introduce arch builder finalize x86/hyperlaunch: allocate xenstore for domu x86/hyperlaunch: allocate console for domu x86/hyperlaunch: introduce concept of core domains common/gzip: add function to read isize field x86/hyperlaunch: move headroom under domain builder x86/hyperlaunch: move kernel extraction under domain builder x86/hyperlaunch: introduce multidomain kconfig option x86/hyperlaunch: add multidomain construction logic x86/hyperlaunch: enable unpausing mulitple domains x86/hyperlaunch: generalize domid assignment
tools: introduce hyperlaunch domain late init

 .gitignore                                |    1 +
 MAINTAINERS                               |   11 +
 tools/helpers/Makefile                    |   12 +
 tools/helpers/late-init-domains.c         |  364 +++++++
 tools/helpers/late-init-domains.h         |   18 +
 tools/helpers/xs-helpers.c                |  117 +++
 tools/helpers/xs-helpers.h                |   26 +
 xen/arch/x86/Makefile                     |    1 +
 xen/arch/x86/bzimage.c                    |   87 +-
 xen/arch/x86/dom0_build.c                 |  120 +--
 xen/arch/x86/domain-builder/Makefile      |    2 +
 xen/arch/x86/domain-builder/core.c        |  140 +++
 xen/arch/x86/domain-builder/domain.c      |  480 ++++++++++
 xen/arch/x86/hvm/Makefile                 |    1 +
 xen/arch/x86/hvm/dom0_build.c             |  600 +-----------
 xen/arch/x86/hvm/dom_build.c              | 1047 +++++++++++++++++++++
 xen/arch/x86/include/asm/boot-domain.h    |   24 +-
 xen/arch/x86/include/asm/bootinfo.h       |   28 +-
 xen/arch/x86/include/asm/bzimage.h        |    6 +-
 xen/arch/x86/include/asm/dom0_build.h     |   19 +-
 xen/arch/x86/include/asm/domain-builder.h |   33 +
 xen/arch/x86/include/asm/setup.h          |    4 +-
 xen/arch/x86/pv/dom0_build.c              |   21 +-
 xen/arch/x86/setup.c                      |  214 +----
 xen/common/domain-builder/Kconfig         |   12 +
 xen/common/domain-builder/fdt.c           |   40 +-
 xen/common/gzip/gunzip.c                  |   12 +
 xen/common/sched/core.c                   |   12 -
 xen/include/xen/domain-builder.h          |   14 +
 xen/include/xen/gunzip.h                  |   12 +
 xen/include/xen/sched.h                   |    1 -
 31 files changed, 2526 insertions(+), 953 deletions(-)
 create mode 100644 tools/helpers/late-init-domains.c
 create mode 100644 tools/helpers/late-init-domains.h
 create mode 100644 tools/helpers/xs-helpers.c
 create mode 100644 tools/helpers/xs-helpers.h
 create mode 100644 xen/arch/x86/domain-builder/Makefile
 create mode 100644 xen/arch/x86/domain-builder/core.c
 create mode 100644 xen/arch/x86/domain-builder/domain.c
 create mode 100644 xen/arch/x86/hvm/dom_build.c
 create mode 100644 xen/arch/x86/include/asm/domain-builder.h
Signature · 1 line
2.30.2