Repository navigation
feat(storage): integrate VirtIO-Block into ReliefOS - #123
Merged
Merged
Conversation
Package native VirtIO-Block modules for early boot, recognize VirtIO root volumes and disks, and provide an opt-in QEMU controller. Keep AHCI unchanged by default and reject unsupported 4Kn partition mutations.
Leonmmcoset
approved these changes
Nov 24, 2026
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.
问题与效果
让 ReliefOS 在 QEMU/KVM 中识别并使用 PCI VirtIO-Block 磁盘,同时保持 AHCI 为默认控制器。使用
RELIEFOS_QEMU_VIRTIO=1可切换测试控制器。依赖: ReliefOSProject/ReliefNT#42 。本 PR 的 gitlink 指向已推送且可按精确 SHA 浅克隆的内核提交
b5a7f1b。请先合并内核 PR;若采用 squash 或 rebase 合并,请将此 gitlink 更新到实际进入 ReliefNTmain的提交后再合并本 PR。流程与实现
/dev/vd*。验证
tools/test_installer_input.py的 12 个用例通过。QEMU 默认 AHCI 和可选 VirtIO-Block 路径均已检查,三语文档已构建。virtio_blk.ko。从空仓按 gitlink 精确 SHA 浅克隆已验证。LABEL=VBLKROOT找到 4Kn ext4 根并执行/sbin/init。两项串口退出标记均为 0,关机后宿主读回证实fsync()数据留存。兼容性与发布影响
未验证完整安装及移除 ISO 后从 VirtIO 磁盘独立引导;不支持在 4Kn 磁盘上创建或修改分区及格式化。这不是 VMware PVSCSI。VMware 验证未完成。