Sample Header Ad - 728x90

Move SSD into the same IOMMU group as the second GPU

0 votes
1 answer
383 views
I have a working Qemu configuration with GPU-pass-through. Now I would like to pass also a SSD to the quest. I have read that the pass-through-devices should be in the same group. The following script: ~~~bash #!/usr/bin/env bash shopt -s nullglob for g in /sys/kernel/iommu_groups/*; do echo "IOMMU Group ${g##*/}:" for d in $g/devices/*; do echo -e "\t$(lspci -nns ${d##*/})" done done ~~~ Shows that my GPU is in group 8, but the SSD is in group 9. ~~~none IOMMU Group 8: 01:00.0 VGA compatible controller : NVIDIA Corporation TU117 [GeForce GTX 1650] [10de:1f82] (rev a1) 01:00.1 Audio device : NVIDIA Corporation Device [10de:10fa] (rev a1) IOMMU Group 9: 02:00.0 USB controller [0c03]: Advanced Micro Devices, Inc. [AMD] 500 Series Chipset USB 3.1 XHCI Controller [1022:43ee] 02:00.1 SATA controller : Advanced Micro Devices, Inc. [AMD] 500 Series Chipset SATA Controller [1022:43eb] 02:00.2 PCI bridge : Advanced Micro Devices, Inc. [AMD] 500 Series Chipset Switch Upstream Port [1022:43e9] 03:00.0 PCI bridge : Advanced Micro Devices, Inc. [AMD] Device [1022:43ea] 03:04.0 PCI bridge : Advanced Micro Devices, Inc. [AMD] Device [1022:43ea] 03:08.0 PCI bridge : Advanced Micro Devices, Inc. [AMD] Device [1022:43ea] 03:09.0 PCI bridge : Advanced Micro Devices, Inc. [AMD] Device [1022:43ea] 05:00.0 Non-Volatile memory controller : Samsung Electronics Co Ltd NVMe SSD Controller 980 [144d:a809] 07:00.0 Ethernet controller : Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller [10ec:8168] (rev 15) ~~~ How to move the SSD into group 8? I used already driverctl set-override 0000:05:00.0 vfio-pci to change the driver from nvme to vfio-pci, but this does not change the IOMMU group.
Asked by ceving (3752 rep)
May 3, 2023, 07:43 PM
Last activity: May 3, 2023, 08:22 PM