<div><div>Hello, I have some difficulties with spice-streaming-agent, can you help me.</div><div><br></div><div>when I run spice-streaming-agent, it can not read_command(have_something_to_read always return 0).</div><div>./src/spice-streaming-agent.ccp:static int have_something_to_read(int timeout)</div><div>{</div><div>    struct pollfd pollfd = {streamfd, POLLIN, 0};</div><div><br></div><div>    if (poll(&pollfd, 1, timeout) < 0) {</div><div>        syslog(LOG_ERR, "poll FAILED\n");</div><div>        return -1;</div><div>    }</div><div><br></div><div>    if (pollfd.revents == POLLIN) {</div><div>        return 1;</div><div>    }</div><div><br></div><div>    return 0;</div><div>}</div><div><br></div><div>system(centOS-7.2):</div><div># uname -a</div><div>Linux localhost.localdomain 3.10.0-514.el7.x86_64 #1 SMP Tue Nov 22 16:42:41 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux</div><div>cpuinfo:Intel(R) Xeon(R) CPU E3-1245 v6 @ 3.70GHz</div><div><br></div><div><br></div><div>Steps as follows:</div><div>1.host command line:</div><div>/usr/libexec/qemu-kvm -m 1024 -name f15 -drive file=/root/centos-base.img,if=virtio -vga qxl  -spice port=5900,disable-ticketing -net nic,macaddr=00:A1:00:00:00:1A -net tap,script=/etc/qemu-ifup \</div><div>-device virtio-serial-pci -device virtserialport,bus=virtio-serial0.0,nr=1,chardev=charchannel1,id=channel1,name=org.spice-space.stream.0 -chardev spiceport,name=org.spice-space.stream.0,id=charchannel1</div><div><br></div><div>Bus 'virtio-serial0.0' not found, So I <b>delete "bus=virtio-serial0.0"</b>(is it right?)</div><div>/usr/libexec/qemu-kvm -m 1024 -name f15 -drive file=/root/centos-base.img,if=virtio -vga qxl  -spice port=5900,disable-ticketing -net nic,macaddr=00:A1:00:00:00:1A -net tap,script=/etc/qemu-ifup \</div><div>-device virtio-serial-pci -device virtserialport,nr=1,chardev=charchannel1,id=channel1,name=org.spice-space.stream.0 -chardev spiceport,name=org.spice-space.stream.0,id=charchannel1</div><div><br></div><div>2.start VM and install spice-streaming-agent:</div><div>./autogen</div><div>make -j 8</div><div>make install</div><div><br></div><div># ls /dev/virtio-ports/</div><div>org.spice-space.stream.0</div><div><br></div><div>3.run spice-streaming-agent </div><div><br></div><div>Have some questions:</div><div>1.spice-streaming-agent can not read_command, I don't know the reason for the failure.  </div><div>2.How to check if the spice-streaming-agent works correctly(encode stream and send it to client)</div></div><div><tincludetail></tincludetail></div><!--<![endif]-->