VFIO passthrough causes assertation failure Since commit 5e95494380ec I am no longer able to passthrough my Nvidia GTX 770 using VFIO. Qemu terminates with: qemu-system-x86_64: hw/pci/pcie.c:240: pcie_cap_slot_hotplug_common: Assertion `((pci_dev->devfn) & 0x07) == 0' failed. Above output was generated using commit f55ea6297cc0. Lspci of the vga card: 01:00.0 VGA compatible controller: NVIDIA Corporation GK104 [GeForce GTX 770] (rev a1) Subsystem: Gigabyte Technology Co., Ltd Device 360c Kernel driver in use: vfio-pci 01:00.1 Audio device: NVIDIA Corporation GK104 HDMI Audio Controller (rev a1) Subsystem: Gigabyte Technology Co., Ltd Device 360c Kernel driver in use: vfio-pci Commandline used to start qemu: qemu-system-x86_64 -machine accel=kvm \ -nodefaults \ -name VFIO-Test \ -machine q35 \ -cpu host \ -smp 1 \ -enable-kvm \ -m 1024 \ -k de \ -vga none \ -device ioh3420,bus=pcie.0,addr=1c.0,multifunction=on,port=1,chassis=1,id=root.1 \ -device vfio-pci,host=01:00.0,bus=root.1,addr=00.0,multifunction=on,x-vga=on \ -device vfio-pci,host=01:00.1,bus=root.1,addr=00.1 \ -rtc base=utc \ -boot order=d \ -device ide-cd,drive=drive-cd-disk1,id=cd-disk1,unit=0 \ -drive file=/home/bluebird/Downloads/systemrescuecd-x86-4.0.0.iso,if=none,id=drive-cd-disk1,media=cdrom \ -nographic Full output of git bisect: 5e95494380ecf83c97d28f72134ab45e0cace8f9 is the first bad commit commit 5e95494380ecf83c97d28f72134ab45e0cace8f9 Author: Igor Mammedov