Re: [PATCH v1 13/13] virtio/vhost-user: dynamically assign VhostUserHostNotifiers

2022-12-06 Thread Stefan Hajnoczi
On Mon, 21 Mar 2022 at 11:59, Alex Bennée wrote: > > At a couple of hundred bytes per notifier allocating one for every > potential queue is very wasteful as most devices only have a few > queues. Instead of having this handled statically dynamically assign > them and track in a GPtrArray. > >

Re: [PATCH v1 13/13] virtio/vhost-user: dynamically assign VhostUserHostNotifiers

2022-12-06 Thread Philippe Mathieu-Daudé
Hi Alex, On 21/3/22 16:30, Alex Bennée wrote: At a couple of hundred bytes per notifier allocating one for every potential queue is very wasteful as most devices only have a few queues. Instead of having this handled statically dynamically assign them and track in a GPtrArray. [AJB: it's hard

[PATCH v1 13/13] virtio/vhost-user: dynamically assign VhostUserHostNotifiers

2022-03-21 Thread Alex Bennée
At a couple of hundred bytes per notifier allocating one for every potential queue is very wasteful as most devices only have a few queues. Instead of having this handled statically dynamically assign them and track in a GPtrArray. [AJB: it's hard to trigger the vhost notifiers code, I assume as