leyvi Tux's lil' helper
Joined: 08 Sep 2023 Posts: 79
|
Posted: Sat Nov 23, 2024 5:08 pm Post subject: PCIe passthrough not working, even though IOMMU is working |
|
|
Hello Gentoo community.
I need PCIe passthrough for running VMs with hardware-accelerated graphics.
I use a KVM/QEMU/libvirt software stack, with Virtual Machine Manager for a frontend.
When I try to add a PCI device to my Window 10 VM, nothing happens, but when I try to boot the guest, I get: "Error starting domain: unsupported configuration: host doesn't support passthrough of host PCI devices".
Now, this wouldn't be weird, if I hadn't configured my system for PCIe passthrough.
When I run `lspci -vv`, I can see that the card I tried to add to my VM before is part of IOMMU group 14, and `dmesg | grep -i "iommu"` prints: Code: | [ 0.369991] iommu: Default domain type: Passthrough
[ 0.387092] pci 0000:00:00.2: AMD-Vi: IOMMU performance counters supported
[ 0.387122] pci 0000:00:01.0: Adding to iommu group 0
[ 0.387132] pci 0000:00:01.1: Adding to iommu group 1
[ 0.387146] pci 0000:00:02.0: Adding to iommu group 2
[ 0.387156] pci 0000:00:02.1: Adding to iommu group 3
[ 0.387165] pci 0000:00:02.2: Adding to iommu group 4
[ 0.387178] pci 0000:00:03.0: Adding to iommu group 5
[ 0.387191] pci 0000:00:04.0: Adding to iommu group 6
[ 0.387206] pci 0000:00:08.0: Adding to iommu group 7
[ 0.387216] pci 0000:00:08.1: Adding to iommu group 8
[ 0.387225] pci 0000:00:08.3: Adding to iommu group 9
[ 0.387243] pci 0000:00:14.0: Adding to iommu group 10
[ 0.387251] pci 0000:00:14.3: Adding to iommu group 10
[ 0.387295] pci 0000:00:18.0: Adding to iommu group 11
[ 0.387304] pci 0000:00:18.1: Adding to iommu group 11
[ 0.387313] pci 0000:00:18.2: Adding to iommu group 11
[ 0.387322] pci 0000:00:18.3: Adding to iommu group 11
[ 0.387331] pci 0000:00:18.4: Adding to iommu group 11
[ 0.387340] pci 0000:00:18.5: Adding to iommu group 11
[ 0.387349] pci 0000:00:18.6: Adding to iommu group 11
[ 0.387358] pci 0000:00:18.7: Adding to iommu group 11
[ 0.387368] pci 0000:01:00.0: Adding to iommu group 12
[ 0.387378] pci 0000:02:00.0: Adding to iommu group 13
[ 0.387397] pci 0000:03:00.0: Adding to iommu group 14
[ 0.387409] pci 0000:03:00.1: Adding to iommu group 15
[ 0.387419] pci 0000:04:00.0: Adding to iommu group 16
[ 0.387429] pci 0000:05:00.0: Adding to iommu group 17
[ 0.387439] pci 0000:05:04.0: Adding to iommu group 18
[ 0.387449] pci 0000:05:05.0: Adding to iommu group 19
[ 0.387458] pci 0000:05:06.0: Adding to iommu group 20
[ 0.387468] pci 0000:05:07.0: Adding to iommu group 21
[ 0.387477] pci 0000:05:08.0: Adding to iommu group 22
[ 0.387486] pci 0000:05:0c.0: Adding to iommu group 23
[ 0.387496] pci 0000:05:0d.0: Adding to iommu group 24
[ 0.387499] pci 0000:07:00.0: Adding to iommu group 18
[ 0.387502] pci 0000:08:00.0: Adding to iommu group 19
[ 0.387506] pci 0000:09:00.0: Adding to iommu group 20
[ 0.387509] pci 0000:0a:00.0: Adding to iommu group 21
[ 0.387512] pci 0000:0c:00.0: Adding to iommu group 23
[ 0.387515] pci 0000:0d:00.0: Adding to iommu group 24
[ 0.387525] pci 0000:0e:00.0: Adding to iommu group 25
[ 0.387544] pci 0000:0f:00.0: Adding to iommu group 26
[ 0.387554] pci 0000:0f:00.2: Adding to iommu group 27
[ 0.387563] pci 0000:0f:00.3: Adding to iommu group 28
[ 0.387573] pci 0000:0f:00.4: Adding to iommu group 29
[ 0.387582] pci 0000:10:00.0: Adding to iommu group 30
[ 0.537556] perf/amd_iommu: Detected AMD IOMMU #0 (2 banks, 4 counters/bank).
| Furthermore, I went into my UEFI settings, and saw that IOMMU was in fact, enabled.
Anyone got some idea as to how I can fix this? |
|