<div dir="ltr"><div><div><div><div><div><div>Hi,<br><br></div>I have working vm with passedthrough GTX 980 Ti. I run it with command below.<br><br><span class="gmail-gI"><span></span></span>QEMU_ALSA_DAC_BUFFER_SIZE=1881 QEMU_ALSA_DAC_PERIOD_SIZE=940 QEMU_AUDIO_DRV=alsa exec \<br>qemu-system-x86_64 \<br>  -enable-kvm \<br>  -smp cores=2,threads=2 \<br>  -m 12G \<br>  -cpu host,kvm=off \<br>  -vga none \<br>  -usb -usbdevice host:046d:c328 \<br>  -nographic \<br>  -usb -usbdevice host:046d:c069 \<br>  -device vfio-pci,host=01:00.0,multifunction=on,romfile=/root/vbios.rom \<br>-device vfio-pci,host=01:00.1 \<br>  -drive if=pflash,format=raw,readonly,file=/usr/share/OVMF/OVMF_CODE.fd \<br>  -drive if=pflash,format=raw,file=/tmp/my_vars.fd \<br>  -device virtio-scsi-pci,id=scsi \<br>  -drive file=/home/iso/windows10_x64.iso,id=isocd,format=raw,if=none -device scsi-cd,drive=isocd \<br>  -drive file=/home/iso/virtio-win.iso,id=virtio,format=raw,if=none -device ide-cd,bus=ide.1,drive=virtio \<br>  -drive file=/home/vm/firebird_ws/firebird_ws.img,id=disk,format=qcow2,if=none,cache=writeback -device scsi-hd,drive=disk \<br>  -net nic -net bridge,br=br0 \<br><br><br></div>Now I'm trying to run it under libvirt but I only getting TianoCore splash screen on GPU output and windows boot's up and in VNC i see code 43 on gpu card.<br><br></div>How to debug it and make it run? <br><br></div>XML file below:<br><br><domain type='kvm'><br>  <name>windows10</name><br>  <uuid>5fc3a2cf-e58c-4127-abf1-45c8572d9b8e</uuid><br>  <memory unit='KiB'>4194304</memory><br>  <currentMemory unit='KiB'>4194304</currentMemory><br>  <vcpu placement='static'>4</vcpu><br>  <os><br>    <type arch='x86_64' machine='pc-i440fx-2.6'>hvm</type><br>    <loader readonly='yes' type='pflash'>/usr/share/OVMF/OVMF_CODE.fd</loader><br>    <nvram>/tmp/my_vars.fd</nvram><br>    <boot dev='hd'/><br>  </os><br>  <features><br>    <acpi/><br>    <apic/><br>    <hyperv><br>      <relaxed state='on'/><br>      <vapic state='on'/><br>      <spinlocks state='on' retries='8191'/><br>    </hyperv><br>  </features><br>  <cpu mode='custom' match='exact'><br>    <model fallback='allow'>Haswell-noTSX</model><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>    <timer name='hypervclock' present='yes'/><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/bin/kvm</emulator><br>    <disk type='file' device='disk'><br>      <driver name='qemu' type='raw'/><br>      <source file='/home/vm/firebird_ws/windows10.img'/><br>      <target dev='vda' bus='virtio'/><br>      <address type='pci' domain='0x0000' bus='0x00' slot='0x04' function='0x0'/><br>    </disk><br>    <controller type='usb' index='0' model='ich9-ehci1'><br>      <address type='pci' domain='0x0000' bus='0x00' slot='0x05' 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='0x05' 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='0x05' 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='0x05' function='0x2'/><br>    </controller><br>    <controller type='pci' index='0' model='pci-root'/><br>    <controller type='ide' index='0'><br>      <address type='pci' domain='0x0000' bus='0x00' slot='0x01' function='0x1'/><br>    </controller><br>    <interface type='bridge'><br>      <mac address='52:54:00:11:e2:9e'/><br>      <source bridge='br0'/><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>    <input type='tablet' bus='usb'><br>      <address type='usb' bus='0' port='1'/><br>    </input><br>    <input type='mouse' bus='ps2'/><br>    <input type='keyboard' bus='ps2'/><br>    <graphics type='vnc' port='-1' autoport='yes'><br>      <listen type='address'/><br>    </graphics><br>    <video><br>      <model type='vga' vram='16384' heads='1' primary='yes'/><br>      <address type='pci' domain='0x0000' bus='0x00' slot='0x02' function='0x0'/><br>    </video><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/vm/windows10/vbios.rom'/><br>      <address type='pci' domain='0x0000' bus='0x00' slot='0x06' function='0x0'/><br>    </hostdev><br>    <hostdev mode='subsystem' type='pci' managed='yes'><br>      <source><br>        <address domain='0x0000' bus='0x01' slot='0x00' function='0x1'/><br>      </source><br>      <rom bar='off'/><br>      <address type='pci' domain='0x0000' bus='0x00' slot='0x07' function='0x0'/><br>    </hostdev><br>    <hostdev mode='subsystem' type='usb' managed='yes'><br>      <source><br>        <vendor id='0x046d'/><br>        <product id='0xc328'/><br>      </source><br>      <address type='usb' bus='0' port='2'/><br>    </hostdev><br>    <hostdev mode='subsystem' type='usb' managed='yes'><br>      <source><br>        <vendor id='0x046d'/><br>        <product id='0xc069'/><br>      </source><br>      <address type='usb' bus='0' port='3'/><br>    </hostdev><br>    <memballoon model='virtio'><br>      <address type='pci' domain='0x0000' bus='0x00' slot='0x08' function='0x0'/><br>    </memballoon><br>  </devices><br></domain><br><br></div>Best Regards<br></div>Tomasz Strzelecki<br><div><div><br></div></div></div>