Looking glass can't see the image

I succeeded in achieving gvt-g,I want to use looking_glass on this basis,When my windows virtual machine uses the following configuration, I can see the image when I use the “looking glass client - s” command

The following is the XML configuration:

<domain xmlns:qemu="http://libvirt.org/schemas/domain/qemu/1.0" type="kvm">
  <memory unit="KiB">6291456</memory>
  <currentMemory unit="KiB">6291456</currentMemory>
  <vcpu placement="static">4</vcpu>
    <type arch="x86_64" machine="pc-i440fx-focal">hvm</type>
    <bootmenu enable="no"/>
    <vmport state="off"/>
  <cpu mode="host-model" check="partial"/>
  <clock offset="utc">
    <timer name="rtc" tickpolicy="catchup"/>
    <timer name="pit" tickpolicy="delay"/>
    <timer name="hpet" present="no"/>
    <suspend-to-mem enabled="no"/>
    <suspend-to-disk enabled="no"/>
    <disk type="file" device="disk">
      <driver name="qemu" type="qcow2"/>
      <source file="/home/yuanqinshun/qemu/Win10/win10.img"/>
      <target dev="vdb" bus="virtio"/>
      <boot order="1"/>
      <address type="pci" domain="0x0000" bus="0x00" slot="0x09" function="0x0"/>
    <disk type="file" device="cdrom">
      <driver name="qemu" type="raw"/>
      <source file="/home/yuanqinshun/&#x4E0B;&#x8F7D;/virtio-win-0.1.215.iso"/>
      <target dev="hdb" bus="ide"/>
      <address type="drive" controller="0" bus="0" target="0" unit="1"/>
    <controller type="usb" index="0" model="ich9-ehci1">
      <address type="pci" domain="0x0000" bus="0x00" slot="0x05" function="0x7"/>
    <controller type="usb" index="0" model="ich9-uhci1">
      <master startport="0"/>
      <address type="pci" domain="0x0000" bus="0x00" slot="0x05" function="0x0" multifunction="on"/>
    <controller type="usb" index="0" model="ich9-uhci2">
      <master startport="2"/>
      <address type="pci" domain="0x0000" bus="0x00" slot="0x05" function="0x1"/>
    <controller type="usb" index="0" model="ich9-uhci3">
      <master startport="4"/>
      <address type="pci" domain="0x0000" bus="0x00" slot="0x05" function="0x2"/>
    <controller type="ide" index="0">
      <address type="pci" domain="0x0000" bus="0x00" slot="0x01" function="0x1"/>
    <controller type="virtio-serial" index="0">
      <address type="pci" domain="0x0000" bus="0x00" slot="0x06" function="0x0"/>
    <controller type="scsi" index="0" model="lsilogic">
      <address type="pci" domain="0x0000" bus="0x00" slot="0x08" function="0x0"/>
    <controller type="pci" index="0" model="pci-root"/>
    <interface type="network">
      <mac address="52:54:00:38:39:a5"/>
      <source network="default"/>
      <model type="virtio"/>
      <link state="up"/>
      <address type="pci" domain="0x0000" bus="0x00" slot="0x03" function="0x0"/>
    <serial type="pty">
      <target type="isa-serial" port="0">
        <model name="isa-serial"/>
    <console type="pty">
      <target type="serial" port="0"/>
    <channel type="spicevmc">
      <target type="virtio" name="com.redhat.spice.0"/>
      <address type="virtio-serial" controller="0" bus="0" port="1"/>
    <input type="mouse" bus="ps2"/>
    <input type="keyboard" bus="ps2"/>
    <graphics type="spice" autoport="yes" listen="">
      <listen type="address" address=""/>
      <gl enable="no" rendernode="/dev/dri/by-path/pci-0000:00:02.0-render"/>
    <sound model="ich6">
      <address type="pci" domain="0x0000" bus="0x00" slot="0x04" function="0x0"/>
      <model type="none"/>
    <hostdev mode="subsystem" type="mdev" managed="no" model="vfio-pci" display="off">
        <address uuid="d875dd13-6801-4068-a726-efc304d8fbd1"/>
      <address type="pci" domain="0x0000" bus="0x00" slot="0x0a" function="0x0"/>
    <redirdev bus="usb" type="spicevmc">
      <address type="usb" bus="0" port="2"/>
    <redirdev bus="usb" type="spicevmc">
      <address type="usb" bus="0" port="3"/>
    <memballoon model="none"/>
    <shmem name="looking-glass">
      <model type="ivshmem-plain"/>
      <size unit="M">32</size>
      <address type="pci" domain="0x0000" bus="0x00" slot="0x02" function="0x0"/>
    <qemu:arg value="-set"/>
    <qemu:arg value="device.hostdev0.x-igd-opregion=on"/>
    <qemu:arg value="-set"/>
    <qemu:arg value="device.hostdev0.ramfb=off"/>
    <qemu:arg value="-set"/>
    <qemu:arg value="device.hostdev0.driver=vfio-pci-nohotplug"/>
    <qemu:env name="MESA_LOADER_DRIVER_OVERRIDE" value="i965"/>

But I need the spice port, so I close OpenGL and use spice port
When I use the “looking glass client - F” or “looking glass client” command, I can only see the following picture. What is the reason for this? Will I not be able to use lookingglass when “display = off”

There are some errors in the above XML. When I open OpenGL, I need “hostdev. Display = on”. When I close OpenGL, I need “hostdev. Display = off”

I found the reason,When I set sokcet=4, core=1, threads=1,it happends,When I set sokcet=1, core=4, threads=1,Lookingglass works fine, I want to know why this happens

Posting the host application log would help in finding out an answer to your question, but if I were to guess, it’s because of your odd architecture.

The windows thread scheduler requires proper architecture to map multi-threaded processes to the execution pipeline. This is not a Looking-Glass issue. Looking -Glass is a multi-threaded application that relies on proper execution environment. The socket-core-thread settings in libvirt/kvm are not an arbitrary setting you can just play around with. They have dramatic ramifications on the way Windows is performing.

Do you really have a machine with 4 sockets, and each socket is only one core able to execute a single thread? That’s a very twisted architecture.

For VFIO based VM’s the general recommendation is to use host-passthrough or host-model, and passthrough a logical fraction of the resources (such as all the cores under a specific L3 cache).