This is forked from Dave Silva's Gist and updated for my system. Props to Dave for doing the hard research!
Here's how to set up a Windows 10 virtual machine in KVM with PCI passthrough. The VM will have access to an NVIDIA graphics card while the host machine (running Debian Bullseye) uses Intel integrated graphics. This is mostly for my own reference so I don't forget how I did it.
- Intel i7-6700K (an old one) with integrated graphics: this will be used as the graphics card for the host machine running Debian Bullseye
- NVIDIA Geforce 1080: this will be used as the graphics card for the Windows 10 VM