I have once gotten gpu passthrough to work on this machine. I followed this guide back then and also now.
specs:
Ryzen 2700x
2x8gb ddr4 3200 mhz ram.
rx580 8gb
asus rog x470 gaming-f
The problem is now that every time i launch a windows vm with th pcie device, it disconnects from the internet...