Skip to content

Commit 474264b

Browse files
committed
content: Add Cloud-Hypervisor RISC-V document
Add documentation for generating dependency graph, and status of current RISC-V support of cloud-hypervisor. Signed-off-by: Ruoqing He <[email protected]>
1 parent 5e1fb6f commit 474264b

File tree

1 file changed

+35
-0
lines changed

1 file changed

+35
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
# RISC-V 64-bit Architecture Support
2+
3+
To get a full picture of current cloud-hypervisor layout, we can utilize
4+
`cargo-depgraph` tool, with command:
5+
6+
```sh
7+
cargo depgraph --dedup-transitive-deps --features kvm --include arch,block,devices,event_monitor,hypervisor,net_gen,net_util,option_parser,pci,performance-metrics,rate_limiter,serial_buffer,test_infra,tracer,vhost_user_block,vhost_user_net,virtio-devices,vm-allocator,vm-device,vm-migration,vm-virtio,vmm,acpi_tables,kvm-bindings,kvm-ioctls,linux-loader,mshv-bindings,mshv-ioctls,seccompiler,vfio-bindings,vfio-ioctls,vfio_user,vhost,virtio-bindings,virtio-queue,vm-fdt,vm-memory,vmm-sys-util,cloud-hypervisor | dot -Tpng > architecture.png
8+
```
9+
10+
With this command, a PNG will be generated demonstrating the overall
11+
architecture of current cloud-hypervisor. The crates shown are crates within the
12+
Rust Type II virtualization stack, and are composed primarily by
13+
`cloud-hypervisor` team and `rust-vmm` team.
14+
15+
Crates from `rust-vmm` are the foundation of `cluod-hypervisor`, so these works
16+
should be finished ahead of supporting `cloud-hypervisor` on RISC-V.
17+
18+
The crates used by `cloud-hypervisor` are:
19+
20+
- [x] `acpi_tables`
21+
- [x] `kvm-bindings`
22+
- [x] `kvm-ioctls`
23+
- [x] `vm-memory`
24+
- [x] `linux-loader`
25+
- [x] `mshv-bindings`
26+
- [x] `mshv-ioctls`
27+
- [ ] `seccompiler`
28+
- [x] `vfio-bindings`
29+
- [x] `vfio-ioctls`
30+
- [x] `vfio_user`
31+
- [ ] `vhost`
32+
- [x] `virtio-bindings`
33+
- [x] `virtio-queue`
34+
- [x] `vm-fdt`
35+
- [x] `vmm-sys-util`

0 commit comments

Comments
 (0)