I have test this patch, and it works well.
After this patch, Libvirt can generate share=yes in ivshmem-plain memory
backend command line:
# ps aux|grep r7
...
-object
memory-backend-file,id=shmmem-shmem0,mem-path=/dev/shm/my_shmem1,size=4194304,share=yes
-device
On Thu, Nov 10, 2016 at 08:32:33 +0100, Martin Kletzander wrote:
> Even though using /dev/shm/asdf as the backend, we still need to make
> the mapping shared. The original patch forgot to add that parameter.
>
> Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1392031
>
> Signed-off-by:
Even though using /dev/shm/asdf as the backend, we still need to make
the mapping shared. The original patch forgot to add that parameter.
Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1392031
Signed-off-by: Martin Kletzander
---
src/qemu/qemu_command.c