<b>CPUs</b> > CPU model: host-passthrough, CPU topology: Best for your machine :)<br/>
<b>SATA Disk</b> > Disk bus: virtio<br/>
<b>NIC</b> > Device model: virtio<br/>
<b>Add Hardware</b> > CDROM: virtio-win.iso
<b>Begin Installation</b> and install Windows.. Windows can't detect virtio devices, so you need to <b>Load Driver</b> from <b>virtio-disk/amd64/win10</b> when prompted.
After successful installation, install virtio-drivers from virtio CDROM.
</details>
<details>
<summary><b>Attach PCI Devices</b></summary>
Remove <b>Tablet, Spice Channel, Video XQL</b> and other applicable devices.
<b>Add Hardware</b> > PCI Devices: GPU and HDMI audio
</details>
<details>
<summary><b>NVIDIA GPU</b></summary>
Nvidia GPU vBIOS requires patching to work. Though, some NVIDIA GPU works without patching.
<details>
<summary><b>Dump GPU vBIOS</b></summary>
<b>Windows</b> > Use [GPU-Z](https://www.techpowerup.com/gpuz/)<br/>
<b>Linux</b> > Try following but doesn't seem to work:
### Launch ***virt-manager*** and create a new virtual machine. Select ***Customize before install*** on Final Step.
### In ***Overview*** section, set ***Chipset*** to ***Q35***, and ***Firmware*** to ***UEFI***
### In ***CPUs*** section, set ***CPU model*** to ***host-passthrough***, and ***CPU Topology*** to whatever fits your system.
### For ***SATA*** disk of VM, set ***Disk Bus*** to ***virtio***.
### In ***NIC*** section, set ***Device Model*** to ***virtio***
### Add Hardware > CDROM: virtio-win.iso
### Now, ***Begin Installation***. Windows can't detect the ***virtio disk***, so you need to ***Load Driver*** and select ***virtio-iso/amd64/win10*** when prompted.
### After successful installation of Windows, install virtio drivers from virtio CDROM.
<br/>
### **Attaching PCI devices**
### Remove Channel Spice, Display Spice, Video XQL, Sound ich* and other unnecessary devices.
### Now, click on ***Add Hardware***, select ***PCI Devices*** and add the PCI Host devices for your GPU's VGA and HDMI Audio
### Some GPU vBIOS needs to be patched for UEFI Support.
----- TODO: vBIOS patching ------
### To use patched vBIOS, edit VM's configuration
```sh
virsh edit win10
```
```xml
...
<hostdevmode='subsystem'type='pci'managed='yes'>
<source>
...
</source>
<romfile='/home/me/patched.rom'/>
...
</hostdev>
...
```
<b>See Also</b>
> [Single GPU Passthrough by joeknock90](https://github.com/joeknock90/Single-GPU-Passthrough)<br/>