https://github.com/mkroening/virtio-info
Prints information about available virtio devices.
https://github.com/mkroening/virtio-info
guest linux rust sysfs virtio vm
Last synced: 3 months ago
JSON representation
Prints information about available virtio devices.
- Host: GitHub
- URL: https://github.com/mkroening/virtio-info
- Owner: mkroening
- License: apache-2.0
- Created: 2024-09-13T07:57:22.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-09-13T08:01:19.000Z (about 1 year ago)
- Last Synced: 2025-07-11T01:58:50.097Z (3 months ago)
- Topics: guest, linux, rust, sysfs, virtio, vm
- Language: Rust
- Homepage:
- Size: 9.77 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE-APACHE
Awesome Lists containing this project
README
# virtio-info
[](https://crates.io/crates/virtio-info)
[](https://github.com/mkroening/virtio-info/actions/workflows/ci.yml)This application prints informations about available virtio devices in Linux guests, such as the activated [feature bits].
[feature bits]: https://docs.oasis-open.org/virtio/virtio/v1.2/cs01/virtio-v1.2-cs01.html#x1-6600006
## Example
```console
$ virtio-info
/sys/bus/virtio/drivers/virtio_rng/virtio1 rng device active feature bits:
28: INDIRECT_DESC
29: EVENT_IDX
32: VERSION_1/sys/bus/virtio/drivers/virtio_net/virtio0 net device active feature bits:
0: CSUM
1: GUEST_CSUM
2: CTRL_GUEST_OFFLOADS
3: MTU
5: MAC
7: GUEST_TSO4
8: GUEST_TSO6
9: GUEST_ECN
10: GUEST_UFO
11: HOST_TSO4
12: HOST_TSO6
13: HOST_ECN
14: HOST_UFO
15: MRG_RXBUF
16: STATUS
17: CTRL_VQ
18: CTRL_RX
19: CTRL_VLAN
21: GUEST_ANNOUNCE
23: CTRL_MAC_ADDR
28: INDIRECT_DESC
29: EVENT_IDX
32: VERSION_1
```## Installation
This application can be installed via `cargo`:
```bash
cargo install virtio-info
```## License
Licensed under either of
* Apache License, Version 2.0
([LICENSE-APACHE](LICENSE-APACHE) or http://www.apache.org/licenses/LICENSE-2.0)
* MIT license
([LICENSE-MIT](LICENSE-MIT) or http://opensource.org/licenses/MIT)at your option.
### Contribution
Unless you explicitly state otherwise, any contribution intentionally submitted
for inclusion in the work by you, as defined in the Apache-2.0 license, shall be
dual licensed as above, without any additional terms or conditions.