x86_64: add an Asterinas boot profile for the qemu board#345
Closed
wang0191 wants to merge 10 commits into
Closed
Conversation
Following dev's Cargo-features-to-Kconfig migration, aster_guest now lives in kconfig/Kconfig (x86-specific options) with a cfg_map.toml entry instead of a Cargo.toml feature. Updated aster-hv-ops (hv-asterctl, build-hvisor.sh) to flip it on by editing .config after "make defconfig" rather than passing FEATURES=... to make, since that argument was removed upstream.
6de96e0 to
34be05e
Compare
34be05e to
f0b6ff2
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds an
aster_guesttoggle plus a whole CLI's worth of tooling around it,since this needed to actually be pleasant to build/run/debug rather than a
pile of ad-hoc shell commands.
board.rs/platform.mk: the toggle itself, selects the Asterinas bootconfig.
aster-hv-ops/:hv-asterctl, a Python CLI withbuild/run/verify/benchsubcommands, plus the shell scripts it wraps.work opened separately in this queue.
aster_guest.Depends on four separately-submitted fixes this feature actually needs to
work correctly: the multiboot2/module-relocation hardening, the MMIO
decoder rewrite, CPUID leaf 0x15, and the guest-interrupt-destination fix.
That's a lot of prerequisite PRs for one feature — happy to combine or
reorder however's easiest to review.
Ran
hv-asterctl verify --reuse-guestagainst a real QEMU/KVM boot: gotFUNCTIONAL VERIFICATION COMPLETE: PASSwith 39 distinct syscallsobserved, so this isn't just "the kernel prints a banner and hangs" — it's
actually running guest code that makes real syscalls. Build and format
checks clean.