RFC Hyperlaunch x86 Dom0 launch
Get series with b4
b4 am [email protected]Versions newest first
- v1 RFC Latest10 patches 3 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/10 | introduce hyperlaunch kconfig and corexen/ xen/ xen/ +2 more | +36 | 0 replies | |
| 2/10 | is_system_domain: replace open-coded instancesxen/ xen/ xen/ +1 more | +9 | 3 replies | |
| 3/10 | multiboot: moving headroom to per module_txen/ xen/ xen/ | +11 | 0 replies | |
| 4/10 | device-tree: split agnostic device-tree from armxen/ xen/ xen/ +1 more | +13 | 0 replies | |
| 5/10 | hyperlaunch: update device tree documentationdocs/ | +278 | 0 replies | |
| 6/10 | hyperlaunch: add structures to hold parsed dtbxen/ | +81 | 0 replies | |
| 7/10 | hyperlaunch: add parsing of dtbxen/ xen/ | +387 | 0 replies | |
| 8/10 | hyperlaunch: make create_dom0 externally callablexen/ xen/ | +9 | 0 replies | |
| 9/10 | hyperlaunch: add domain creation logicxen/ xen/ | +93 | 0 replies | |
| 10/10 | hyperlaunch: integrate dtb parse and domain creationxen/ | +37 | 0 replies |
Reviews trailers per patch
9 of 10 patches have a Reviewed-by or Acked-by.
| Patch | Christopher Clark | Dario Faggioli |
|---|---|---|
| 1/10 | ||
| 2/10 | A-b | |
| 3/10 | R-b | |
| 4/10 | R-b | |
| 5/10 | R-b | |
| 6/10 | R-b | |
| 7/10 | R-b | |
| 8/10 | R-b | |
| 9/10 | R-b | |
| 10/10 | R-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [RFC 00/10] Hyperlaunch x86 Dom0 launch
This RFC is to provide the base approach of how hyperlaunch would integrate into the x86 start sequence with the specific intention to vet the implementation approach early. What this RFC provides is a working implementation of hyperlaunch for x86 that is capable of strictly starting a Dom0 configuration. Even so the majority of the remaining hyperlaunch work will be focused on domain construction and enabling the transient boot domain (DomB) ability.
It is important to note that for this RFC patch set the work was split into smaller commits to ease review. When the first hyperlaunch patch set is submitted for acceptance, it is expected to see 5-7 rolled up and 9 & 10 also rolled up.
There are a couple of areas that explicitly need review and discussion and the commit message for a patch with one of these in them has the details, which will be repeated here for them to also all be centralized for comment.
- For hyperlaunch it has become necessary to track decompression headroom at an individual boot module level. The most sensible place for this information on x86 is in the module_t structure. The challenge encountered with this is that Xen's multiboot support is implemented by reusing MB module_t structure as a common structure for MB and MB2. Early in Xen's x86 startup the multiboot chain is copied(MB)/converted(MB2) into the trampoline data heap. To minimize change for this RFC the MB module_t reserved field was split into a bitfield to allow it to serve the existing usage of the field (relocation flag) and for headroom tracking. While this provided a clean solution, it is viewed as a short term solution. A suggestion might be to unify the existing architectures' representation of a boot module and refactor x86's reloc.c to convert MB and MB2 module descriptions into this common representation. This would have the added benefit of reducing the static allocations currently being used for hyperlaunch.
- When enabling device tree for use with x86, it exposed some arch specific code in the device tree code in common and shared includes. Specifically both Arm and x86 define a struct device but are totally different structures. The device tree code uses references to Arm's version of struct device which creates a conflict when the device tree code is used under x86. It was also found that generic device tree code was currently in the Arm arch tree. Patch 4 contains a work around for the first issue and patch 7 copies the reusable device tree parsing code from Arm arch for local/internal usage. Each patch provides a few additional details and ultimately a generalized solution for both problems is the preferable approach versus a minimal solution for enabling hyperlaunch
- To ease getting a Dom0 construction working under hyperlaunch the existing create_dom0() function was exposed and reused. This was for the RFC only and will be dropped in lieu of hyperlaunch gaining its own more general domain creation function.
Christopher Clark (2):
introduce hyperlaunch kconfig and core
is_system_domain: replace open-coded instances
Daniel P. Smith (8):
multiboot: moving headroom to per module_t
device-tree: split agnostic device-tree from arm
hyperlaunch: update device tree documentation
hyperlaunch: add structures to hold parsed dtb
hyperlaunch: add parsing of dtb
hyperlaunch: make create_dom0 externally callable
hyperlaunch: add domain creation logic
hyperlaunch: integrate dtb parse and domain creation
.../designs/launch/hyperlaunch-devicetree.rst | 448 ++++++++++------- xen/arch/x86/boot/reloc.c | 1 + xen/arch/x86/cpu/vpmu.c | 2 +- xen/arch/x86/include/asm/setup.h | 5 + xen/arch/x86/setup.c | 75 +-- xen/common/Kconfig | 15 + xen/common/Makefile | 5 +- xen/common/device_tree.c | 2 + xen/common/domctl.c | 2 +- xen/common/sched/core.c | 4 +- xen/common/setup.c | 450 ++++++++++++++++++ xen/include/xen/device_tree.h | 4 + xen/include/xen/multiboot.h | 3 +- xen/include/xen/sched.h | 5 + xen/include/xen/setup.h | 131 +++++ 15 files changed, 948 insertions(+), 204 deletions(-) create mode 100644 xen/common/setup.c create mode 100644 xen/include/xen/setup.h
Signature · 1 line
2.20.1