Hello all
I am trying to passthrough an iGPU from an AMD Ryzen 9 5900HX to a VM. To do this, I proceeded as follows:
Finally, I added the PCI device.
The device also has its own IOMMU Group ID:
The VM boots, but it is very slow. Operation is not possible. I send you the dmesg output in the attachment.
Does anyone have any ideas?
Thank you and best regards
I am trying to passthrough an iGPU from an AMD Ryzen 9 5900HX to a VM. To do this, I proceeded as follows:
Code:
vi /etc/kernel/cmdline
root=ZFS=rpool/ROOT/pve-1 boot=zfs quiet amd_iommu=on iommu=pt textonly video=astdrmfb pcie_acs_override=downstream,multifunction nofb nomodeset video=vesafb:eek:ff video=efifb:eek:ff video=simplefb:eek:ff initcall_blacklist=sysfb_init disable_vga=1 vfio_iommu_type1.allow_unsafe_interrupts=1 kvm.ignore_msrs=1 modprobe.blacklist=radeon,nouveau,nvidia,nvidiafb,nvidia-gpu,snd_hda_intel,snd_hda_codec_hdmi,i915,amdgpu,ccp
proxmox-boot-tool refresh
reboot
dmesg | grep -e DMAR -e IOMMU
[ 0.000000] Warning: PCIe ACS overrides enabled; This may allow non-IOMMU protected peer-to-peer DMA
[ 0.402727] pci 0000:00:00.2: AMD-Vi: IOMMU performance counters supported
[ 0.403245] pci 0000:00:00.2: AMD-Vi: Found IOMMU cap 0x40
[ 0.716364] perf/amd_iommu: Detected AMD IOMMU #0 (2 banks, 4 counters/bank).
vi /etc/modules
vfio
vfio_iommu_type1
vfio_pci
vfio_virqfd
lspci -nnv | grep VGA
04:00.0 VGA compatible controller [0300]: Advanced Micro Devices, Inc. [AMD/ATI] Cezanne [1002:1638] (rev ff) (prog-if ff)
echo "options vfio-pci ids=1002:1638 disable_vga=1" > /etc/modprobe.d/vfio.conf
echo "options kvm ignore_msrs=1 report_ignored_msrs=0" > /etc/modprobe.d/kvm.conf
update-initramfs -u -k all
reboot
Finally, I added the PCI device.
The device also has its own IOMMU Group ID:
The VM boots, but it is very slow. Operation is not possible. I send you the dmesg output in the attachment.
Does anyone have any ideas?
Thank you and best regards