<div dir="ltr"><div dir="ltr"><div dir="ltr"><div><font color="#000000" style="background-color:rgb(255,255,255)">I install GVT-g-2018q3.iso on i3-7100U host, with IOMMU enabled.</font></div><div>After apt install virt-manager, I create an win10 instance with vgpu to spice.</div><div>Accoring to doc: <a href="https://github.com/intel/gvt-linux/wiki/Dma_Buf_User_Guide">https://github.com/intel/gvt-linux/wiki/Dma_Buf_User_Guide</a>.</div><div>Then it shows an error:</div><div><br></div><div>root@home:/home# virsh create win10.xml</div><div>error: Failed to create domain from win10.xml</div><div>error: internal error: process exited while connecting to monitor: egl support is disabled</div><div><br></div><div>The libvirt xml file:</div><div><br></div><div><div><span style="font-family:Monaco;font-size:12px;color:rgb(51,51,51)">root@desktopclient:/home/desktopclient/zwj# cat ./win10.xml</span></div><div><span style="font-family:Monaco;font-size:12px;color:rgb(51,51,51)"><domain type='kvm' id='3'></span></div><div><span style="font-family:Monaco;font-size:12px;color:rgb(51,51,51)">  <name>win10</name></span></div><div><span style="font-family:Monaco;font-size:12px;color:rgb(51,51,51)">  <uuid>03a99767-f68b-488f-bae0-a0ab5d806ec7</uuid></span></div><div><span style="font-family:Monaco;font-size:12px;color:rgb(51,51,51)">  <memory unit='KiB'>3145728</memory></span></div><div><span style="font-family:Monaco;font-size:12px;color:rgb(51,51,51)">  <currentMemory unit='KiB'>3145728</currentMemory></span></div><div><span style="font-family:Monaco;font-size:12px;color:rgb(51,51,51)">  <vcpu placement='static'>4</vcpu></span></div><div><span style="font-family:Monaco;font-size:12px;color:rgb(51,51,51)">  <resource></span></div><div><span style="font-family:Monaco;font-size:12px;color:rgb(51,51,51)">    <partition>/machine</partition></span></div><div><span style="font-family:Monaco;font-size:12px;color:rgb(51,51,51)">  </resource></span></div><div><span style="font-family:Monaco;font-size:12px;color:rgb(51,51,51)">  <os></span></div><div><span style="font-family:Monaco;font-size:12px;color:rgb(51,51,51)">    <type arch='x86_64' machine='pc-i440fx-bionic'>hvm</type></span></div><div><span style="font-family:Monaco;font-size:12px;color:rgb(51,51,51)">    <boot dev='hd'/></span></div><div><span style="font-family:Monaco;font-size:12px;color:rgb(51,51,51)">  </os></span></div><div><span style="font-family:Monaco;font-size:12px;color:rgb(51,51,51)">  <features></span></div><div><span style="font-family:Monaco;font-size:12px;color:rgb(51,51,51)">    <acpi/></span></div><div><span style="font-family:Monaco;font-size:12px;color:rgb(51,51,51)">    <apic/></span></div><div><span style="font-family:Monaco;font-size:12px;color:rgb(51,51,51)">    <hyperv></span></div><div><span style="font-family:Monaco;font-size:12px;color:rgb(51,51,51)">      <relaxed state='on'/></span></div><div><span style="font-family:Monaco;font-size:12px;color:rgb(51,51,51)">      <vapic state='on'/></span></div><div><span style="font-family:Monaco;font-size:12px;color:rgb(51,51,51)">      <spinlocks state='on' retries='8191'/></span></div><div><span style="font-family:Monaco;font-size:12px;color:rgb(51,51,51)">    </hyperv></span></div><div><span style="font-family:Monaco;font-size:12px;color:rgb(51,51,51)">  </features></span></div><div><span style="font-family:Monaco;font-size:12px;color:rgb(51,51,51)">  <cpu mode='custom' match='exact' check='full'></span></div><div><span style="font-family:Monaco;font-size:12px;color:rgb(51,51,51)">    <model fallback='forbid'>Broadwell-noTSX</model></span></div><div><span style="font-family:Monaco;font-size:12px;color:rgb(51,51,51)">    <feature policy='require' name='vme'/></span></div><div><span style="font-family:Monaco;font-size:12px;color:rgb(51,51,51)">    <feature policy='require' name='f16c'/></span></div><div><span style="font-family:Monaco;font-size:12px;color:rgb(51,51,51)">    <feature policy='require' name='rdrand'/></span></div><div><span style="font-family:Monaco;font-size:12px;color:rgb(51,51,51)">    <feature policy='require' name='hypervisor'/></span></div><div><span style="font-family:Monaco;font-size:12px;color:rgb(51,51,51)">    <feature policy='require' name='arat'/></span></div><div><span style="font-family:Monaco;font-size:12px;color:rgb(51,51,51)">    <feature policy='require' name='xsaveopt'/></span></div><div><span style="font-family:Monaco;font-size:12px;color:rgb(51,51,51)">    <feature policy='require' name='abm'/></span></div><div><span style="font-family:Monaco;font-size:12px;color:rgb(51,51,51)">  </cpu></span></div><div><span style="font-family:Monaco;font-size:12px;color:rgb(51,51,51)">  <clock offset='localtime'></span></div><div><span style="font-family:Monaco;font-size:12px;color:rgb(51,51,51)">    <timer name='rtc' tickpolicy='catchup'/></span></div><div><span style="font-family:Monaco;font-size:12px;color:rgb(51,51,51)">    <timer name='pit' tickpolicy='delay'/></span></div><div><span style="font-family:Monaco;font-size:12px;color:rgb(51,51,51)">    <timer name='hpet' present='no'/></span></div><div><span style="font-family:Monaco;font-size:12px;color:rgb(51,51,51)">    <timer name='hypervclock' present='yes'/></span></div><div><span style="font-family:Monaco;font-size:12px;color:rgb(51,51,51)">  </clock></span></div><div><span style="font-family:Monaco;font-size:12px;color:rgb(51,51,51)">  <on_poweroff>destroy</on_poweroff></span></div><div><span style="font-family:Monaco;font-size:12px;color:rgb(51,51,51)">  <on_reboot>restart</on_reboot></span></div><div><span style="font-family:Monaco;font-size:12px;color:rgb(51,51,51)">  <on_crash>destroy</on_crash></span></div><div><span style="font-family:Monaco;font-size:12px;color:rgb(51,51,51)">  <pm></span></div><div><span style="font-family:Monaco;font-size:12px;color:rgb(51,51,51)">    <suspend-to-mem enabled='no'/></span></div><div><span style="font-family:Monaco;font-size:12px;color:rgb(51,51,51)">    <suspend-to-disk enabled='no'/></span></div><div><span style="font-family:Monaco;font-size:12px;color:rgb(51,51,51)">  </pm></span></div><div><span style="font-family:Monaco;font-size:12px;color:rgb(51,51,51)">  <devices></span></div><div><span style="font-family:Monaco;font-size:12px;color:rgb(51,51,51)">    <emulator>/usr/bin/kvm-spice</emulator></span></div><div><span style="font-family:Monaco;font-size:12px;color:rgb(51,51,51)">    <disk type='file' device='disk'></span></div><div><span style="font-family:Monaco;font-size:12px;color:rgb(51,51,51)">      <driver name='qemu' type='qcow2'/></span></div><div><span style="font-family:Monaco;font-size:12px;color:rgb(51,51,51)">      <source file='/home/desktopclient/zwj/win10.qcow2'/></span></div><div><span style="font-family:Monaco;font-size:12px;color:rgb(51,51,51)">      <backingStore/></span></div><div><span style="font-family:Monaco;font-size:12px;color:rgb(51,51,51)">      <target dev='hda' bus='ide'/></span></div><div><span style="font-family:Monaco;font-size:12px;color:rgb(51,51,51)">      <alias name='ide0-0-0'/></span></div><div><span style="font-family:Monaco;font-size:12px;color:rgb(51,51,51)">      <address type='drive' controller='0' bus='0' target='0' unit='0'/></span></div><div><span style="font-family:Monaco;font-size:12px;color:rgb(51,51,51)">    </disk></span></div><div><span style="font-family:Monaco;font-size:12px;color:rgb(51,51,51)">    <controller type='usb' index='0' model='ich9-ehci1'></span></div><div><span style="font-family:Monaco;font-size:12px;color:rgb(51,51,51)">      <alias name='usb'/></span></div><div><span style="font-family:Monaco;font-size:12px;color:rgb(51,51,51)">      <address type='pci' domain='0x0000' bus='0x00' slot='0x04' function='0x7'/></span></div><div><span style="font-family:Monaco;font-size:12px;color:rgb(51,51,51)">    </controller></span></div><div><span style="font-family:Monaco;font-size:12px;color:rgb(51,51,51)">    <controller type='usb' index='0' model='ich9-uhci1'></span></div><div><span style="font-family:Monaco;font-size:12px;color:rgb(51,51,51)">      <alias name='usb'/></span></div><div><span style="font-family:Monaco;font-size:12px;color:rgb(51,51,51)">      <master startport='0'/></span></div><div><span style="font-family:Monaco;font-size:12px;color:rgb(51,51,51)">      <address type='pci' domain='0x0000' bus='0x00' slot='0x04' function='0x0' multifunction='on'/></span></div><div><span style="font-family:Monaco;font-size:12px;color:rgb(51,51,51)">    </controller></span></div><div><span style="font-family:Monaco;font-size:12px;color:rgb(51,51,51)">    <controller type='usb' index='0' model='ich9-uhci2'></span></div><div><span style="font-family:Monaco;font-size:12px;color:rgb(51,51,51)">      <alias name='usb'/></span></div><div><span style="font-family:Monaco;font-size:12px;color:rgb(51,51,51)">      <master startport='2'/></span></div><div><span style="font-family:Monaco;font-size:12px;color:rgb(51,51,51)">      <address type='pci' domain='0x0000' bus='0x00' slot='0x04' function='0x1'/></span></div><div><span style="font-family:Monaco;font-size:12px;color:rgb(51,51,51)">    </controller></span></div><div><span style="font-family:Monaco;font-size:12px;color:rgb(51,51,51)">    <controller type='usb' index='0' model='ich9-uhci3'></span></div><div><span style="font-family:Monaco;font-size:12px;color:rgb(51,51,51)">      <alias name='usb'/></span></div><div><span style="font-family:Monaco;font-size:12px;color:rgb(51,51,51)">      <master startport='4'/></span></div><div><span style="font-family:Monaco;font-size:12px;color:rgb(51,51,51)">      <address type='pci' domain='0x0000' bus='0x00' slot='0x04' function='0x2'/></span></div><div><span style="font-family:Monaco;font-size:12px;color:rgb(51,51,51)">    </controller></span></div><div><span style="font-family:Monaco;font-size:12px;color:rgb(51,51,51)">    <controller type='pci' index='0' model='pci-root'></span></div><div><span style="font-family:Monaco;font-size:12px;color:rgb(51,51,51)">      <alias name='pci.0'/></span></div><div><span style="font-family:Monaco;font-size:12px;color:rgb(51,51,51)">    </controller></span></div><div><span style="font-family:Monaco;font-size:12px;color:rgb(51,51,51)">    <controller type='ide' index='0'></span></div><div><span style="font-family:Monaco;font-size:12px;color:rgb(51,51,51)">      <alias name='ide'/></span></div><div><span style="font-family:Monaco;font-size:12px;color:rgb(51,51,51)">      <address type='pci' domain='0x0000' bus='0x00' slot='0x01' function='0x1'/></span></div><div><span style="font-family:Monaco;font-size:12px;color:rgb(51,51,51)">    </controller></span></div><div><span style="font-family:Monaco;font-size:12px;color:rgb(51,51,51)">    <interface type='bridge'></span></div><div><span style="font-family:Monaco;font-size:12px;color:rgb(51,51,51)">      <mac address='52:54:00:6f:4b:64'/></span></div><div><span style="font-family:Monaco;font-size:12px;color:rgb(51,51,51)">      <source bridge='br0'/></span></div><div><span style="font-family:Monaco;font-size:12px;color:rgb(51,51,51)">      <target dev='vnet0'/></span></div><div><span style="font-family:Monaco;font-size:12px;color:rgb(51,51,51)">      <model type='rtl8139'/></span></div><div><span style="font-family:Monaco;font-size:12px;color:rgb(51,51,51)">      <alias name='net0'/></span></div><div><span style="font-family:Monaco;font-size:12px;color:rgb(51,51,51)">      <address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/></span></div><div><span style="font-family:Monaco;font-size:12px;color:rgb(51,51,51)">    </interface></span></div><div><span style="font-family:Monaco;font-size:12px;color:rgb(51,51,51)">    <serial type='pty'></span></div><div><span style="font-family:Monaco;font-size:12px;color:rgb(51,51,51)">      <source path='/dev/pts/1'/></span></div><div><span style="font-family:Monaco;font-size:12px;color:rgb(51,51,51)">      <target type='isa-serial' port='0'></span></div><div><span style="font-family:Monaco;font-size:12px;color:rgb(51,51,51)">        <model name='isa-serial'/></span></div><div><span style="font-family:Monaco;font-size:12px;color:rgb(51,51,51)">      </target></span></div><div><span style="font-family:Monaco;font-size:12px;color:rgb(51,51,51)">      <alias name='serial0'/></span></div><div><span style="font-family:Monaco;font-size:12px;color:rgb(51,51,51)">    </serial></span></div><div><span style="font-family:Monaco;font-size:12px;color:rgb(51,51,51)">    <console type='pty' tty='/dev/pts/1'></span></div><div><span style="font-family:Monaco;font-size:12px;color:rgb(51,51,51)">      <source path='/dev/pts/1'/></span></div><div><span style="font-family:Monaco;font-size:12px;color:rgb(51,51,51)">      <target type='serial' port='0'/></span></div><div><span style="font-family:Monaco;font-size:12px;color:rgb(51,51,51)">      <alias name='serial0'/></span></div><div><span style="font-family:Monaco;font-size:12px;color:rgb(51,51,51)">    </console></span></div><div><span style="font-family:Monaco;font-size:12px;color:rgb(51,51,51)">    <input type='tablet' bus='usb'></span></div><div><span style="font-family:Monaco;font-size:12px;color:rgb(51,51,51)">      <alias name='input0'/></span></div><div><span style="font-family:Monaco;font-size:12px;color:rgb(51,51,51)">      <address type='usb' bus='0' port='1'/></span></div><div><span style="font-family:Monaco;font-size:12px;color:rgb(51,51,51)">    </input></span></div><div><span style="font-family:Monaco;font-size:12px;color:rgb(51,51,51)">    <input type='mouse' bus='ps2'></span></div><div><span style="font-family:Monaco;font-size:12px;color:rgb(51,51,51)">      <alias name='input1'/></span></div><div><span style="font-family:Monaco;font-size:12px;color:rgb(51,51,51)">    </input></span></div><div><span style="font-family:Monaco;font-size:12px;color:rgb(51,51,51)">    <input type='keyboard' bus='ps2'></span></div><div><span style="font-family:Monaco;font-size:12px;color:rgb(51,51,51)">      <alias name='input2'/></span></div><div><span style="font-family:Monaco;font-size:12px;color:rgb(51,51,51)">    </input></span></div><div><br style="font-family:Monaco;font-size:12px;color:rgb(51,51,51)"></div><div><span style="font-family:Monaco;font-size:12px;color:rgb(51,51,51)">  <video></span></div><div><span style="font-family:Monaco;font-size:12px;color:rgb(51,51,51)">         <model type='cirrus' vram='16384' heads='1' primary='yes'/></span></div><div><span style="font-family:Monaco;font-size:12px;color:rgb(51,51,51)">         <address type='pci' domain='0x0000' bus='0x00' slot='0x02' function='0x0'/></span></div><div><span style="font-family:Monaco;font-size:12px;color:rgb(51,51,51)"></video></span></div><div><br style="font-family:Monaco;font-size:12px;color:rgb(51,51,51)"></div><div><span style="font-family:Monaco;font-size:12px;color:rgb(51,51,51)">    <graphics type='spice' port='5901' autoport='yes' listen='0.0.0.0' keymap='en-us'></span></div><div><span style="font-family:Monaco;font-size:12px;color:rgb(51,51,51)">      <listen type='address' address='0.0.0.0'/></span></div><div><span style="font-family:Monaco;font-size:12px;color:rgb(51,51,51)">      <image compression='auto_glz'/></span></div><div><span style="font-family:Monaco;font-size:12px;color:rgb(51,51,51)">      <jpeg compression='always'/></span></div><div><span style="font-family:Monaco;font-size:12px;color:rgb(51,51,51)">      <playback compression='on'/></span></div><div><span style="font-family:Monaco;font-size:12px;color:rgb(51,51,51)">      <streaming mode='filter'/></span></div><div><span style="font-family:Monaco;font-size:12px;color:rgb(51,51,51)">    </graphics></span></div><div><span style="font-family:Monaco;font-size:12px;color:rgb(51,51,51)"><br></span></div><div><span style="font-family:Monaco;font-size:12px;color:rgb(51,51,51)">   <hostdev mode='subsystem' type='mdev' managed='no' model='vfio-pci'></span></div><div><span style="font-family:Monaco;font-size:12px;color:rgb(51,51,51)">         <source></span></div><div><span style="font-family:Monaco;font-size:12px;color:rgb(51,51,51)">           <address type='mdev' uuid='fc116b66-e40b-11e8-9884-a7bbc264192f'/></span></div><div><span style="font-family:Monaco;font-size:12px;color:rgb(51,51,51)">         </source></span></div><div><span style="font-family:Monaco;font-size:12px;color:rgb(51,51,51)">         <address type='pci' domain='0x0000' bus='0x00' slot='0x06' function='0x0'/></span></div><div><span style="font-family:Monaco;font-size:12px;color:rgb(51,51,51)">   </hostdev></span></div><div><br style="font-family:Monaco;font-size:12px;color:rgb(51,51,51)"></div><div><span style="font-family:Monaco;font-size:12px;color:rgb(51,51,51)">    <memballoon model='virtio'></span></div><div><span style="font-family:Monaco;font-size:12px;color:rgb(51,51,51)">      <alias name='balloon0'/></span></div><div><span style="font-family:Monaco;font-size:12px;color:rgb(51,51,51)">      <address type='pci' domain='0x0000' bus='0x00' slot='0x05' function='0x0'/></span></div><div><span style="font-family:Monaco;font-size:12px;color:rgb(51,51,51)">    </memballoon></span></div><div><span style="font-family:Monaco;font-size:12px;color:rgb(51,51,51)">  </devices></span></div><div><span style="font-family:Monaco;font-size:12px;color:rgb(51,51,51)">  <seclabel type='dynamic' model='dac' relabel='yes'></span></div><div><span style="font-family:Monaco;font-size:12px;color:rgb(51,51,51)">    <label>+64055:+127</label></span></div><div><span style="font-family:Monaco;font-size:12px;color:rgb(51,51,51)">    <imagelabel>+64055:+127</imagelabel></span></div><div><span style="font-family:Monaco;font-size:12px;color:rgb(51,51,51)">  </seclabel></span></div><div><br style="font-family:Monaco;font-size:12px;color:rgb(51,51,51)"></div><div><span style="font-family:Monaco;font-size:12px;color:rgb(51,51,51)">     <qemu:commandline></span></div><div><span style="font-family:Monaco;font-size:12px;color:rgb(51,51,51)">       <qemu:arg value='-set'/></span></div><div><span style="font-family:Monaco;font-size:12px;color:rgb(51,51,51)">       <qemu:arg value='device.video0.driver=ne2k_pci'/></span></div><div><span style="font-family:Monaco;font-size:12px;color:rgb(51,51,51)">       <qemu:arg value='-set'/></span></div><div><span style="font-family:Monaco;font-size:12px;color:rgb(51,51,51)">       <qemu:arg value='device.hostdev0.x-igd-opregion=on'/></span></div><div><span style="font-family:Monaco;font-size:12px;color:rgb(51,51,51)">       <qemu:arg value='-set'/></span></div><div><span style="font-family:Monaco;font-size:12px;color:rgb(51,51,51)">       <qemu:arg value='device.hostdev0.display=on'/></span></div><div><span style="font-family:Monaco;font-size:12px;color:rgb(51,51,51)">       <qemu:arg value='-display'/></span></div><div><span style="font-family:Monaco;font-size:12px;color:rgb(51,51,51)">       <qemu:arg value='egl-headless'/></span></div><div><span style="font-family:Monaco;font-size:12px;color:rgb(51,51,51)">     </qemu:commandline></span></div><div><br style="font-family:Monaco;font-size:12px;color:rgb(51,51,51)"></div><div><span style="font-family:Monaco;font-size:12px;color:rgb(51,51,51)"></domain></span></div></div></div></div></div>