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

2015-06-04 Thread Jason Wang
On 06/04/2015 06:44 PM, Michael S. Tsirkin wrote: > On Thu, Jun 04, 2015 at 05:28:46AM -0400, 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

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

2015-06-04 Thread Michael S. Tsirkin
On Thu, Jun 04, 2015 at 05:28:46AM -0400, 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 V5] vhost: logs sharing

2015-06-04 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 through: