]> git.proxmox.com Git - mirror_qemu.git/commit - exec.c
ivshmem: Store file descriptor for vhost-user negotiation
authorTetsuya Mukawa <mukawa@igel.co.jp>
Mon, 21 Dec 2015 03:47:34 +0000 (12:47 +0900)
committerMichael S. Tsirkin <mst@redhat.com>
Sat, 9 Jan 2016 21:20:20 +0000 (23:20 +0200)
commit56a571d9c803b7a2348373ca3feb44ca4e0d9131
tree81a3cc67130f9b5036f654ff6056ee71b07d5208
parent50e5ae4dc3e4f21e874512f9e87b93b5472d26e0
ivshmem: Store file descriptor for vhost-user negotiation

If virtio-net driver allocates memory in ivshmem shared memory,
vhost-net will work correctly, but vhost-user will not work because
a fd of shared memory will not be sent to vhost-user backend.
This patch fixes ivshmem to store file descriptor of shared memory.
It will be used when vhost-user negotiates vhost-user backend.

Signed-off-by: Tetsuya Mukawa <mukawa@igel.co.jp>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
exec.c
hw/misc/ivshmem.c
include/exec/ram_addr.h