Hello everyone,
Skip this if you are only interested in the guide
Ever since my first successful vfio experience, I knew I will never want to go back to just running one standalone os if that os ain’t Linux.
Since I had used single gpu passthrough in the past I, I thought I knew how to do it and boy oh boy was I wrong.
Using an nvidia in the past, and one of the tutorials available online this one being my favorite I managed to get some great performance out of my new(back then) r7 3700x rig.
After giving that card back and buying a rx 580 after a disastrous experience with a gigabyte 5700xt(and it’s beautiful driver issues), I wanted to replicate the process.
But like many, I failed, but I was consistent and with a few semi-dead semi-seg-faulted sessions I managed to successfully get my RX 580 to behave like virtualization champ .
The tutorial part
As a starting point I used this outstanding guide and I adapted my stuff to work with AMD cards.
While I only had my xfx rx 580 which I know that suffers from the reset bug, I think that others should be able to use my guide(ofc, change the gpu pcie address, and adapt to your desktop enviornment)
Please keep in mind that this is my first guide, by no means do I believe I did something outstanding in the tutorial itself, and because of that any advice or pointer would be greatly appreciated towards creating a better guide for people that are not as versed in vfio, or people that just don’t have the time to poke around.
amd-single-gpu-passthrough
In it’s current state, the reset works, I can use my debian with kde normally, and when I start my macOS vm, kde is being shut down, amdgpu module is unloaded and the sound counterpart as well.
I also use the cpu governor to performance and hugepages allocation hook scripts.
When I stop my vm, kde is back up and runs like a champ.
Currently, I mostly do my sysadmin work on my macOS Big Sur vm, this iteration of macOS added a few virtio drivers, and using OpenCore, I also got filevault working and I pass my own Intune checks which is hilarious.
Hope you guys will find this useful
Also big thank you to Wendel and gnif for posting youtube videos and making this possible.