Have a Debian host for normal operation using the iGPU of the CPU, while
Install software
apt install bridge-utils guestfs-tools swtpm libvirt-clients libvirt-daemon-system ovmf qemu-kvm qemu-utils swtpm virt-manager virt-viewer virtinst
systemctl enable libvirtd.service
reboot
Get VirtIO-win drivers ISO from: https://fedorapeople.org/groups/virt/virtio-win/direct-downloads/archive-virtio/
Enable iommu and assign dGPU to vfio (instead of nvidia)
nano /etc/default/grub
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash intel_iommu=on iommu=pt vfio-pci.ids=10de:xxyy,10de:xxzz"
update-grub
Add user to libvirt group
usermod -aG libvirt $USER
virt-host-validate qemu
dmesg | grep -i -e DMAR -e IOMMU
(VT-d enabled?)qemu-img create -f qcow2 win11.img 1T
nano ~/win11.xml
virsh create ~/win11.xml
https://github.com/MaxxRK/sGPUpt (Archive)
https://github.com/bryansteiner/gpu-passthrough-tutorial (Archive)
https://github.com/QaidVoid/Complete-Single-GPU-Passthrough (Archive)
https://github.com/ilayna/Single-GPU-passthrough-amd-nvidia (Archive)
https://gitlab.com/risingprismtv/single-gpu-passthrough (Archive)
https://www.reddit.com/r/VFIO/comments/18u9he4/rtx_4070_ti_do_i_need_to_patch_my_vbios_to_do/ (Archive)
https://www.reddit.com/r/unRAID/comments/11jidsf/4070_ti_vm_performance_horrible/ (Archive)
https://www.reddit.com/r/VFIO/comments/1auukyq/laptop_gpu_rtx_4070_passthrough_error_43/ (has example xml) (Archive)
https://www.reddit.com/r/VFIO/comments/m9xktq/if_i_enable_hostpassthrough_i_just_get_a_blue/ (Archive)
https://www.reddit.com/r/VFIO/comments/1eovt8n/buggy_single_gpu_passthrough/ (Archive)
https://www.reddit.com/r/VFIO/comments/113ym50/singledual_gpu_looking_glass_and_multimonitors/ (Archive)
https://www.reddit.com/r/VFIO/comments/8j4iuv/how_can_i_pass_my_gpu_back_to_the_host_after_the/ (Archive)
https://forum.level1techs.com/t/6700xt-windows-vm-drivers-equal-black-screen/191347 (Archive)
https://forum.level1techs.com/t/solved-7900-xtx-code-43-or-how-to-get-7900-xtx-to-work-on-vfio/194395/2 (Archive)
https://stackoverflow.com/questions/64560389/setting-up-pulseaudio-in-qemu