I have a working config for GPU pass-through using the following
command line options:
-device vfio-pci,host="$pci_vga",bus=root.1,addr=00.0,multifunction=on,x-vga=on,romfile="$vgarom" \
-device vfio-pci,host="$pci_audio",bus=pcie.0 \
This works fine.
Now I would like to add a SSD pass-through. I modified the driver
for the SSD so that vfio-pci is used instead of nvme. And then I
tried to add the SSD in the same manner:
-device vfio-pci,host="$pci_ssd",bus=pcie.0 \
But this throws the error:
qemu-system-x86_64: -device vfio-pci,host=05:00.0,bus=pcie.0: vfio 0000:05:00.0: group 9 is not viable
Please ensure all devices within the iommu_group are bound to their vfio bus driver.
The problem is that the SSD is in IOMMU group 9, but the GPU is
in group 8. And there are other devices in group 9, for example
the Ethernet device.
How to fix this? Is it possible to move the SSD from group 9 to group 8?