vfio-native

LOW
maintainer Sandwich 0 votes scanned 2026-09-06 02:02:01.866548
View on AUR
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
10pkgname=vfio-native
11pkgver=1.1.0
12pkgrel=1
13pkgdesc="Present a libvirt guest as a self-consistent physical machine, and tune it"
14arch=('any')
15url="https://git.archworks.co/sandwich/vfio-native"
16license=('GPL-2.0-only')
17depends=('libvirt' 'qemu-base' 'python' 'openssh' 'bash' 'ethtool')
18makedepends=('git')
19optdepends=('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')
23install=vfio-native.install
24source=("git+${url}.git#tag=v${pkgver}")
25sha256sums=('SKIP')
26
27package() {
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)SeverityRules
2026-09-06 02:02:01 Low 1
2026-09-06 00:17:06 Clean 2
2026-09-06 00:01:42 Low 1

Report a package

Reports go to the AURWatch maintainer (one person) and are read by hand. No login required.

0 / 4000
Your suggestion