]> git.proxmox.com Git - mirror_qemu.git/commit - hw/virtio/vhost.c
vhost: alloc shareable log
authorMarc-André Lureau <marcandre.lureau@redhat.com>
Fri, 9 Oct 2015 15:17:25 +0000 (17:17 +0200)
committerMichael S. Tsirkin <mst@redhat.com>
Thu, 22 Oct 2015 11:34:49 +0000 (14:34 +0300)
commit15324404f68cde561d0eeee3d18a7b203f57f095
treea8a52cb4cf0af571dc946f06a08f2dcde185f8a3
parent1be0ac2109fbaca6e730ac578f0564507d173e2d
vhost: alloc shareable log

If the backend is requires it, allocate shareable memory.

vhost_log_get() now uses 2 globals "vhost_log" and "vhost_log_shm", that
way there is a common non-shareable log and a common shareable one.

Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Tested-by: Thibaut Collet <thibaut.collet@6wind.com>
hw/virtio/vhost.c
include/hw/virtio/vhost.h