feat(x86_64): Multiboot2 support for Asterinas zone1 - #362
Open
yydawx wants to merge 7 commits into
Open
Conversation
yydawx
force-pushed
the
update-asterinas
branch
3 times, most recently
from
July 21, 2026 06:12
9c7bf29 to
0761332
Compare
yydawx
marked this pull request as draft
July 21, 2026 06:13
yydawx
marked this pull request as ready for review
July 21, 2026 06:25
Contributor
|
This pr failed the linter test, you can run |
Author
solved.But why the ci is not available |
Contributor
|
It seems that this pr failed some x86_64 ci tests. We have set two build-only tests for platform nuc14mnk and ecx-2300f-peg, which you only have to pass compilation. But for qemu, we also setup tests to run zone0 Linux and zone1 Linux. You can refer to configs in |
yydawx
force-pushed
the
update-asterinas
branch
4 times, most recently
from
August 2, 2026 15:12
793b5f1 to
0af2c8a
Compare
- Add mb2_boot.S bootloader for 16-bit to 32-bit mode transition - Bootloader sets up GDT with TSS and jumps to kernel entry - Pass kernel entry via ESI to bootloader on VM entry - Add multiboot_info_paddr/multiboot_enabled to HvArchZoneConfig - Remove unused print_memory_map - Add v_bus/v_device/v_function to HvPciDevConfig - Define MULTIBOOT2_MAGIC constant
- Multiboot2 boot protocol: mb2_boot.S trampoline, VMCS register setup, kernel-side Multiboot2 info construction in boot.rs - Adjust zone1 reserved memory size for Asterinas coexistence - Add virtio_cfg_asterinas.json example config Related hvisor-tool changes (raw cmdline loading, initramfs sizing) live in hvisor-tool/ and will follow as a separate PR.
Selectively intercept and forward timer-related x2APIC MSRs, validate LVT_TIMER and DIV_CONF writes, inject #GP on invalid WRMSR values, and keep TPR/TMR/CMCI on the pass-through path. The guest timer vector is also protected from the keyboard vector handling so Asterinas timer interrupts are delivered.
Use the OSDK-style init command line with init=/init -- sh -l so zone1 automatically runs the initramfs /init script and enters a shell. The -- separator prevents kernel parameters from being treated as init program arguments.
yydawx
force-pushed
the
update-asterinas
branch
from
August 3, 2026 02:35
0af2c8a to
2d01270
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.
Two commits adding Asterinas guest support on x86_64 QEMU:
Related hvisor-tool changes (load raw cmdline, initramfs sizing) are in this repo's hvisor-tool/ and will follow as a separate PR against the tooling repository.