<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"></head><body dir="auto"><div><span></span></div><div><span>Are you sure your qemu supports Kim hidden tag? Try setting manually hyperv features in features tag off and also hypervclock to off...</span></div><div><span><br></span></div><div><span>Posting ps aux | grep kvm will help us a lot to understand :-) </span></div><div><br></div><div><blockquote type="cite"><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin: 0px 0px 0px 0.8ex; border-left-width: 1px; border-left-color: rgb(204, 204, 204); padding-left: 1ex;"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin: 0px 0px 0px 0.8ex; border-left-width: 1px; border-left-color: rgb(204, 204, 204); padding-left: 1ex;"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin: 0px 0px 0px 0.8ex; border-left-width: 1px; border-left-color: rgb(204, 204, 204); padding-left: 1ex;"><div bgcolor="#FFFFFF" text="#000000"><blockquote type="cite"><div dir="ltr"><div><font color="#000000"><span style="background-color: rgba(255, 255, 255, 0);"><hyperv></span></font></div><div><font color="#000000"><span style="background-color: rgba(255, 255, 255, 0);">      <relaxed state='off'/></span></font></div><div><font color="#000000"><span style="background-color: rgba(255, 255, 255, 0);">      <vapic state='off'/></span></font></div><div><font color="#000000"><span style="background-color: rgba(255, 255, 255, 0);">      <spinlocks state='off'/></span></font></div><div><font color="#000000"><span style="background-color: rgba(255, 255, 255, 0);">    </hyperv></span></font></div><div><font color="#000000"><span style="background-color: rgba(255, 255, 255, 0);">  </features></span></font></div><div><br></div><div><div><font color="#000000"><span style="background-color: rgba(255, 255, 255, 0);">  <clock offset='localtime'></span></font></div><div><font color="#000000"><span style="background-color: rgba(255, 255, 255, 0);">    <timer name='hypervclock' present='no'/></span></font></div><div><font color="#000000"><span style="background-color: rgba(255, 255, 255, 0);">    <timer name='rtc' tickpolicy='catchup'/></span></font></div><div><font color="#000000"><span style="background-color: rgba(255, 255, 255, 0);">    <timer name='pit' tickpolicy='delay'/></span></font></div><div><font color="#000000"><span style="background-color: rgba(255, 255, 255, 0);">    <timer name='hpet' present='no'/></span></font></div><div><font color="#000000"><span style="background-color: rgba(255, 255, 255, 0);">  </clock></span></font></div></div></div></blockquote></div></blockquote></div></blockquote></div></blockquote></div></div></blockquote><span></span><br><span>Sent from my iPhone</span><br><span></span><br><blockquote type="cite"><span>On 16 Sep 2015, at 16:10, Mogliii <<a href="mailto:mogliii@gmx.net">mogliii@gmx.net</a>> wrote:</span><br></blockquote><blockquote type="cite"><span></span><br></blockquote><blockquote type="cite"><span>Hello,</span><br></blockquote><blockquote type="cite"><span></span><br></blockquote><blockquote type="cite"><span>I have been trying to get vga passthrough working for quite some time</span><br></blockquote><blockquote type="cite"><span>now. I even ordered a new graphics card just for that purpose.</span><br></blockquote><blockquote type="cite"><span></span><br></blockquote><blockquote type="cite"><span>I explain my setup and configuration below.</span><br></blockquote><blockquote type="cite"><span></span><br></blockquote><blockquote type="cite"><span>My current problem: I can install Windows 8.1 with uefi (gpt partition</span><br></blockquote><blockquote type="cite"><span>layout) and using virt-manager. Then, I shutdown the VM, remove the</span><br></blockquote><blockquote type="cite"><span>spice and graphics, and add the pcie MSI GTX 750 Ti Gaming (it has a</span><br></blockquote><blockquote type="cite"><span>legacy and uefi bios; uefi bios selected by physical switch). When I</span><br></blockquote><blockquote type="cite"><span>then boot-up the VM, I see the OVMF bios on the physical screen attached</span><br></blockquote><blockquote type="cite"><span>to the GTX750 Ti (sometimes I get graphics glitches i.e. all white) and</span><br></blockquote><blockquote type="cite"><span>Windows 8.1 boots into 800x600. I see that a Nvidia GTX750Ti is</span><br></blockquote><blockquote type="cite"><span>recognized in the device manager. After installing driver (I tried</span><br></blockquote><blockquote type="cite"><span>335.23, 340.52, 341.44 and most recent) the gpu is shown with yellow</span><br></blockquote><blockquote type="cite"><span>exclamation mark with error code 43 and I have to restart. After</span><br></blockquote><blockquote type="cite"><span>restart, I see again the bios and the boot splash, but then the screen</span><br></blockquote><blockquote type="cite"><span>goes into power save mode because it does not get any signal just when</span><br></blockquote><blockquote type="cite"><span>the login screen is supposed to appear.</span><br></blockquote><blockquote type="cite"><span>I can login via vnc and see that the gpu has error code 43.</span><br></blockquote><blockquote type="cite"><span>De-installing the driver and restarting I will go back to a 800x600</span><br></blockquote><blockquote type="cite"><span>desktop on my physical screen.</span><br></blockquote><blockquote type="cite"><span></span><br></blockquote><blockquote type="cite"><span>Any help with my setup would be immensely appreciated. I have another</span><br></blockquote><blockquote type="cite"><span>spare ASUS HD6570, but it does not have uefi bios. I am not sure if I</span><br></blockquote><blockquote type="cite"><span>would need i915 patch in that case? Does that patch only apply to Intel</span><br></blockquote><blockquote type="cite"><span>CPUs?</span><br></blockquote><blockquote type="cite"><span></span><br></blockquote><blockquote type="cite"><span>Is the 00:02.2 pci device the problem?</span><br></blockquote><blockquote type="cite"><span></span><br></blockquote><blockquote type="cite"><span>I would really appreciate any hint as I currently exhausted all options</span><br></blockquote><blockquote type="cite"><span>I see and I would like to avoid spending more money on video cards that</span><br></blockquote><blockquote type="cite"><span>I'm not sure I can even use.</span><br></blockquote><blockquote type="cite"><span></span><br></blockquote><blockquote type="cite"><span>==========================</span><br></blockquote><blockquote type="cite"><span>SETUP</span><br></blockquote><blockquote type="cite"><span>=========</span><br></blockquote><blockquote type="cite"><span></span><br></blockquote><blockquote type="cite"><span>[[[ 1. Physical setup</span><br></blockquote><blockquote type="cite"><span>Asus A88x-PRO</span><br></blockquote><blockquote type="cite"><span>AMD A10-7850K (on-board GPU used for linux host with radeon driver</span><br></blockquote><blockquote type="cite"><span>(fglrx not installed))</span><br></blockquote><blockquote type="cite"><span>12 GB memory</span><br></blockquote><blockquote type="cite"><span>MSI GTX 750 Ti Gaming (bios can be switched between legacy/uefi by</span><br></blockquote><blockquote type="cite"><span>hardware switch; using uefi)</span><br></blockquote><blockquote type="cite"><span></span><br></blockquote><blockquote type="cite"><span>GPU is installed in middle pcie 16x slot (black, not golden) due to</span><br></blockquote><blockquote type="cite"><span>iommu grouping (see below)</span><br></blockquote><blockquote type="cite"><span></span><br></blockquote><blockquote type="cite"><span></span><br></blockquote><blockquote type="cite"><span>[[[ 2. OS</span><br></blockquote><blockquote type="cite"><span>UBuntu 15.04 64 bit, unpatched</span><br></blockquote><blockquote type="cite"><span>$ uname -a</span><br></blockquote><blockquote type="cite"><span>Linux host 3.19.0-28-generic #30-Ubuntu SMP Mon Aug 31 15:52:51 UTC 2015</span><br></blockquote><blockquote type="cite"><span>x86_64 x86_64 x86_64 GNU/Linux</span><br></blockquote><blockquote type="cite"><span></span><br></blockquote><blockquote type="cite"><span></span><br></blockquote><blockquote type="cite"><span>[[[ 3. Relevant packages (not sure if these are all)</span><br></blockquote><blockquote type="cite"><span>virt-manager 1:1.2.1-1~getdeb1 (get deb ppa)</span><br></blockquote><blockquote type="cite"><span>qemu 1:2.2+dfsg-5expubuntu9.4</span><br></blockquote><blockquote type="cite"><span>libvirt-bin 1.2.12-0ubuntu14.2</span><br></blockquote><blockquote type="cite"><span>qemu-kvm 1:2.2+dfsg-5expubuntu9.4</span><br></blockquote><blockquote type="cite"><span></span><br></blockquote><blockquote type="cite"><span>[[[ 4. Bios settings</span><br></blockquote><blockquote type="cite"><span>Set to boot from on board GPU. AMD-V and IOMMU activated. Legacy boot</span><br></blockquote><blockquote type="cite"><span>for ubuntu host</span><br></blockquote><blockquote type="cite"><span></span><br></blockquote><blockquote type="cite"><span>[[[ 5. iommu grouping (iommu.sh output)</span><br></blockquote><blockquote type="cite"><span>### Group 2 ###</span><br></blockquote><blockquote type="cite"><span>   00:02.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Device 1424</span><br></blockquote><blockquote type="cite"><span>   00:02.2 PCI bridge: Advanced Micro Devices, Inc. [AMD] Device 1425</span><br></blockquote><blockquote type="cite"><span>   01:00.0 VGA compatible controller: NVIDIA Corporation GM107 [GeForce</span><br></blockquote><blockquote type="cite"><span>GTX 750 Ti] (rev a2)</span><br></blockquote><blockquote type="cite"><span>   01:00.1 Audio device: NVIDIA Corporation Device 0fbc (rev a1)</span><br></blockquote><blockquote type="cite"><span></span><br></blockquote><blockquote type="cite"><span>[[[ 6. pci identifier</span><br></blockquote><blockquote type="cite"><span>01:00.0 VGA compatible controller [0300]: NVIDIA Corporation GM107</span><br></blockquote><blockquote type="cite"><span>[GeForce GTX 750 Ti] [10de:1380] (rev a2)</span><br></blockquote><blockquote type="cite"><span>   Subsystem: Micro-Star International Co., Ltd. [MSI] Device [1462:3102]</span><br></blockquote><blockquote type="cite"><span>   Kernel driver in use: pci-stub</span><br></blockquote><blockquote type="cite"><span>01:00.1 Audio device [0403]: NVIDIA Corporation Device [10de:0fbc] (rev a1)</span><br></blockquote><blockquote type="cite"><span>   Subsystem: Micro-Star International Co., Ltd. [MSI] Device [1462:3102]</span><br></blockquote><blockquote type="cite"><span>   Kernel driver in use: pci-stub</span><br></blockquote><blockquote type="cite"><span></span><br></blockquote><blockquote type="cite"><span>[[[ 7. /proc/cmdline</span><br></blockquote><blockquote type="cite"><span>BOOT_IMAGE=/vmlinuz-3.19.0-28-generic root=/dev/mapper/main-root ro</span><br></blockquote><blockquote type="cite"><span>rootflags=subvol=@ quiet splash nomdmonddf nomdmonisw amd_iommu=on</span><br></blockquote><blockquote type="cite"><span>iommu=pt vfio_iommu_type1.allow_unsafe_interrupts=1</span><br></blockquote><blockquote type="cite"><span>pci-stub.ids=10de:0fbc,10de:1380 vt.handoff=7</span><br></blockquote><blockquote type="cite"><span></span><br></blockquote><blockquote type="cite"><span>[[[ 8. /etc/initramfs-tools/modules</span><br></blockquote><blockquote type="cite"><span>pci_stub ids=10de:0fbc,10de:1380</span><br></blockquote><blockquote type="cite"><span></span><br></blockquote><blockquote type="cite"><span>[[[ 9. /etc/modules</span><br></blockquote><blockquote type="cite"><span>lp</span><br></blockquote><blockquote type="cite"><span>rtc</span><br></blockquote><blockquote type="cite"><span>pci_stub</span><br></blockquote><blockquote type="cite"><span>vfio</span><br></blockquote><blockquote type="cite"><span>vfio_iommu_type1</span><br></blockquote><blockquote type="cite"><span>vfio_pci</span><br></blockquote><blockquote type="cite"><span>kvm</span><br></blockquote><blockquote type="cite"><span>kvm_amd</span><br></blockquote><blockquote type="cite"><span></span><br></blockquote><blockquote type="cite"><span>[[[ 10. # dmseg | grep pci-stub</span><br></blockquote><blockquote type="cite"><span>[    1.263269] pci-stub: add 10DE:0FBC sub=FFFFFFFF:FFFFFFFF</span><br></blockquote><blockquote type="cite"><span>cls=00000000/00000000</span><br></blockquote><blockquote type="cite"><span>[    1.263287] pci-stub 0000:01:00.1: claimed by stub</span><br></blockquote><blockquote type="cite"><span>[    1.263296] pci-stub: add 10DE:1380 sub=FFFFFFFF:FFFFFFFF</span><br></blockquote><blockquote type="cite"><span>cls=00000000/00000000</span><br></blockquote><blockquote type="cite"><span>[    1.263304] pci-stub 0000:01:00.0: claimed by stub</span><br></blockquote><blockquote type="cite"><span></span><br></blockquote><blockquote type="cite"><span>[[[ 11. /usr/windows.sh (executed before running vm. Afterwards lspci</span><br></blockquote><blockquote type="cite"><span>-nnk shows "vfio-pci" as kernel driver in use for 01:00.0 and 01:00.1)</span><br></blockquote><blockquote type="cite"><span>#!/bin/bash</span><br></blockquote><blockquote type="cite"><span></span><br></blockquote><blockquote type="cite"><span>configfile=/etc/vfio_pci1.cfg</span><br></blockquote><blockquote type="cite"><span>vfiobind() {</span><br></blockquote><blockquote type="cite"><span>   dev="$1"</span><br></blockquote><blockquote type="cite"><span>       vendor=$(cat /sys/bus/pci/devices/$dev/vendor)</span><br></blockquote><blockquote type="cite"><span>       device=$(cat /sys/bus/pci/devices/$dev/device)</span><br></blockquote><blockquote type="cite"><span>       if [ -e /sys/bus/pci/devices/$dev/driver ]; then</span><br></blockquote><blockquote type="cite"><span>               echo $dev > /sys/bus/pci/devices/$dev/driver/unbind</span><br></blockquote><blockquote type="cite"><span>       fi</span><br></blockquote><blockquote type="cite"><span>       echo $vendor $device > /sys/bus/pci/drivers/vfio-pci/new_id</span><br></blockquote><blockquote type="cite"><span>  }</span><br></blockquote><blockquote type="cite"><span>modprobe vfio-pci</span><br></blockquote><blockquote type="cite"><span>cat $configfile | while read line;do</span><br></blockquote><blockquote type="cite"><span>   echo $line | grep ^# >/dev/null 2>&1 && continue</span><br></blockquote><blockquote type="cite"><span>       vfiobind $line</span><br></blockquote><blockquote type="cite"><span>done</span><br></blockquote><blockquote type="cite"><span>exit 0</span><br></blockquote><blockquote type="cite"><span></span><br></blockquote><blockquote type="cite"><span>[[[ 12. /etc/vfio_pci1.cfg</span><br></blockquote><blockquote type="cite"><span>0000:01:00.0</span><br></blockquote><blockquote type="cite"><span>0000:01:00.1</span><br></blockquote><blockquote type="cite"><span></span><br></blockquote><blockquote type="cite"><span>[[[ 13. OVMF-bios</span><br></blockquote><blockquote type="cite"><span>Got from sourceforge</span><br></blockquote><blockquote type="cite"><span>(edk2.git-ovmf-x64-0-20150910.b1206.g5abc2a7.noarch.rpm) and extracted.</span><br></blockquote><blockquote type="cite"><span>Then, made individual copy of OVMF-pure-efi.fd (md5</span><br></blockquote><blockquote type="cite"><span>fbb13f2d4be2f9d72472628f885f5cb4 ) for VM.</span><br></blockquote><blockquote type="cite"><span></span><br></blockquote><blockquote type="cite"><span>[[[ 14. Created VM in virt-manager using the following configuration</span><br></blockquote><blockquote type="cite"><span>(configuration shown after installation, i.e. no cdroms, but before</span><br></blockquote><blockquote type="cite"><span>attaching pci)</span><br></blockquote><blockquote type="cite"><span><domain type='kvm'></span><br></blockquote><blockquote type="cite"><span> <name>win81</name></span><br></blockquote><blockquote type="cite"><span> <uuid>redacted</uuid></span><br></blockquote><blockquote type="cite"><span> <memory unit='KiB'>4194304</memory></span><br></blockquote><blockquote type="cite"><span> <currentMemory unit='KiB'>4194304</currentMemory></span><br></blockquote><blockquote type="cite"><span> <vcpu placement='static'>2</vcpu></span><br></blockquote><blockquote type="cite"><span> <os></span><br></blockquote><blockquote type="cite"><span>   <type arch='x86_64' machine='pc-i440fx-utopic'>hvm</type></span><br></blockquote><blockquote type="cite"><span>   <loader type='rom'>/usr/share/ovmf/OVMF-pure-efi_win81.fd</loader></span><br></blockquote><blockquote type="cite"><span>   <boot dev='hd'/></span><br></blockquote><blockquote type="cite"><span> </os></span><br></blockquote><blockquote type="cite"><span> <features></span><br></blockquote><blockquote type="cite"><span>   <acpi/></span><br></blockquote><blockquote type="cite"><span>   <apic/></span><br></blockquote><blockquote type="cite"><span>   <pae/></span><br></blockquote><blockquote type="cite"><span>   <kvm></span><br></blockquote><blockquote type="cite"><span>     <hidden state='on'/></span><br></blockquote><blockquote type="cite"><span>   </kvm></span><br></blockquote><blockquote type="cite"><span> </features></span><br></blockquote><blockquote type="cite"><span> <cpu mode='host-passthrough'></span><br></blockquote><blockquote type="cite"><span> </cpu></span><br></blockquote><blockquote type="cite"><span> <clock offset='localtime'></span><br></blockquote><blockquote type="cite"><span>   <timer name='rtc' tickpolicy='catchup'/></span><br></blockquote><blockquote type="cite"><span>   <timer name='pit' tickpolicy='delay'/></span><br></blockquote><blockquote type="cite"><span> </clock></span><br></blockquote><blockquote type="cite"><span> <on_poweroff>destroy</on_poweroff></span><br></blockquote><blockquote type="cite"><span> <on_reboot>restart</on_reboot></span><br></blockquote><blockquote type="cite"><span> <on_crash>restart</on_crash></span><br></blockquote><blockquote type="cite"><span> <pm></span><br></blockquote><blockquote type="cite"><span>   <suspend-to-mem enabled='no'/></span><br></blockquote><blockquote type="cite"><span>   <suspend-to-disk enabled='no'/></span><br></blockquote><blockquote type="cite"><span> </pm></span><br></blockquote><blockquote type="cite"><span> <devices></span><br></blockquote><blockquote type="cite"><span>   <emulator>/usr/bin/qemu-system-x86_64</emulator></span><br></blockquote><blockquote type="cite"><span>   <disk type='block' device='disk'></span><br></blockquote><blockquote type="cite"><span>     <driver name='qemu' type='raw' cache='none' io='native'/></span><br></blockquote><blockquote type="cite"><span>     <source dev='/dev/main/Win7xen'/></span><br></blockquote><blockquote type="cite"><span>     <target dev='vda' bus='virtio'/></span><br></blockquote><blockquote type="cite"><span>     <address type='pci' domain='0x0000' bus='0x00' slot='0x08'</span><br></blockquote><blockquote type="cite"><span>function='0x0'/></span><br></blockquote><blockquote type="cite"><span>   </disk></span><br></blockquote><blockquote type="cite"><span>   <controller type='usb' index='0' model='ich9-ehci1'></span><br></blockquote><blockquote type="cite"><span>     <address type='pci' domain='0x0000' bus='0x00' slot='0x06'</span><br></blockquote><blockquote type="cite"><span>function='0x7'/></span><br></blockquote><blockquote type="cite"><span>   </controller></span><br></blockquote><blockquote type="cite"><span>   <controller type='usb' index='0' model='ich9-uhci1'></span><br></blockquote><blockquote type="cite"><span>     <master startport='0'/></span><br></blockquote><blockquote type="cite"><span>     <address type='pci' domain='0x0000' bus='0x00' slot='0x06'</span><br></blockquote><blockquote type="cite"><span>function='0x0' multifunction='on'/></span><br></blockquote><blockquote type="cite"><span>   </controller></span><br></blockquote><blockquote type="cite"><span>   <controller type='usb' index='0' model='ich9-uhci2'></span><br></blockquote><blockquote type="cite"><span>     <master startport='2'/></span><br></blockquote><blockquote type="cite"><span>     <address type='pci' domain='0x0000' bus='0x00' slot='0x06'</span><br></blockquote><blockquote type="cite"><span>function='0x1'/></span><br></blockquote><blockquote type="cite"><span>   </controller></span><br></blockquote><blockquote type="cite"><span>   <controller type='usb' index='0' model='ich9-uhci3'></span><br></blockquote><blockquote type="cite"><span>     <master startport='4'/></span><br></blockquote><blockquote type="cite"><span>     <address type='pci' domain='0x0000' bus='0x00' slot='0x06'</span><br></blockquote><blockquote type="cite"><span>function='0x2'/></span><br></blockquote><blockquote type="cite"><span>   </controller></span><br></blockquote><blockquote type="cite"><span>   <controller type='pci' index='0' model='pci-root'/></span><br></blockquote><blockquote type="cite"><span>   <controller type='virtio-serial' index='0'></span><br></blockquote><blockquote type="cite"><span>     <address type='pci' domain='0x0000' bus='0x00' slot='0x05'</span><br></blockquote><blockquote type="cite"><span>function='0x0'/></span><br></blockquote><blockquote type="cite"><span>   </controller></span><br></blockquote><blockquote type="cite"><span>   <interface type='bridge'></span><br></blockquote><blockquote type="cite"><span>     <mac address='52:54:00:ab:b6:10'/></span><br></blockquote><blockquote type="cite"><span>     <source bridge='br1'/></span><br></blockquote><blockquote type="cite"><span>     <model type='virtio'/></span><br></blockquote><blockquote type="cite"><span>     <address type='pci' domain='0x0000' bus='0x00' slot='0x04'</span><br></blockquote><blockquote type="cite"><span>function='0x0'/></span><br></blockquote><blockquote type="cite"><span>   </interface></span><br></blockquote><blockquote type="cite"><span>   <input type='mouse' bus='ps2'/></span><br></blockquote><blockquote type="cite"><span>   <input type='keyboard' bus='ps2'/></span><br></blockquote><blockquote type="cite"><span>   <graphics type='spice' autoport='yes'/></span><br></blockquote><blockquote type="cite"><span>   <video></span><br></blockquote><blockquote type="cite"><span>     <model type='qxl' ram='65536' vram='65536' vgamem='16384' heads='1'/></span><br></blockquote><blockquote type="cite"><span>     <address type='pci' domain='0x0000' bus='0x00' slot='0x02'</span><br></blockquote><blockquote type="cite"><span>function='0x0'/></span><br></blockquote><blockquote type="cite"><span>   </video></span><br></blockquote><blockquote type="cite"><span>   <hostdev mode='subsystem' type='usb' managed='yes'></span><br></blockquote><blockquote type="cite"><span>     <source></span><br></blockquote><blockquote type="cite"><span>       <vendor id='0x0603'/></span><br></blockquote><blockquote type="cite"><span>       <product id='0x1605'/></span><br></blockquote><blockquote type="cite"><span>     </source></span><br></blockquote><blockquote type="cite"><span>   </hostdev></span><br></blockquote><blockquote type="cite"><span>   <hostdev mode='subsystem' type='usb' managed='yes'></span><br></blockquote><blockquote type="cite"><span>     <source></span><br></blockquote><blockquote type="cite"><span>       <vendor id='0x05ac'/></span><br></blockquote><blockquote type="cite"><span>       <product id='0x1006'/></span><br></blockquote><blockquote type="cite"><span>     </source></span><br></blockquote><blockquote type="cite"><span>   </hostdev></span><br></blockquote><blockquote type="cite"><span>   <hostdev mode='subsystem' type='usb' managed='yes'></span><br></blockquote><blockquote type="cite"><span>     <source></span><br></blockquote><blockquote type="cite"><span>       <vendor id='0x05ac'/></span><br></blockquote><blockquote type="cite"><span>       <product id='0x024f'/></span><br></blockquote><blockquote type="cite"><span>     </source></span><br></blockquote><blockquote type="cite"><span>   </hostdev></span><br></blockquote><blockquote type="cite"><span>   <memballoon model='virtio'></span><br></blockquote><blockquote type="cite"><span>     <address type='pci' domain='0x0000' bus='0x00' slot='0x07'</span><br></blockquote><blockquote type="cite"><span>function='0x0'/></span><br></blockquote><blockquote type="cite"><span>   </memballoon></span><br></blockquote><blockquote type="cite"><span> </devices></span><br></blockquote><blockquote type="cite"><span></domain></span><br></blockquote><blockquote type="cite"><span></span><br></blockquote><blockquote type="cite"><span>[[[ 15. After installation and installation of updates, shut down the VM</span><br></blockquote><blockquote type="cite"><span></span><br></blockquote><blockquote type="cite"><span>[[[ 16. Attached PCI devices and removed video and display spice. Below</span><br></blockquote><blockquote type="cite"><span>is virsh configuration after attaching pcie passthrough.</span><br></blockquote><blockquote type="cite"><span><domain type='kvm'></span><br></blockquote><blockquote type="cite"><span> <name>win81</name></span><br></blockquote><blockquote type="cite"><span> <uuid>redacted</uuid></span><br></blockquote><blockquote type="cite"><span> <memory unit='KiB'>4194304</memory></span><br></blockquote><blockquote type="cite"><span> <currentMemory unit='KiB'>4194304</currentMemory></span><br></blockquote><blockquote type="cite"><span> <vcpu placement='static'>2</vcpu></span><br></blockquote><blockquote type="cite"><span> <os></span><br></blockquote><blockquote type="cite"><span>   <type arch='x86_64' machine='pc-i440fx-utopic'>hvm</type></span><br></blockquote><blockquote type="cite"><span>   <loader type='rom'>/usr/share/ovmf/OVMF-pure-efi_win81.fd</loader></span><br></blockquote><blockquote type="cite"><span>   <boot dev='hd'/></span><br></blockquote><blockquote type="cite"><span> </os></span><br></blockquote><blockquote type="cite"><span> <features></span><br></blockquote><blockquote type="cite"><span>   <acpi/></span><br></blockquote><blockquote type="cite"><span>   <apic/></span><br></blockquote><blockquote type="cite"><span>   <pae/></span><br></blockquote><blockquote type="cite"><span>   <kvm></span><br></blockquote><blockquote type="cite"><span>     <hidden state='on'/></span><br></blockquote><blockquote type="cite"><span>   </kvm></span><br></blockquote><blockquote type="cite"><span> </features></span><br></blockquote><blockquote type="cite"><span> <cpu mode='host-passthrough'></span><br></blockquote><blockquote type="cite"><span> </cpu></span><br></blockquote><blockquote type="cite"><span> </clock></span><br></blockquote><blockquote type="cite"><span> <on_poweroff>destroy</on_poweroff></span><br></blockquote><blockquote type="cite"><span> <on_reboot>restart</on_reboot></span><br></blockquote><blockquote type="cite"><span> <on_crash>restart</on_crash></span><br></blockquote><blockquote type="cite"><span> <pm></span><br></blockquote><blockquote type="cite"><span>   <suspend-to-mem enabled='no'/></span><br></blockquote><blockquote type="cite"><span>   <suspend-to-disk enabled='no'/></span><br></blockquote><blockquote type="cite"><span> </pm></span><br></blockquote><blockquote type="cite"><span> <devices></span><br></blockquote><blockquote type="cite"><span>   <emulator>/usr/bin/qemu-system-x86_64</emulator></span><br></blockquote><blockquote type="cite"><span>   <disk type='block' device='disk'></span><br></blockquote><blockquote type="cite"><span>     <driver name='qemu' type='raw' cache='none' io='native'/></span><br></blockquote><blockquote type="cite"><span>     <source dev='/dev/main/Win7xen'/></span><br></blockquote><blockquote type="cite"><span>     <target dev='vda' bus='virtio'/></span><br></blockquote><blockquote type="cite"><span>     <address type='pci' domain='0x0000' bus='0x00' slot='0x08'</span><br></blockquote><blockquote type="cite"><span>function='0x0'/></span><br></blockquote><blockquote type="cite"><span>   </disk></span><br></blockquote><blockquote type="cite"><span>   <controller type='usb' index='0' model='ich9-ehci1'></span><br></blockquote><blockquote type="cite"><span>     <address type='pci' domain='0x0000' bus='0x00' slot='0x06'</span><br></blockquote><blockquote type="cite"><span>function='0x7'/></span><br></blockquote><blockquote type="cite"><span>   </controller></span><br></blockquote><blockquote type="cite"><span>   <controller type='usb' index='0' model='ich9-uhci1'></span><br></blockquote><blockquote type="cite"><span>     <master startport='0'/></span><br></blockquote><blockquote type="cite"><span>     <address type='pci' domain='0x0000' bus='0x00' slot='0x06'</span><br></blockquote><blockquote type="cite"><span>function='0x0' multifunction='on'/></span><br></blockquote><blockquote type="cite"><span>   </controller></span><br></blockquote><blockquote type="cite"><span>   <controller type='usb' index='0' model='ich9-uhci2'></span><br></blockquote><blockquote type="cite"><span>     <master startport='2'/></span><br></blockquote><blockquote type="cite"><span>     <address type='pci' domain='0x0000' bus='0x00' slot='0x06'</span><br></blockquote><blockquote type="cite"><span>function='0x1'/></span><br></blockquote><blockquote type="cite"><span>   </controller></span><br></blockquote><blockquote type="cite"><span>   <controller type='usb' index='0' model='ich9-uhci3'></span><br></blockquote><blockquote type="cite"><span>     <master startport='4'/></span><br></blockquote><blockquote type="cite"><span>     <address type='pci' domain='0x0000' bus='0x00' slot='0x06'</span><br></blockquote><blockquote type="cite"><span>function='0x2'/></span><br></blockquote><blockquote type="cite"><span>   </controller></span><br></blockquote><blockquote type="cite"><span>   <controller type='pci' index='0' model='pci-root'/></span><br></blockquote><blockquote type="cite"><span>   <controller type='virtio-serial' index='0'></span><br></blockquote><blockquote type="cite"><span>     <address type='pci' domain='0x0000' bus='0x00' slot='0x05'</span><br></blockquote><blockquote type="cite"><span>function='0x0'/></span><br></blockquote><blockquote type="cite"><span>   </controller></span><br></blockquote><blockquote type="cite"><span>   <interface type='bridge'></span><br></blockquote><blockquote type="cite"><span>     <mac address='52:54:00:ab:b6:10'/></span><br></blockquote><blockquote type="cite"><span>     <source bridge='br1'/></span><br></blockquote><blockquote type="cite"><span>     <model type='virtio'/></span><br></blockquote><blockquote type="cite"><span>     <address type='pci' domain='0x0000' bus='0x00' slot='0x04'</span><br></blockquote><blockquote type="cite"><span>function='0x0'/></span><br></blockquote><blockquote type="cite"><span>   </interface></span><br></blockquote><blockquote type="cite"><span>   <hostdev mode='subsystem' type='usb' managed='yes'></span><br></blockquote><blockquote type="cite"><span>     <source></span><br></blockquote><blockquote type="cite"><span>       <vendor id='0x0603'/></span><br></blockquote><blockquote type="cite"><span>       <product id='0x1605'/></span><br></blockquote><blockquote type="cite"><span>     </source></span><br></blockquote><blockquote type="cite"><span>   </hostdev></span><br></blockquote><blockquote type="cite"><span>   <hostdev mode='subsystem' type='usb' managed='yes'></span><br></blockquote><blockquote type="cite"><span>     <source></span><br></blockquote><blockquote type="cite"><span>       <vendor id='0x05ac'/></span><br></blockquote><blockquote type="cite"><span>       <product id='0x1006'/></span><br></blockquote><blockquote type="cite"><span>     </source></span><br></blockquote><blockquote type="cite"><span>   </hostdev></span><br></blockquote><blockquote type="cite"><span>   <hostdev mode='subsystem' type='usb' managed='yes'></span><br></blockquote><blockquote type="cite"><span>     <source></span><br></blockquote><blockquote type="cite"><span>       <vendor id='0x05ac'/></span><br></blockquote><blockquote type="cite"><span>       <product id='0x024f'/></span><br></blockquote><blockquote type="cite"><span>     </source></span><br></blockquote><blockquote type="cite"><span>   </hostdev></span><br></blockquote><blockquote type="cite"><span>   <hostdev mode='subsystem' type='pci' managed='yes'></span><br></blockquote><blockquote type="cite"><span>     <source></span><br></blockquote><blockquote type="cite"><span>       <address domain='0x0000' bus='0x01' slot='0x00' function='0x0'/></span><br></blockquote><blockquote type="cite"><span>     </source></span><br></blockquote><blockquote type="cite"><span>     <address type='pci' domain='0x0000' bus='0x00' slot='0x03'</span><br></blockquote><blockquote type="cite"><span>function='0x0'/></span><br></blockquote><blockquote type="cite"><span>   </hostdev></span><br></blockquote><blockquote type="cite"><span>   <hostdev mode='subsystem' type='pci' managed='yes'></span><br></blockquote><blockquote type="cite"><span>     <source></span><br></blockquote><blockquote type="cite"><span>       <address domain='0x0000' bus='0x01' slot='0x00' function='0x1'/></span><br></blockquote><blockquote type="cite"><span>     </source></span><br></blockquote><blockquote type="cite"><span>     <address type='pci' domain='0x0000' bus='0x00' slot='0x09'</span><br></blockquote><blockquote type="cite"><span>function='0x0'/></span><br></blockquote><blockquote type="cite"><span>   </hostdev></span><br></blockquote><blockquote type="cite"><span>   <memballoon model='virtio'></span><br></blockquote><blockquote type="cite"><span>     <address type='pci' domain='0x0000' bus='0x00' slot='0x07'</span><br></blockquote><blockquote type="cite"><span>function='0x0'/></span><br></blockquote><blockquote type="cite"><span>   </memballoon></span><br></blockquote><blockquote type="cite"><span> </devices></span><br></blockquote><blockquote type="cite"><span></domain></span><br></blockquote><blockquote type="cite"><span></span><br></blockquote><blockquote type="cite"><span>[[[ 17. What else did I try</span><br></blockquote><blockquote type="cite"><span>- Different nvidia drivers (see top of email)</span><br></blockquote><blockquote type="cite"><span>- Attaching 00:02.2 as well, but cannot do vfio-pci assignement so failed</span><br></blockquote><blockquote type="cite"><span># virsh nodedev-list --tree</span><br></blockquote><blockquote type="cite"><span> +- pci_0000_00_02_0</span><br></blockquote><blockquote type="cite"><span> +- pci_0000_00_02_2</span><br></blockquote><blockquote type="cite"><span> |   |</span><br></blockquote><blockquote type="cite"><span> |   +- pci_0000_01_00_0</span><br></blockquote><blockquote type="cite"><span> |   +- pci_0000_01_00_1</span><br></blockquote><blockquote type="cite"><span> |    </span><br></blockquote><blockquote type="cite"><span> +- pci_0000_00_03_0</span><br></blockquote><blockquote type="cite"><span></span><br></blockquote><blockquote type="cite"><span># lspci -nnk (extract)</span><br></blockquote><blockquote type="cite"><span>00:02.0 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Device</span><br></blockquote><blockquote type="cite"><span>[1022:1424]</span><br></blockquote><blockquote type="cite"><span>00:02.2 PCI bridge [0604]: Advanced Micro Devices, Inc. [AMD] Device</span><br></blockquote><blockquote type="cite"><span>[1022:1425]</span><br></blockquote><blockquote type="cite"><span>   Kernel driver in use: pcieport</span><br></blockquote><blockquote type="cite"><span></span><br></blockquote><blockquote type="cite"><span>- Reinstall the whole VM with seabios and using the GTX 750 Ti with</span><br></blockquote><blockquote type="cite"><span>legacy bios (physical switch on card). But no picture was shown on</span><br></blockquote><blockquote type="cite"><span>screen after attaching, not even the bios.</span><br></blockquote><blockquote type="cite"><span>- Tried to use q35 emulation, but not successful. It does not work with</span><br></blockquote><blockquote type="cite"><span>ovmf? I.e. I cannot use the qemu:cmd or ioh3420.</span><br></blockquote><blockquote type="cite"><span></span><br></blockquote><blockquote type="cite"><span></span><br></blockquote><blockquote type="cite"><span></span><br></blockquote><blockquote type="cite"><span></span><br></blockquote><blockquote type="cite"><span></span><br></blockquote><blockquote type="cite"><span>_______________________________________________</span><br></blockquote><blockquote type="cite"><span>vfio-users mailing list</span><br></blockquote><blockquote type="cite"><span><a href="mailto:vfio-users@redhat.com">vfio-users@redhat.com</a></span><br></blockquote><blockquote type="cite"><span><a href="https://www.redhat.com/mailman/listinfo/vfio-users">https://www.redhat.com/mailman/listinfo/vfio-users</a></span><br></blockquote></div></body></html>