I have the following device: Thinkpad P50, i7-6820HQ + HD530 and Quadro M2000M(GM107GLM), which I'm trying to assign to VM(Windows 7 at the moment).<br><br>I followed several guides on the Internet, primary the one at Arch Wiki.<br><br>My problem is that I can not install drivers in Windows. NVIDIA driver says that it can't find compatible device and Windows Device Manager shows GPU as "Standard VGA Graphics Device" and doesn't allow to install driver manually(says driver is incompatible with current windows version). I tried version 375.63 downloaded from NVIDIA web site. <br><br>I did not check does NVIDIA output something on external monitor or not because I don't have external display at the moment of writing. I will probably do it as soon as I get access to it.<br><br>NVIDIA GPU seems to be wired to HDMI/Display Port, while IGD rules internal LCD screen. I did not manage to keep both cards working and get picture on LCD rendered by NVGPU, so I guess NVGPU renders image and then passed it to IGD which displays it on laptop screen. I wonder though, how does it work when only NVIDIA GPU is enabled in BIOS. <br><br>Here is details of my setup and logs(I use ARCH, kernel version is 4.8.4-1-vfio):<br><br>1. CPU supports VT-d/Vt-x and IOMMU is turned on in kernel parameters trough GRUB. <br>Also ACS patch applied(with pcie_acs_override=downstream)<br><br>$ dmesg|grep -e DMAR -e IOMMU<br>[    0.000000] Warning: PCIe ACS overrides enabled; This may allow non-IOMMU protected peer-to-peer DMA<br>[    0.000000] ACPI: DMAR 0x0000000057FFD000 0000A8 (v01 LENOVO TP-N1E   00001300 PTEC 00000002)<br>[    0.000000] DMAR: IOMMU enabled<br>[    0.067448] DMAR: Host address width 39<br>[    0.067449] DMAR: DRHD base: 0x000000fed90000 flags: 0x0<br>[    0.067453] DMAR: dmar0: reg_base_addr fed90000 ver 1:0 cap 1c0000c40660462 ecap 7e3ff0505e<br>[    0.067454] DMAR: DRHD base: 0x000000fed91000 flags: 0x1<br>[    0.067457] DMAR: dmar1: reg_base_addr fed91000 ver 1:0 cap d2008c40660462 ecap f050da<br>[    0.067458] DMAR: RMRR base: 0x00000057eaa000 end: 0x00000057ec9fff<br>[    0.067458] DMAR: RMRR base: 0x0000005a000000 end: 0x0000005e7fffff<br>[    0.067460] DMAR-IR: IOAPIC id 2 under DRHD base  0xfed91000 IOMMU 1<br>[    0.067460] DMAR-IR: HPET id 0 under DRHD base 0xfed91000<br>[    0.067461] DMAR-IR: x2apic is disabled because BIOS sets x2apic opt out bit.<br>[    0.067462] DMAR-IR: Use 'intremap=no_x2apic_optout' to override the BIOS setting.<br>[    0.068839] DMAR-IR: Enabled IRQ remapping in xapic mode<br>[    1.235189] DMAR: No ATSR found<br>[    1.235676] DMAR: dmar0: Using Queued invalidation<br>[    1.235680] DMAR: dmar1: Using Queued invalidation<br>[    1.236014] DMAR: Setting RMRR:<br>[    1.236048] DMAR: Setting identity map for device 0000:00:02.0 [0x5a000000 - 0x5e7fffff]<br>[    1.236079] DMAR: Setting identity map for device 0000:00:14.0 [0x57eaa000 - 0x57ec9fff]<br>[    1.236084] DMAR: Prepare 0-16MiB unity mapping for LPC<br>[    1.236111] DMAR: Setting identity map for device 0000:00:1f.0 [0x0 - 0xffffff]<br>[    1.236120] DMAR: Intel(R) Virtualization Technology for Directed I/O<br>[    2.459809] vboxpci: IOMMU found<br><br>3. IOMMU group for GPU:<br><br>IOMMU group 13<br>01:00.0 VGA compatible controller [0300]: NVIDIA Corporation GM107GLM [Quadro M2000M] [10de:13b0] (rev a2)<br><br>4. GPU is isolated with vfio, nvidia driver was unstalled:<br><br>$ lspci -nnk -d 10de:13b0<br>01:00.0 VGA compatible controller [0300]: NVIDIA Corporation GM107GLM [Quadro M2000M] [10de:13b0] (rev a2)<br> Kernel driver in use: vfio-pci<br> Kernel modules: nouveau<br>---<br>$ cat /etc/modprobe.d/vfio.conf <br>#options vfio-pci ids=8086:191b<br>options vfio-pci ids=10de:13b0<br>---<br>$ head /etc/mkinitcpio.conf <br># vim:set ft=sh<br># MODULES<br># The following modules are loaded before any boot hooks are<br># run.  Advanced users may wish to specify all system modules<br># in this array.  For instance:<br>#     MODULES="piix ide_disk reiserfs"<br>MODULES="vfio vfio_iommu_type1 vfio_pci vfio_virqfd"<br>---<br>GRUB command line:<br><br>GRUB_CMDLINE_LINUX_DEFAULT="quiet intel_iommu=on pcie_acs_override=downstream video=efifb:off,vesafb:off,simplefb:off nouveau.vbios=ACPI"<br><br><br>5. I use GPU ROM file, which I got using the followng guide: https://lists.freedesktop.org/archives/nouveau/2011-October/009368.html<br>I get exactly the same error code as given as example in the message by link above, and used ACPI to retrive ROM. ROM file is attached here: https://anse.me/owncloud/index.php/s/DWBLpxVNz4tfGE1<br><br>6. Finally, my VM config. RDP is enabled in Windows 7 and I connect with it.<br><br><domain type='kvm'><br><name>win7-2</name><br><uuid>c855578d-5572-4fa1-ab81-bab382c2c853</uuid><br><memory unit='KiB'>8388608</memory><br><currentMemory unit='KiB'>8388608</currentMemory><br><vcpu placement='static'>8</vcpu><br><os><br>  <type arch='x86_64' machine='pc-i440fx-2.7'>hvm</type><br>  <loader readonly='yes' type='pflash'>/usr/share/ovmf/x64/ovmf_x64.bin</loader><br>  <nvram>/var/lib/libvirt/qemu/nvram/win7-2_VARS.fd</nvram><br>  <boot dev='hd'/><br>  <bootmenu enable='yes'/><br></os><br><features><br>  <acpi/><br>  <apic/><br>  <kvm><br>    <hidden state='on'/><br>  </kvm><br>  <vmport state='off'/><br></features><br><cpu mode='host-passthrough'><br>  <topology sockets='1' cores='4' threads='2'/><br></cpu><br><clock offset='localtime'><br>  <timer name='rtc' tickpolicy='catchup'/><br>  <timer name='pit' tickpolicy='delay'/><br>  <timer name='hpet' present='no'/><br></clock><br><on_poweroff>destroy</on_poweroff><br><on_reboot>restart</on_reboot><br><on_crash>restart</on_crash><br><pm><br>  <suspend-to-mem enabled='no'/><br>  <suspend-to-disk enabled='no'/><br></pm><br><devices><br>  <emulator>/usr/sbin/qemu-system-x86_64</emulator><br>  <disk type='file' device='disk'><br>    <driver name='qemu' type='qcow2'/><br>    <source file='/var/lib/libvirt/images/win7-2-1.qcow2'/><br>    <target dev='sda' bus='sata'/><br>    <address type='drive' controller='0' bus='0' target='0' unit='0'/><br>  </disk><br>  <disk type='file' device='cdrom'><br>    <driver name='qemu' type='raw'/><br>    <source file='/home/andrey/Documents/vcd/en_windows_7_ultimate_with_sp1_x64_dvd_u_677332.iso'/><br>    <target dev='sdb' bus='sata'/><br>    <readonly/><br>    <address type='drive' controller='0' bus='0' target='0' unit='1'/><br>  </disk><br>  <controller type='usb' index='0' model='ich9-ehci1'><br>    <address type='pci' domain='0x0000' bus='0x00' slot='0x06' function='0x7'/><br>  </controller><br>  <controller type='usb' index='0' model='ich9-uhci1'><br>    <master startport='0'/><br>    <address type='pci' domain='0x0000' bus='0x00' slot='0x06' function='0x0' multifunction='on'/><br>  </controller><br>  <controller type='usb' index='0' model='ich9-uhci2'><br>    <master startport='2'/><br>    <address type='pci' domain='0x0000' bus='0x00' slot='0x06' function='0x1'/><br>  </controller><br>  <controller type='usb' index='0' model='ich9-uhci3'><br>    <master startport='4'/><br>    <address type='pci' domain='0x0000' bus='0x00' slot='0x06' function='0x2'/><br>  </controller><br>  <controller type='virtio-serial' index='0'><br>    <address type='pci' domain='0x0000' bus='0x00' slot='0x05' function='0x0'/><br>  </controller><br>  <controller type='pci' index='0' model='pci-root'/><br>  <controller type='pci' index='1' model='pci-bridge'><br>    <model name='pci-bridge'/><br>    <target chassisNr='1'/><br>    <address type='pci' domain='0x0000' bus='0x00' slot='0x02' function='0x0'/><br>  </controller><br>  <controller type='sata' index='0'><br>    <address type='pci' domain='0x0000' bus='0x00' slot='0x07' function='0x0'/><br>  </controller><br>  <interface type='network'><br>    <mac address='52:54:00:38:ac:a3'/><br>    <source network='default'/><br>    <model type='rtl8139'/><br>    <address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/><br>  </interface><br>  <serial type='pty'><br>    <target port='0'/><br>  </serial><br>  <console type='pty'><br>    <target type='serial' port='0'/><br>  </console><br>  <channel type='spicevmc'><br>    <target type='virtio' name='com.redhat.spice.0'/><br>    <address type='virtio-serial' controller='0' bus='0' port='1'/><br>  </channel><br>  <input type='mouse' bus='ps2'/><br>  <input type='keyboard' bus='ps2'/><br>  <sound model='ich6'><br>    <address type='pci' domain='0x0000' bus='0x00' slot='0x04' function='0x0'/><br>  </sound><br>  <hostdev mode='subsystem' type='pci' managed='yes'><br>    <source><br>      <address domain='0x0000' bus='0x01' slot='0x00' function='0x0'/><br>    </source><br>    <rom bar='on' file='/home/andrey/vbios.rom'/><br>    <address type='pci' domain='0x0000' bus='0x00' slot='0x09' function='0x0'/><br>  </hostdev><br>  <redirdev bus='usb' type='spicevmc'><br>    <address type='usb' bus='0' port='1'/><br>  </redirdev><br>  <redirdev bus='usb' type='spicevmc'><br>    <address type='usb' bus='0' port='2'/><br>  </redirdev><br>  <memballoon model='virtio'><br>    <address type='pci' domain='0x0000' bus='0x00' slot='0x08' function='0x0'/><br>  </memballoon><br></devices><br></domain><br> <br>Hope I did not forget anything. Thanks in advance to any help/advice!<br><br>-Andrey Streltsov<br>