VFIO Pass through working on 9070XT

Got this working for a Red Devil 9070, with some help from the Proxmox forums!

I didn’t do anything on Proxmox itself, other than commenting out the amdgpu line in the '/etc/modprobe.d/blacklist.conf file.

I did update the kernel and mesa on the VM that I passed the GPU through to, to their 6.13 and 25 versions, respectively.

We made a script similar to the one posted here, but edited for the 9070:

#!/bin/bash

echo "0000:03:00.0" > /sys/bus/pci/drivers/vfio-pci/unbind
sleep 2
echo "0000:03:00.0" > /sys/bus/pci/drivers/amdgpu/bind
sleep 2

As long as I run this after VM shutdown and/or before starting the VM again, I can (so far) reliably restart the VM without having to restart the Proxmox host.

I did save the output of journalctl -f when I start the VM, not sure where to post that, or if it’s helpful for anyone at all, but as of now – it’s working (although the VM doesn’t display the card name correctly, it definitely works)

A quick update after a few days or running the 9070XT with a VM :

As long as I unbind amdgpu before launching the VM everything has been super stable (same as my 6800XT) played Helldivers2 for a few hours over the last few nights with no issues at all.

Iv had one host hard reset on VM launch (but i did see that every so often with the old GPU so i think thats totally unrelated)

Is this still working? I had it up and running yesterday and today it’s not working anymore. When I start the VM the GPU outputs the boot menu and as soon as the Kubuntu VM loads the GUI my screen goes black.
What changed for me is the MESA version which went from 25.0.1 to 25.0.2 and I have no clue how I can downgrade to see if this is really the issue.