OpenVMM 指南维护
guide-maintenance
维护 OpenVMM 指南。在以下情况加载:(1) 添加、删除或移动指南页面;(2) 添加新设备 crate,或添加/更改需要文档覆盖的 CLI 接口;(3) 根据代码变更审计指南的时效性。
- License 许可
- MIT
- 最近更新
- 2026-11-15
- Stars
- ★ 2.0k
- Forks
- 277
01 前言 Front Matter
- name
- guide-maintenance
- description
- Maintain the OpenVMM Guide. Load when: (1) adding, removing, or moving Guide pages, (2) adding new device crates or adding or changing CLI interfaces that need doc coverage, or (3) auditing Guide freshness against code changes.
03 SKILL.md 正文
Guide Maintenance Skill
Procedures for keeping the OpenVMM Guide (Guide/src/) in sync with the codebase.
.github/instructions/doc-code-sync.instructions.md contains the documentation
relevance rules and heuristics for changes to *.rs and Cargo.toml files.
Apply that file's relevance and scope rules before editing the Guide. A code change does not automatically require a Guide update. Prefer an existing page over a new page when it adequately covers the reader's need.
Adding a New Guide Page
1. Choose the right location
| Content type | Path pattern |
|---|---|
| Emulated device reference | reference/emulated/<DeviceCategory>/<device>.md |
| VMBus device reference | reference/devices/vmbus/<device>.md |
| Virtio device reference | reference/devices/virtio/<device>.md |
| Device backend reference | reference/backends/<category>.md |
| Architecture deep-dive | reference/architecture/openvmm/ or reference/architecture/openhcl/ |
| CLI / management | reference/openvmm/management/ |
| Developer tool | dev_guide/dev_tools/<tool>.md |
| Test framework | dev_guide/tests/ |
2. Create the page
- Follow the style in
.github/instructions/guide-docs.instructions.md - Include a brief overview, key concepts, and links to relevant rustdoc
- Reference crate names in backticks
- Use relative paths from repo root when pointing at code
3. Update SUMMARY.md
Add the page to Guide/src/SUMMARY.md in the correct section. Pages with
content get a path; placeholder topics for future work get an empty link ().
- [Page Title](./reference/path/to/page.md)
Removing or Moving a Guide Page
- Update or remove the entry in
Guide/src/SUMMARY.md - Check for cross-references from other Guide pages (grep for the old path)
- If moving: ensure the SUMMARY.md link points to the new location
Adding a New Device Crate
When a new crate is added under vm/devices/:
-
Do readers need new documentation? For a user-visible device or backend, document the capability and how to use it. Internal plumbing crates (e.g.,
*_resources,*_protocol) do not need a page or a mention in the parent page unless they explain a reader-relevant constraint or architectural choice. -
Update an existing page if it adequately covers the topic. Otherwise, follow the "Adding a New Guide Page" procedure above.
Adding or Changing CLI Arguments
When the documented CLI interface changes (for example, flag syntax,
defaults, behavior, or interactions in
openvmm/openvmm_entry/src/cli_args.rs):
- Update
Guide/src/reference/openvmm/management/cli.md - Verify flag syntax, description, default value, and relevant interactions against the parser and generated help. Include what readers need to use the interface correctly.
Refactors that leave the documented interface unchanged need no CLI page edit.
Auditing Guide Freshness
Use this procedure for an explicitly requested freshness audit. Limit scans and placeholder checks to the requested scope; do not expand a routine code or paragraph edit into an audit.
- Scan the relevant Guide pages in
Guide/src/ - Check whether the Guide page content still matches the code:
- Crate names still correct?
- Struct/enum names still exist?
- Behavioral descriptions still accurate?
- Links to rustdoc still resolve?
- Check
Guide/src/SUMMARY.mdfor placeholder links()related to the audit. Report relevant gaps; fill them only when the requested scope includes writing the missing content.
Quick audit commands
# Find Guide pages that reference a crate name
grep -r "crate_name" Guide/src/
# Find placeholder topics (empty links) in SUMMARY.md
grep '()\s*$' Guide/src/SUMMARY.md
04 同仓库更多 Skills
VMM 测试运行与调试
vmm-tests
使用 cargo xflowey vmm-tests-run 在本地运行 VMM 测试。在运行或调试 VMM 测试,或需要理解 petri 测试框架、工件处理(artifact handling)或 VMM 测试交叉编译时使用。
OpenVMM UEFI 固件更新
update-mu-msvm
将 OpenVMM UEFI 固件更新至最新发布的 microsoft/mu_msvm 版本。适用于更新 mu_msvm、升级 UEFI 依赖、刷新固件 Nix 哈希,或准备固件集成拉取请求(pull request)。
OpenVMM CI 失败调查
openvmm-ci-investigation
调查 OpenVMM PR 上的 CI 失败。当某个 PR 存在失败的 CI 检查、需要下载和分析测试产物,或需要诊断构建、fmt、clippy 或 VMM 测试失败时加载。
OpenVMM 模糊测试调试
fuzzing
运行、优化和调试 OpenVMM 模糊测试器(fuzzer)。涵盖 cargo-fuzz 目标、崩溃复现、lldb 调试、代码覆盖率分析、熵优化以及多目标并行测试活动。