Re: [Qemu-devel] [PATCH RFC 4/6] vhost: alloc shareable log

2015-07-28 Thread Marc-André Lureau
Hi On Tue, Jul 28, 2015 at 12:10 PM, Michael S. Tsirkin wrote: > I know why it's needed :) But this needs to be stated in the commit log. > Also, it only makes sense if remote supports getting the logfd. Thanks for pointing out this change. Actually, I think the current log overlap when resizing

Re: [Qemu-devel] [PATCH RFC 4/6] vhost: alloc shareable log

2015-07-28 Thread Michael S. Tsirkin
On Tue, Jul 28, 2015 at 01:28:05PM +0800, Jason Wang wrote: > > > On 07/23/2015 09:36 AM, Marc-André Lureau 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 vho

Re: [Qemu-devel] [PATCH RFC 4/6] vhost: alloc shareable log

2015-07-27 Thread Jason Wang
On 07/23/2015 09:36 AM, Marc-André Lureau 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 non-sh

[Qemu-devel] [PATCH RFC 4/6] vhost: alloc shareable log

2015-07-22 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