Also got my VM to work a few days ago. Same processor, with a passed-through 5700 XT. Can’t restart the VM because of the reset bug though (“Unknown PCI header type 127”), but hopes are high to have gnif figuring out a solution.
Had the same problem. For me it kept complaining about a missing /etc/kvm folder (systemctl status libvirtd.service). Ended up just creating a timer as workaround.
I Added this file:
# /etc/systemd/system/libvirtd.timer
[Unit]
Description=Stops complains about missing /etc/kvm
[Timer]
OnBootSec=6
[Install]
WantedBy=basic.target
Then disabled libvirtd.service and enabled libvirtd.timer via systemctl. Works for me, I’d really have to rush to notice those 6 extra seconds.
May look into your CPU solution at some time. I was quite lazy and just straight-forward passed through 7 whole cores.
<cpu mode="host-passthrough" check="partial">
<topology sockets="1" cores="7" threads="2"/>
</cpu>
Got great performance with this, though yours may be better. It’s definitely more sophisticated. 