vfio-native
LOW
maintainer Sandwich
0 votes
scanned 2026-09-06 02:02:01.866548
Why flagged
Uploaded within the last 14 days with 2 or fewer community votes — little peer review so far.
Triggered rules
Low
Few votes, recently uploaded
zero_votes_recent
Uploaded within the last 14 days with 2 or fewer community votes — little peer review so far.
PKGBUILD
1
# Maintainer: Sandwich <sandwich@archworks.co>
2
#
3
# Platform-fidelity corrections and VFIO tuning for libvirt guests.
4
#
5
# Three packages:
6
# vfio-native scripts, patches, ACPI tables and the benchmark
7
# vfio-native-kvm-dkms the patched KVM modules, rebuilt by DKMS per kernel
8
# vfio-native-qemu QEMU 11.1.1 with the platform-identity patches, in /opt
9
10
pkgname=vfio-native
11
pkgver=1.1.0
12
pkgrel=1
13
pkgdesc="Present a libvirt guest as a self-consistent physical machine, and tune it"
14
arch=('any')
15
url="https://git.archworks.co/sandwich/vfio-native"
16
license=('GPL-2.0-only')
17
depends=('libvirt' 'qemu-base' 'python' 'openssh' 'bash' 'ethtool')
18
makedepends=('git')
19
optdepends=('mingw-w64-gcc: build the in-guest benchmark and the TIMER probe'
20
'cpupower: set the host CPU governor'
21
'vfio-native-kvm-dkms: patched KVM modules for the full level'
22
'vfio-native-qemu: patched QEMU for the full level')
23
install=vfio-native.install
24
source=("git+${url}.git#tag=v${pkgver}")
25
sha256sums=('SKIP')
26
27
package() {
28
cd "${srcdir}/${pkgname}"
29
install -Dm755 scripts/setup-vm.sh "${pkgdir}/usr/bin/vm-native-setup"
30
install -Dm755 scripts/verify-perf.sh "${pkgdir}/usr/bin/vm-native-verify"
31
install -Dm755 scripts/gpu-passthrough.sh "${pkgdir}/usr/bin/vm-native-gpu"
32
33
local share="${pkgdir}/usr/share/vfio-native"
34
install -Dm644 bench/vmbench.c "${share}/bench/vmbench.c"
35
install -Dm644 bench/timerprobe.c "${share}/bench/timerprobe.c"
36
install -Dm755 scripts/install-modules.sh "${share}/scripts/install-modules.sh"
37
install -Dm755 scripts/restore-stock-kvm.sh "${share}/scripts/restore-stock-kvm.sh"
38
install -Dm755 scripts/generate-tables.py "${share}/scripts/generate-tables.py"
39
install -Dm644 -t "${share}/acpi" acpi/*.aml acpi/*.dsl
40
install -dm755 "${share}/patches"
41
cp -r patches/. "${share}/patches/"
42
install -Dm644 -t "${share}/doc" README.md docs/*.md
43
44
# libvirt runs every executable in qemu.d/ after the main qemu hook, so
45
# this coexists with whatever hook the host already has.
46
install -Dm755 scripts/libvirt-hook-cpu-isolation.sh \
47
"${pkgdir}/etc/libvirt/hooks/qemu.d/10-cpu-isolation.sh"
48
# e1000e offloads corrupt integrity-checked traffic on libvirt taps; host-wide by nature
49
install -Dm644 scripts/99-vfio-native-vnet-offload.rules \
50
"${pkgdir}/usr/lib/udev/rules.d/99-vfio-native-vnet-offload.rules"
51
}
52
Scan history
| Scanned at (UTC) | Severity | Rules |
|---|---|---|
| 2026-09-06 02:02:01 | Low | 1 |
| 2026-09-06 00:17:06 | Clean | 2 |
| 2026-09-06 00:01:42 | Low | 1 |