Skip to content

feat(x86_64): Multiboot2 support for Asterinas zone1 - #362

Merged
Solicey merged 6 commits into
syswonder:devfrom
yydawx:update-asterinas
Aug 8, 2026
Merged

Solicey merged 6 commits into
syswonder:devfrom
yydawx:update-asterinas

Conversation

@yydawx

@yydawx yydawx commented Jul 21, 2026

Copy link
Copy Markdown
Contributor

Two commits adding Asterinas guest support on x86_64 QEMU:

  • Multiboot2 boot protocol: mb2_boot.S real→protected mode trampoline, VMCS multiboot register setup, kernel-side Multiboot2 info construction (memory map + cmdline + module tags) in boot.rs
  • GS/FS MSR passthrough: guest wrgsbase/wrfsbase support in trap.rs
  • Zone0 config: adjusted reserved memory for zone1 coexistence, updated kernel cmdline

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.

@github-actions github-actions Bot added x86_64 feature New feature or request labels Jul 21, 2026
@yydawx
yydawx force-pushed the update-asterinas branch 3 times, most recently from 9c7bf29 to 0761332 Compare July 21, 2026 06:12
@yydawx
yydawx marked this pull request as draft July 21, 2026 06:13
@yydawx
yydawx force-pushed the update-asterinas branch from 0761332 to e7098e4 Compare July 21, 2026 06:21
@yydawx
yydawx marked this pull request as ready for review July 21, 2026 06:25
@Solicey

Solicey commented Jul 26, 2026

Copy link
Copy Markdown
Contributor

This pr failed the linter test, you can run cargo fmt for detailed diff.

@yydawx
yydawx force-pushed the update-asterinas branch from e7098e4 to 23e0bb8 Compare July 27, 2026 05:53
@yydawx

yydawx commented Jul 27, 2026

Copy link
Copy Markdown
Contributor Author

This pr failed the linter test, you can run cargo fmt for detailed diff.

solved.But why the ci is not available

@Solicey

Solicey commented Jul 27, 2026 •

Copy link
Copy Markdown
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 Jenkins for more information, and feel free to ask for help if you encounter any questions solving this issue.

@yydawx
yydawx force-pushed the update-asterinas branch 6 times, most recently from 2d01270 to 83efe7d Compare August 3, 2026 04:07
@Solicey

Solicey commented Aug 3, 2026

Copy link
Copy Markdown
Contributor

Currently qemu x86_64 ci test server is not available, and we have to merge hvisor-tool pr before we could pass this ci test. I will inform you when the server is ready.

@yydawx
yydawx force-pushed the update-asterinas branch 2 times, most recently from 38e5f04 to 0673106 Compare August 3, 2026 09:36
@yydawx
yydawx marked this pull request as draft August 3, 2026 10:06
@yydawx
yydawx force-pushed the update-asterinas branch from 0673106 to 3239429 Compare August 3, 2026 14:33
@yydawx
yydawx force-pushed the update-asterinas branch 3 times, most recently from 06c78cc to 09cbe07 Compare August 7, 2026 01:33
@yydawx
yydawx force-pushed the update-asterinas branch from 0e4b10b to 9617059 Compare August 7, 2026 03:12
@yydawx
yydawx marked this pull request as ready for review August 7, 2026 13:01
@yydawx
yydawx force-pushed the update-asterinas branch 3 times, most recently from 16699a1 to 1da8f3b Compare August 8, 2026 02:33
@Solicey
Solicey merged commit 9e43dd5 into syswonder:dev Aug 8, 2026
25 checks passed
agicy pushed a commit that referenced this pull request Aug 24, 2026
feat(x86_64): Multiboot2 support for Asterinas zone1
agicy pushed a commit that referenced this pull request Aug 24, 2026
feat(x86_64): Multiboot2 support for Asterinas zone1
@yydawx
yydawx deleted the update-asterinas branch September 28, 2026 16:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

aarch64 feature New feature or request x86_64

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants