thanks 
but it will still require many weeks of work. I dodged many issues but now they need to be fixed.
@fjdh
It is on xen 4.17, using a ISO I compiled from the qubes sources with 2 custom patches ( one is the CPU frequency fix, the other one is to remove the TOLUD patch).
1070 work. RX 580 work only with kernel below 5.10. It is one of the issue I need to find the root cause and fix.
And thanks, will send a more detailled post on l1t forum once the known qubes specific bugs are fixed
I reformatted my new computer with a iso where I integrated this patch (qemu: fix TOLUD for PCI passthrough by mati7337 · Pull Request #44 · QubesOS/qubes-vmm-xen-stubdom-linux · GitHub) and redid the same steps. Passthrough doesn’t work.
I think this patch is buggy, but quite hard to understand what is wrong with it. Since it seems to work at least on some hardware.
To be sure I will reformat qubes os on my new computer using the iso without the TOLUD patch and retry all the steps I noted to check if I correctly succeceed the passthrough.
Many of the issues I am encoutering seems to be qubes specific (MSI support / MSI-X support).
Some note on this TOLUD issue.
First, I tried with the patch (as it is already integrated in qubes).
- Wifi worked
- GPU passthrough didn’t worked.
Then I tried without this patch
- Wifi didn’t work (reset bug in dom0 kernel and guest kernel; flr timeout)
- Reached my first success with GPU passthrough
Today 1: reinstall with the patch
- Wifi work
- GPU passthrough don’t work
Today 2: reinstall without the patch
- Wifi don’t work
- GPU passthrough work
Will do another try with the patch, before opening a complicated github issue