https://github.com/gbaptista/vfio
A command-line interface to help you set up VFIO on IOMMU compatible hardware for a seamless Virtual Machine experience.
https://github.com/gbaptista/vfio
Last synced: 6 months ago
JSON representation
A command-line interface to help you set up VFIO on IOMMU compatible hardware for a seamless Virtual Machine experience.
- Host: GitHub
- URL: https://github.com/gbaptista/vfio
- Owner: gbaptista
- Created: 2022-04-02T00:32:27.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2022-04-03T22:26:35.000Z (over 3 years ago)
- Last Synced: 2025-02-14T13:50:29.320Z (8 months ago)
- Language: Fennel
- Homepage:
- Size: 36.1 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# vfio
A command-line interface to help you set up [VFIO](https://www.kernel.org/doc/html/latest/driver-api/vfio.html) on [IOMMU](https://en.wikipedia.org/wiki/Input%E2%80%93output_memory_management_unit) compatible hardware for a seamless Virtual Machine experience.
- [Usage](#usage)
- [Installing](#installing)
- [Requirements](#requirements)
- [Development](#development)
- [References](#references)## Usage
```bash
vfio
vfio [id]
vfio [id] [attribute] [value]
vfio [id] passthrough true
vfio kernel
vfio config
vfio help
```
## Installing```bash
git clone https://github.com/gbaptista/vfio.git vfio-sourcecd vfio-source
fnx run/install.fnl
cd ~
vfio
```### Requirements
- [fnx](https://github.com/gbaptista/fnx) `0.1.3` or later.
- [Unix](https://en.wikipedia.org/wiki/Unix)
- [`lspci`](https://en.wikipedia.org/wiki/Lspci)## Development
```
fnx dep install
fnx run/test.fnl
```## References
- [PCI passthrough via OVMF](https://wiki.archlinux.org/title/PCI_passthrough_via_OVMF)
- [Kernel parameters](https://wiki.archlinux.org/title/Kernel_parameters)
- [VFIO](https://www.kernel.org/doc/html/latest/driver-api/vfio.html)
- [IOMMU](https://en.wikipedia.org/wiki/Input%E2%80%93output_memory_management_unit)
- [VFIO - How I game on Linux](https://b1nzy.com/blog/vfio.html)
- [Evdev Passthrough Explained — Cheap, Seamless VM Input](https://passthroughpo.st/using-evdev-passthrough-seamless-vm-input/)
- [Beginner VFIO Tutorial](https://www.youtube.com/watch?v=fFz44XivxWI)