<div style="line-height:1.7;color:#000000;font-size:14px;font-family:Arial"><div>Hello, friends.</div><div>I encounter a problem when i use ivshmem with my guest, my ivshmem server is not start, and output a error : Example code, do not use in production ,cannot bind.</div><div><br></div><div>Detail distribution: </div><div>Today, I know ivshmem from a topic "QEMU version 2.10.93 User Documentation", </div><div>Ivshmem: it can create a shared memory that guest device use, so we can use this memory to do something ourselves.</div><div>First, I create host memory backend:</div><div>     -object memory-backend-file,size=1M,share,mem-path=/dev/shm/ivshmem,id=hostmem</div><div>Twice, Bind a shared memory device to my guest:</div><div>    -device ivshmem-plain,memdev=hostmem</div><div>Then I boot ivshmem servi</div><div>    ivshmem-server -p /var/run/ivshmem-server.pid  -S /tmp/ivshmem_socket  -M ivshmem -m /dev/shm -l 1M -n 2</div><div>Next time i get this error:</div><div>  <span style="color: rgb(255, 0, 0);">  *** Example code, do not use in production ***</span></div><div><span style="color: rgb(255, 0, 0);">    cannot bind</span></div><div>And i search the problem on google, but nothing to get, hope you can help me solve it.</div><div>following message is my host environment:</div><div>    host:  ubuntu 1604</div><div>    qemu:  version 2.10.90 (v2.11.0-rc0-dirty)</div><div>    libvirt:  libvirtd (libvirt) 3.9.0</div><div>    guest:    window 7 professor</div><div><br></div><div>Refer:</div><div>    <a href="https://qemu.weilnetz.de/doc/qemu-doc.html#Inter_002dVM-Shared-Memory-device" _src="https://qemu.weilnetz.de/doc/qemu-doc.html#Inter_002dVM-Shared-Memory-device">https://qemu.weilnetz.de/doc/qemu-doc.html#Inter_002dVM-Shared-Memory-device</a> (topic qemu documention)</div><div>    <a href="https://helpmanual.io/help/ivshmem-server/" _src="https://helpmanual.io/help/ivshmem-server/">https://helpmanual.io/help/ivshmem-server/</a>  ( how to use ivshmem-server )</div></div><br><br><span title="neteasefooter"><p><br/> </p></span>