Re: [Qemu-devel] [PATCH] vhost: logs sharing

2015-04-01 Thread Jason Wang
On Mon, Mar 30, 2015 at 5:06 PM, Michael S. Tsirkin wrote: On Fri, Mar 20, 2015 at 04:53:24PM +0800, Jason Wang wrote: Currently we allocate one vhost log per vhost device. This is sub optimal when: - Guest has several device with vhost as backend - Guest has multiqueue devices In

Re: [Qemu-devel] [PATCH] vhost: logs sharing

2015-03-30 Thread Michael S. Tsirkin
On Fri, Mar 20, 2015 at 04:53:24PM +0800, Jason Wang wrote: > Currently we allocate one vhost log per vhost device. This is sub > optimal when: > > - Guest has several device with vhost as backend > - Guest has multiqueue devices > > In the above cases, we can avoid the memory allocation by shari

[Qemu-devel] [PATCH] vhost: logs sharing

2015-03-20 Thread Jason Wang
Currently we allocate one vhost log per vhost device. This is sub optimal when: - Guest has several device with vhost as backend - Guest has multiqueue devices In the above cases, we can avoid the memory allocation by sharing a single vhost log among all the vhost devices. This is done by introdu