u/BaronCAD

▲ 11 r/VFIO

Hi,

I've been cranking away at a problem I've been having, trying to properly pass-through a 7900 xtx GPU from a Linux (Fedora kernel 6.19) host to a Win11 VM. The problem seems to revolve around the vbios for recent AMD cards (I've tested on 7900 xtx, 7800 xt, and 9070 xt) firmware setting the 'require_direct' flag, effectively blocking VFIO passthrough, when I've already explicitly bound the device to vfio-pci. With a bit of AI help, I managed to craft a kernel patch which seems to bypass this block. Have others here been bit by this same bug? I tested it works on kernel 6.19, and a dry-run application of this patch to kernel 7.0 was successful as well (but I haven't tested yet on a running 7.0 kernel). The howto and accompanying files (including kernel patch) are here: https://github.com/calebadavis/rdna-passthrough. Am I missing something basic here which would make this patch unnecessary?

u/BaronCAD — 11 days ago