Re: [Qemu-devel] [PATCH v2 4/9] vhost: alloc shareable log

2015-07-29 Thread Michael S. Tsirkin
On Wed, Jul 29, 2015 at 01:04:51PM -0400, Marc-André Lureau wrote: > Hi > > - Original Message - > > * Marc-André Lureau (marcandre.lur...@redhat.com) wrote: > > > If the backend is of type VHOST_BACKEND_TYPE_USER, allocate > > > shareable memory. > > > > > > Note: vhost_log_get() can use

Re: [Qemu-devel] [PATCH v2 4/9] vhost: alloc shareable log

2015-07-29 Thread Dr. David Alan Gilbert
* Marc-André Lureau (mlur...@redhat.com) wrote: > Hi > > - Original Message - > > * Marc-André Lureau (marcandre.lur...@redhat.com) wrote: > > > If the backend is of type VHOST_BACKEND_TYPE_USER, allocate > > > shareable memory. > > > > > > Note: vhost_log_get() can use a global "vhost_lo

Re: [Qemu-devel] [PATCH v2 4/9] vhost: alloc shareable log

2015-07-29 Thread Marc-André Lureau
Hi - Original Message - > * Marc-André Lureau (marcandre.lur...@redhat.com) wrote: > > If the backend is of type VHOST_BACKEND_TYPE_USER, allocate > > shareable memory. > > > > Note: vhost_log_get() can use a global "vhost_log" that can be shared by > > several vhost devices. We may want

Re: [Qemu-devel] [PATCH v2 4/9] vhost: alloc shareable log

2015-07-29 Thread Dr. David Alan Gilbert
* Marc-André Lureau (marcandre.lur...@redhat.com) wrote: > If the backend is of type VHOST_BACKEND_TYPE_USER, allocate > shareable memory. > > Note: vhost_log_get() can use a global "vhost_log" that can be shared by > several vhost devices. We may want instead a common shareable log and a > common

[Qemu-devel] [PATCH v2 4/9] vhost: alloc shareable log

2015-07-28 Thread Marc-André Lureau
If the backend is of type VHOST_BACKEND_TYPE_USER, allocate shareable memory. Note: vhost_log_get() can use a global "vhost_log" that can be shared by several vhost devices. We may want instead a common shareable log and a common non-shareable one. Signed-off-by: Marc-André Lureau --- hw/virtio