In this video, we will get RTX 3080 and RX6900 to work in a virtual machine and try to get the best performance. The hypervisor feature used in this video should work with most other GPUs out there.
Libvirt manual:
https://libvirt.org/formatdomain.html#hypervisor-features