docker/riscv/trixie: add domU guest creation support#19
Conversation
3e3c103 to
f6e8614
Compare
Signed-off-by: Baptiste Le Duc <baptiste.le-duc@vates.tech>
Signed-off-by: Baptiste Le Duc <baptiste.le-duc@vates.tech>
Sorry I found some fixes that need to be made. |
|
Are there plans to upstream such CI pipelines to Xen Project (at least, in the future) ? Similar bits already exist upstream (and I guess will be expected to be there for supporting/upstreaming RISC-V toolstack). For instance, there is https://github.com/xen-project/xen/blob/8596535982ea2054f31d6c9a06bb40c44f8eb42d/automation/scripts/qemu-smoke-dom0less-arm64.sh for testing arm64 dom0less on ARM64 among many other things (including testing PCI Passthrough and toolstack). |
Silent docker volume mount failure when path invalid $(wildcard) check now aborts early with a clear error message. Signed-off-by: Baptiste Le Duc <baptiste.le-duc@vates.tech>
Cross-compile dtc for riscv64 in a dedicated build stage and include the binary in the dom0 initrd only when DEBUG_XL=1 (build-image-debug). libfdt and libc dependencies are already present in the initrd. Signed-off-by: Baptiste Le Duc <baptiste.le-duc@vates.tech>
Signed-off-by: Baptiste Le Duc <baptiste.le-duc@vates.tech>
Signed-off-by: Baptiste Le Duc <baptiste.le-duc@vates.tech>
Replace broken dist-* targets and mixed $(MAKE) calls with uniform XEN_MAKE usage. Split install into install-xen/install-tools, fix SUBSYSTEM -> SUBSYSTEMS typo that caused all subsystems to build. Signed-off-by: Baptiste Le Duc <baptiste.le-duc@vates.tech>
| run-rebuild: ## Rebuild Xen hypervisor, then boot | ||
| $(DOCKER) -p 1234:1234 $(IMAGE) \ | ||
| /bin/bash -c "make build-xen && make $(INITRD) && make go" | ||
|
|
There was a problem hiding this comment.
Useless as target run calls make $(INITRD) which calls make install
|
As we discussed last Thursday I am not sure why the builds are longer, but for the record you mentioned them going from about a minute to a minutes and ~5s, so it could be explained by the fact the number of threads are multiplied by two in the slower case (given each rule will call |
Thanks for your review anyway ! |
Adds support for creating and running domU guests in the RISC-V QEMU environment.
Features:
INITRD_DIRwith correct prefix (/usr), replacing the previous dist-based approach with path gymnasticsdtccross-compiled for RISC-V (opt-in via DEBUG_XL=1)KERNELorVMLINUXpaths don't existcpus = "1", add keep_bootcon to kernel cmdline for better console outputTest
xl create domu/domu.cfgfrom dom0 on this xen worktree: https://gitlab.com/xen-project/people/olkur/xen/-/tree/dev-riscv-support-guest-domains?ref_type=heads