• Home
Name Date Size #Lines LOC

..--

patches/04-Jul-2025-194185

src/04-Jul-2025-11,8548,589

.android-checksum.jsonD04-Jul-20254.2 KiB11

.cargo-checksum.jsonD04-Jul-20253.5 KiB11

Android.bpD04-Jul-20251.7 KiB6862

Cargo.tomlD04-Jul-20251.6 KiB7463

LICENSED04-Jul-20251.1 KiB2117

METADATAD04-Jul-2025385 1817

MODULE_LICENSE_MITD04-Jul-20250

README.mdD04-Jul-20252.5 KiB7253

TEST_MAPPINGD04-Jul-202582 87

cargo_embargo.jsonD04-Jul-2025639 3232

rules.mkD04-Jul-2025809 2719

rust-toolchain.tomlD04-Jul-202586 54

README.md

1# VirtIO-drivers-rs
2
3[![crates.io page](https://img.shields.io/crates/v/virtio-drivers.svg)](https://crates.io/crates/virtio-drivers)
4[![docs.rs page](https://docs.rs/virtio-drivers/badge.svg)](https://docs.rs/virtio-drivers)
5[![CI](https://github.com/rcore-os/virtio-drivers/workflows/CI/badge.svg?branch=master)](https://github.com/rcore-os/virtio-drivers/actions)
6
7VirtIO guest drivers in Rust. For **no_std** environment.
8
9## Support status
10
11### Device types
12
13| Device  | Supported |
14| ------- | --------- |
15| Block   | ✅        |
16| Net     | ✅        |
17| GPU     | ✅        |
18| Input   | ✅        |
19| Console | ✅        |
20| Socket  | ✅        |
21| Sound   | ✅        |
22| ...     | ❌        |
23
24### Transports
25
26| Transport   | Supported |                                                   |
27| ----------- | --------- | ------------------------------------------------- |
28| Legacy MMIO | ✅        | version 1                                         |
29| MMIO        | ✅        | version 2                                         |
30| PCI         | ✅        | Memory-mapped CAM only, e.g. aarch64 or PCIe ECAM |
31
32### Device-independent features
33
34| Feature flag                 | Supported |                                         |
35| ---------------------------- | --------- | --------------------------------------- |
36| `VIRTIO_F_INDIRECT_DESC`     | ✅        | Indirect descriptors                    |
37| `VIRTIO_F_EVENT_IDX`         | ✅        | `avail_event` and `used_event` fields   |
38| `VIRTIO_F_VERSION_1`         | TODO      | VirtIO version 1 compliance             |
39| `VIRTIO_F_ACCESS_PLATFORM`   | ❌        | Limited device access to memory         |
40| `VIRTIO_F_RING_PACKED`       | ❌        | Packed virtqueue layout                 |
41| `VIRTIO_F_IN_ORDER`          | ❌        | Optimisations for in-order buffer usage |
42| `VIRTIO_F_ORDER_PLATFORM`    | ❌        | Platform ordering for memory access     |
43| `VIRTIO_F_SR_IOV`            | ❌        | Single root I/O virtualization          |
44| `VIRTIO_F_NOTIFICATION_DATA` | ❌        | Extra data in device notifications      |
45
46## Examples & Tests
47
48### [x86_64](./examples/x86_64)
49
50```bash
51cd examples/x86_64
52make qemu
53```
54
55### [aarch64](./examples/aarch64)
56
57```bash
58cd examples/aarch64
59make qemu
60```
61
62### [RISCV](./examples/riscv)
63
64```bash
65cd examples/riscv
66make qemu
67```
68
69You will see device info & GUI Window in qemu.
70
71<img decoding="async" src="https://github.com/rcore-os/virtio-drivers/raw/master/examples/riscv/virtio-test-gpu.png" width="50%">
72