Re: [PATCH 00/12] virtio: add vhost-user-generic and reduce copy and paste

2023-04-18 Thread Stefan Hajnoczi
On Mon, Apr 17, 2023 at 05:14:59PM +0100, Alex Bennée wrote: > > Stefan Hajnoczi writes: > > > On Fri, 14 Apr 2023 at 12:06, Alex Bennée wrote: > >> > >> A lot of our vhost-user stubs are large chunks of boilerplate that do > >> (mostly) the same thing. This series attempts to fix that by defin

Re: [PATCH 00/12] virtio: add vhost-user-generic and reduce copy and paste

2023-04-17 Thread Alex Bennée
Stefan Hajnoczi writes: > On Fri, 14 Apr 2023 at 12:06, Alex Bennée wrote: >> >> A lot of our vhost-user stubs are large chunks of boilerplate that do >> (mostly) the same thing. This series attempts to fix that by defining >> a new base class for vhost-user devices and then converting the rng

Re: [PATCH 00/12] virtio: add vhost-user-generic and reduce copy and paste

2023-04-17 Thread Stefan Hajnoczi
On Fri, 14 Apr 2023 at 12:06, Alex Bennée wrote: > > A lot of our vhost-user stubs are large chunks of boilerplate that do > (mostly) the same thing. This series attempts to fix that by defining > a new base class for vhost-user devices and then converting the rng > and gpio devices to be based of

Re: [PATCH 00/12] virtio: add vhost-user-generic and reduce copy and paste

2023-04-17 Thread Alex Bennée
Viresh Kumar writes: > On 14-04-23, 17:04, Alex Bennée wrote: >> hw/virtio/vhost-user-device-pci.c | 71 + >> hw/virtio/vhost-user-device.c | 359 ++ >> hw/virtio/vhost-user-fs.c | 4 +- >> hw/virtio/vhost-user-gpio.c| 405 +

Re: [PATCH 00/12] virtio: add vhost-user-generic and reduce copy and paste

2023-04-16 Thread Viresh Kumar
On 14-04-23, 17:04, Alex Bennée wrote: > hw/virtio/vhost-user-device-pci.c | 71 + > hw/virtio/vhost-user-device.c | 359 ++ > hw/virtio/vhost-user-fs.c | 4 +- > hw/virtio/vhost-user-gpio.c| 405 + > hw/virt

[PATCH 00/12] virtio: add vhost-user-generic and reduce copy and paste

2023-04-14 Thread Alex Bennée
A lot of our vhost-user stubs are large chunks of boilerplate that do (mostly) the same thing. This series attempts to fix that by defining a new base class for vhost-user devices and then converting the rng and gpio devices to be based off them. You can even use vhost-user-device directly if you s