hey all I have a weird issue, i am using virt-manager and trying to make VFIO work to passthrough my gpu to my windows 11. I am on an AMD Ryzen 7 3700x and a AMD RX 6700, my hook script seems to mess up, I expect it to rest for 10 second then there is no errors, but I think I did it wrong, i followed SomeordinaryGamers single gpu video, and tried to adjust for my AMD graphics card, I have not installed any extra drivers, but I feel like I am doing it wrong, this script was in ubuntu and seemed to sleep but also failed to run the hook, here is my current script
my apologizes, I am in my manjaro now, I have conversed a little with chatgpt, (if this is correct) I have lsmod | grep amd to find amdgpu then i did modinfo amdgpu | grep depends to remove its dependencies I had accidentally posted the wrong script, my main goal is to pass my single gpu to my windows VM so I can game then when I am done gaming I can turn it off and be in manjaro again.
yes I added /etc/libvirt/hooks/kvm.conf
kvm.conf:
this is from my search in IOMMU groups,
it SHOULD point to here
“IOMMU Group 18:
28:00.0 VGA compatible controller [0300]: Advanced Micro Devices, Inc. [AMD/ATI] Navi 33 [Radeon RX 7700S/7600/7600S/7600M XT/PRO W7600] [1002:7480] (rev cf)
IOMMU Group 19:
28:00.1 Audio device [0403]: Advanced Micro Devices, Inc. [AMD/ATI] Navi 31 HDMI/DP Audio [1002:ab30]”
I’m not really sure why my video driver and audio are not in the same group but as far as I know (well given I gave the wrong code, my knowledge is very limited) if they are the only thing in the group that is okay as long as there is no other things in the group
if there is a better solution to game from my windows drive (I have tested the vm with virt-manager’s basic setup but it is really slow, linux is not my main platform I know some linux commands but admittedly this is a little bit out of my wheelhouse, I mainly have linux to use rocm and gets better speeds in AI generation.