Skip to content

s0nx/virtio-info

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

virtio_info_3

virtio-info

This simple tool allows to quickly identify all VirtIO devices currently registered.
For a given device, features bits decoding makes it easy to understand which particular features have been negotiated between device and driver.
diff mode highlights features differences for two devices of the same type.

Requirements

  • compiler supporting C++20
  • cmake
  • fmt library

Installation

fmt packages

  • Ubuntu 24.04: libfmt-dev,libfmt9
  • Arch Linux: fmt
  • Fedora 40: fmt,fmt-devel

Building

git clone https://github.com/s0nx/virtio-info.git
cd virtio-info && mkdir build
cmake -B build -S .
make -C build -j

Usage

virtio-info [OPTIONS]

OPTIONS:
  -h,        --help                     Print this help message and exit 
             --no-desc                  don't show features bits description 
             --feat-set                 display only the feature bits that have been set 
  -v,        --version                  Print version and exit 
  -i,        --info < existing device name (e.g. virtio0) > 
                                        show detailed info about specific VirtIO device 
             --no-status                don't show device status bits decoding 
  -l,        --list                     show registered VirtIO devices 
  -d,        --diff <device A> <device B> 
                                        highlight features difference for two devices A and B 
  -t,        --types                    show defined VirtIO device types 
  -f,        --feat <device type> <features (non-negative)> 
                                        decode given features for a particular device type 

References

The following libraries are used by this tool:

  • fmt - text formatting
  • CLI11 - command line parsing
  • ftxui - visual representation
  • magic_enum - reflection for enums

About

VirtIO device information

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published