🚧 WIP 🚧 hypercraft is a VMM library written in Rust. If you are interested in Design & Implement about this project, please see this discussion. Currently, hypercraft relies heavily on the Arceos crate, reusing multiple crates and modules from arceos for development.
Note: rustc nightly version should <= 1.70.0 because of this issue: rust-lang/rust#111637
Clone project
# create workspace
mkdir $(WORKSPACE)
cd $(WORKSPACE)
# clone project
git clone https://github.com/KuangjuX/arceos.git
git clone https://github.com/KuangjuX/hypercraft.git
Download Disk File
Download disk file from Baidu Cloud Disk to $(WORKSPACE)/guest/linux
:
链接: https://pan.baidu.com/s/1WlBcw24raULlj5GPA5Qshw?pwd=jkkz 提取码: jkkz 复制这段内容后打开百度网盘手机App,操作更方便哦
--来自百度网盘超级会员v2的分享
Build & Run
# build & run
cd hypercraft
make qemu GUEST=linux ARCH=riscv64 APP=hv ROOTFS=guest/linux/rootfs.img
- CPU Virtualization
- Vcpu abstract layer(
vcpu_create()
,vcpu_read()
,vcpu_write()
,vcpu_run()
) - Load & run hello world binary in example.
-
PerCpu
struct Design to support SMP. - Mult-Core boot.
- Multi-Guest switch support(vcpu schedule)
- Vcpu abstract layer(
- Memory Virtualization
- Nested Page Table Support
- Multi-level Page Table Supportd
- I/O Virtualization
- Device Passthrought Supportd
- IOMMU Support
- Device Emulate
- Interrupt Virtualization
- Timer Interrupt Enable
- PLIC Emulate && Interrupt Inject
- AIA Supported
- System Supported
- rCore-Tutorial-v3
- Linux
- Arceos
- rivosinc/salus: Risc-V hypervisor for TEE development
- equation314/RVM-Tutorial: Let's write an x86 hypervisor in Rust from scratch!
- zircon: Zircon is the core platform that powers Fuchsia. Zircon is composed of a kernel (source in /zircon/kernel) as well as a small set of userspace services, drivers, and libraries (source in /zircon/system/) necessary for the system to boot, talk to hardware, load userspace processes and run them, etc. Fuchsia builds a much larger OS on top of this foundation.
- KuangjuX/hypocaust-2: hypocaust-2, a type-1 hypervisor with H extension run on RISC-V machine