Skip to content

Commit f68920c

Browse files
authored
Merge pull request #14 from zevorn/main
docs: Add Introduction of Chapter 1
2 parents 4f9ea63 + 066107b commit f68920c

File tree

8 files changed

+29
-2
lines changed

8 files changed

+29
-2
lines changed
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# 快速建模 Rust 设备

docs/articles/ch0/03-simulate-rust-model-from-zero.md

Lines changed: 0 additions & 1 deletion
This file was deleted.

docs/articles/ch0/index.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# 零、基础入门与环境搭建
2+
3+
QEMU(Quick Emulator)是一个通用的开源机器模拟器和虚拟化工具,由 Fabrice Bellard 于 2005 年创建。它支持多种加速器(accelator),比如 KVM 和 TCG。前者利用硬件虚拟化机制,支持同构模拟;后者通过动态二进制翻译技术,支持系统级模拟(System Emulation)和用户模式模拟(User Mode Emulation)。
4+
5+
在系统级模拟(虚拟化)下,QEMU 提供完整的虚拟机环境,包括 CPU、内存和外围设备,允许运行客户操作系统;在用户模式模拟下,QEMU 可以跨架构运行程序,例如在 x86 主机上执行 RISC-V 或 ARM 的二进制文件。
6+
7+
!!! tips
8+
9+
本章节将向读者介绍以下内容:
10+
11+
- 01 Rust for QEMU 概述:技术演进路线、基本结构、前置技术栈提要
12+
- 02 开发环境搭建与调试:准备开发环境与掌握常用调试手段
13+
- 03 从零建模 Rust 设备:代码目录结构、建模流程
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# 面向对象建模:QOM 的 Rust 实现
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# 地址空间抽象:MemoryRegion 的 Rust 实现
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# 系统总线:SysBus 的 Rust 实现

docs/articles/ch1/index.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# 一、QEMU 中的 Rust 实现
2+
3+
Rust for QEMU 利用 FFI 思想,通过 bingen 将关键 C 接口导出并封装成符合 Rust 安全标准的接口,用于 Rust 建模硬件设备。
4+
5+
本章节我们将介绍一些关键组件的 Rust 实现,比如 QOM、MemoryRegion、SysBus 等。

mkdocs.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,9 +84,15 @@ nav:
8484
- 主页: index.md
8585
- 文档:
8686
- 零、基础入门与环境搭建:
87+
- 00 本章概述: articles/ch0/index.md
8788
- 01 Rust for QEMU 概述: articles/ch0/01-rust-for-qemu-introduction.md
8889
- 02 开发环境搭建与调试: articles/ch0/02-compile-and-debug.md
89-
- 03 从零建模 Rust 设备: articles/ch0/03-simulate-rust-model-from-zero.md
90+
- 03 快速建模 Rust 设备: articles/ch0/03-easy-simulate-rust-model.md
91+
- 一、QEMU 中的 Rust:
92+
- 00 本章概述: articles/ch1/index.md
93+
- 01 面向对象建模: articles/ch1/01-qom-of-rust-for-qemu.md
94+
- 02 地址空间抽象: articles/ch1/02-mr-of-rust-for-qemu.md
95+
- 03 SysBus 总线: articles/ch1/03-sysbus-of-rust-for-qemu.md
9096
- 博客: blogs/index.md
9197
- 新闻:
9298
- 2025:

0 commit comments

Comments
 (0)