Go to file
LoGin a3cbe901c4
feat(block): 新增异步BIO框架并集成到virtio-blk驱动 (#1659)
* feat(block): 新增异步BIO框架并集成到virtio-blk驱动

- 新增BIO请求结构体(BioRequest)和FIFO队列(BioQueue),支持异步读写操作
- 在BlockDevice
trait中增加submit_bio、submit_bio_read、submit_bio_write方法,提供异步接口和同步
回退机制
- 重构virtio-blk驱动,使用异步BIO框架替代原有的同步读写,提升IO性能
- 新增IO线程处理BIO请求,支持批量处理和budget控制,避免CPU独占
- 使用tasklet处理中断下半部,完成BIO请求的异步回调
- 将BlockDevManager和BlockDevMeta中的SpinLock替换为Mutex,改善锁机制

Signed-off-by: longjin <longjin@DragonOS.org>

* refactor(kernel): 将FutexData的锁类型从SpinLock替换为Mutex,并调整进程退出时调度实体停用的顺序

- 将FutexData结构体及其方法中的SpinLock和SpinLockGuard替换为Mutex和MutexGuard
- 在进程退出流程中,将调度实体deactivate操作移至清理用户态资源之后,以避免潜在的
用户态缺页异常

Signed-off-by: longjin <longjin@DragonOS.org>

* fix: 修复进程退出的时候,持自旋锁访问用户内存触发磁盘读取,导致panic的问题

Signed-off-by: longjin <longjin@DragonOS.org>

---------

Signed-off-by: longjin <longjin@DragonOS.org>
2026-01-14 22:50:30 +08:00
.devcontainer feat(devcontainer): non-root user as default devcontainer user (#1457) 2025-12-11 20:52:18 +08:00
.github ci: fix mm test (#1578) 2025-12-30 09:12:20 +08:00
.vscode feat(net): 桥接网络支持 (#1287) 2025-10-30 01:55:04 +08:00
build-scripts feat(build): replace rootfs and user space app creation with nix base scripts (#1505) 2025-12-26 18:36:13 +08:00
config fix(gvisor): 修复自动化开启/关闭 gvisor syscall测例打包的脚本 (#1405) 2025-11-26 00:00:04 +08:00
docs Update translated documentation (#1644) 2026-01-13 20:57:45 +08:00
kernel feat(block): 新增异步BIO框架并集成到virtio-blk驱动 (#1659) 2026-01-14 22:50:30 +08:00
tools chore(nix/qemu): 添加动态端口分配和VM状态目录配置 (#1660) 2026-01-14 18:49:47 +08:00
user refactor(gvisor): 优化测试输出配置并移除冗余日志 (#1650) 2026-01-13 23:55:47 +08:00
.envrc feat(build): replace rootfs and user space app creation with nix base scripts (#1505) 2025-12-26 18:36:13 +08:00
.gitignore feat(build): replace rootfs and user space app creation with nix base scripts (#1505) 2025-12-26 18:36:13 +08:00
.gitmodules
.readthedocs.yaml
AGENTS.md feat(kernel/posix-timer): 实现 POSIX interval timer,修复 gVisor timers_test (#1501) 2025-12-18 20:37:40 +08:00
LICENSE
Makefile feat: 改进VM状态管理和GDB调试支持 (#1638) 2026-01-13 13:44:01 +08:00
README.md docs: 更新README和构建文档,添加DragonOS Playground体验方式 (#1484) 2025-12-17 00:20:50 +08:00
README_CN.md docs: 更新README和构建文档,添加DragonOS Playground体验方式 (#1484) 2025-12-17 00:20:50 +08:00
SUPPORTERS.md docs: 更新README文件并添加README_CN.md和SUPPORTERS.md (#1170) 2025-05-22 12:32:23 +08:00
dadk-manifest.toml feat: add gvisor syscall test (#1271) 2025-09-24 16:26:06 +08:00
env.mk feat(build): replace rootfs and user space app creation with nix base scripts (#1505) 2025-12-26 18:36:13 +08:00
flake.lock fix(doc), chore(nix): 文档nix run package名字不对应 更新qemu-system-data包使用deb snapshot archieve (#1570) 2025-12-29 14:51:04 +08:00
flake.nix chore(nix/qemu): 添加动态端口分配和VM状态目录配置 (#1660) 2026-01-14 18:49:47 +08:00
triagebot.toml feat: Update rbpf to mainline (#1209) 2025-06-20 10:49:59 +08:00

README.md

dragonos-logo

Lightweight Cloud-Native Kernel

官网 bbs

DragonOS

Languages 中文|English  

DragonOS is a 64-bit operating system with a completely independent kernel, designed for lightweight cloud computing scenarios, offering Linux binary compatibility. It aims to provide lightweight, high-performance solutions for containerized workloads. Developed using Rust for enhanced reliability.

The DragonOS open-source community was established in July 2022 and is entirely commercially neutral. We warmly welcome interested developers and enthusiasts to join us!

DragonOS features excellent and comprehensive architectural design. Compared to other systems of similar scale, DragonOS supports eBPF and virtualization. Currently, we are actively advancing container support, cloud platform compatibility, RISC-V support, as well as porting compilers and application software. Our goal is to achieve large-scale production environment deployment within five years.

DragonOS is rapidly evolving under community-driven development. Currently, DragonOS has implemented approximately 1/4 of Linux interfaces. In the future, we will provide 100% Linux compatibility along with new features.

🌟 Want to quickly experience DragonOS? Visit DragonOS Playground to launch DragonOS in the cloud with zero configuration and experience the latest nightly build!

📰 Community News

  • 2025-12-17: ☁️ DragonOS Playground is now live! Experience DragonOS with zero configuration on CNB platform, with daily nightly build updates! Try it now →
  • 2025-11-20: 🚀 DragonOS 0.3.0 has been released! Now supports running Go programs directly!
  • 2025-11-18: 📊 DragonOS CI Dashboard is now live! Check out DragonOS Linux compatibility data now!

How to Run?

Zero configuration, one-click launch! Experience DragonOS on the CNB cloud-native development platform - the simplest and fastest way, no local dependencies required!

Launch on CNB

Method 2: Local Build

If you prefer to build and run DragonOS locally, you can refer to the following documentation:

Want to Contribute?

Read the DragonOS Community Introduction Document carefully to understand how the community operates and how you can contribute!

If you'd like to join us, check out the issues and participate in discussions or share your ideas. You can also visit the DragonOS forum to stay updated on development progress and tasks: https://bbs.dragonos.org.cn

You can also bring your creativity and ideas to discuss with the community and contribute new features to DragonOS.

Sites

How to Connect with the Community?

Please read the Contributor Guide~

  • You can find contact details for members of various committees in the Community Management Team section.
  • You can also locate the contact information for leaders of specific community groups via the SIGs and WGs pages.

Contributor List

Contributors to DragonOS-Community/DragonOS · GitHub

Sponsorship

Sponsor this project

DragonOS is a non-profit open-source project, and its development relies on financial support. All sponsors will be publicly acknowledged. Every contribution you make will help advance DragonOS!

Where Will Sponsorship Funds Be Used?

We guarantee that all sponsorship funds and items will be used for:

  • Event organization, cloud service expenses, and any other purposes beneficial to the development and growth of the DragonOS community.

🌟 Sponsor List

Special thanks to these generous financial supporters (in reverse chronological order):

CDN Sponsor

This project's CDN acceleration and security protection are sponsored by Tencent EdgeOne.

腾讯EdgeOne CDN

Individual Sponsors List

See Supporters.md

Open Source License Notice

This project is open-sourced under the GPLv2 license. You are welcome to use the code in compliance with the open-source license!

If you encounter any violations of the open-source license, we encourage you to email pmc@dragonos.org to report them. Let's work together to build a trustworthy open-source community.


👩💻 Contributors

"Open source shines because of you!"

Thanks to all developers who submitted code, fixed issues, or reviewed PRs: