Using IVSHMEM with libvirt virt-manager
<p>Using <strong>ivshmem</strong> in <strong>qemu</strong> requires the following steps.</p>

<ol>
<li>Start ivshmem server in host <code>./ivshmem_server</code> which will create a unix domain socket <code>/tmp/ivshmem_socket</code></li>
<li>Start qemu with the following command line options- <code>-chardev socket,path=/tmp/ivshmem_socket,id=ivshmem_socket -device ivshmem,chardev=ivshmem_socket,size=1m</code></li>
</ol>

<p>Now if we do <code>lspci</code> in guest, the ivshmem pci device is shown in it.</p>

<p>How can I do the same in virt-manager?
Specifically, I want to do 2 things.</p>

<ul>
<li>Pass the above command line option to qemu, when virt-manager starts it</li>
<li>libvirt virt-manager uses <strong>apparmor</strong> to isolate guests, how to make sure that access to <code>/tmp/ivshmem_socket</code> is not denied to the VM ?</li>
</ul>