• Home
Name Date Size #Lines LOC

..--

.github/workflows/06-Sep-2024-8176

patches/06-Sep-2024-290279

src/06-Sep-2024-8,4195,902

.cargo_vcs_info.jsonD06-Sep-202494 66

.gitignoreD06-Sep-202428 43

Android.bpD06-Sep-20241.6 KiB6661

Cargo.tomlD06-Sep-20241.2 KiB4942

Cargo.toml.origD06-Sep-2024655 2824

LICENSED06-Sep-20241.1 KiB2117

METADATAD06-Sep-2024620 2119

MODULE_LICENSE_MITD06-Sep-20240

OWNERSD06-Sep-202445 21

README.mdD06-Sep-20242.5 KiB7152

cargo2rulesmk.jsonD06-Sep-202440 33

cargo_embargo.jsonD06-Sep-2024305 1817

rules.mkD06-Sep-2024572 2215

rust-toolchain.tomlD06-Sep-202486 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| ...     | ❌        |
22
23### Transports
24
25| Transport   | Supported |                                                   |
26| ----------- | --------- | ------------------------------------------------- |
27| Legacy MMIO | ✅        | version 1                                         |
28| MMIO        | ✅        | version 2                                         |
29| PCI         | ✅        | Memory-mapped CAM only, e.g. aarch64 or PCIe ECAM |
30
31### Device-independent features
32
33| Feature flag                 | Supported |                                         |
34| ---------------------------- | --------- | --------------------------------------- |
35| `VIRTIO_F_INDIRECT_DESC`     | ✅        | Indirect descriptors                    |
36| `VIRTIO_F_EVENT_IDX`         | ✅        | `avail_event` and `used_event` fields   |
37| `VIRTIO_F_VERSION_1`         | TODO      | VirtIO version 1 compliance             |
38| `VIRTIO_F_ACCESS_PLATFORM`   | ❌        | Limited device access to memory         |
39| `VIRTIO_F_RING_PACKED`       | ❌        | Packed virtqueue layout                 |
40| `VIRTIO_F_IN_ORDER`          | ❌        | Optimisations for in-order buffer usage |
41| `VIRTIO_F_ORDER_PLATFORM`    | ❌        | Platform ordering for memory access     |
42| `VIRTIO_F_SR_IOV`            | ❌        | Single root I/O virtualization          |
43| `VIRTIO_F_NOTIFICATION_DATA` | ❌        | Extra data in device notifications      |
44
45## Examples & Tests
46
47### [x86_64](./examples/x86_64)
48
49```bash
50cd examples/x86_64
51make qemu
52```
53
54### [aarch64](./examples/aarch64)
55
56```bash
57cd examples/aarch64
58make qemu
59```
60
61### [RISCV](./examples/riscv)
62
63```bash
64cd examples/riscv
65make qemu
66```
67
68You will see device info & GUI Window in qemu.
69
70<img decoding="async" src="https://github.com/rcore-os/virtio-drivers/raw/master/examples/riscv/virtio-test-gpu.png" width="50%">
71