Re: [PATCH v6 09/13] block: add BlockRAMRegistrar

2022-10-13 Thread David Hildenbrand
On 13.10.22 20:05, Stefan Hajnoczi wrote: On Fri, Oct 07, 2022 at 12:51:21PM +0200, Stefano Garzarella wrote: On Thu, Oct 06, 2022 at 05:35:03PM -0400, Stefan Hajnoczi wrote: Emulated devices and other BlockBackend users wishing to take advantage of blk_register_buf() all have the same repetiti

Re: [PATCH v6 09/13] block: add BlockRAMRegistrar

2022-10-13 Thread Stefan Hajnoczi
On Fri, Oct 07, 2022 at 12:51:21PM +0200, Stefano Garzarella wrote: > On Thu, Oct 06, 2022 at 05:35:03PM -0400, Stefan Hajnoczi wrote: > > Emulated devices and other BlockBackend users wishing to take advantage > > of blk_register_buf() all have the same repetitive job: register > > RAMBlocks with

Re: [PATCH v6 09/13] block: add BlockRAMRegistrar

2022-10-07 Thread Stefano Garzarella
On Thu, Oct 06, 2022 at 05:35:03PM -0400, Stefan Hajnoczi wrote: Emulated devices and other BlockBackend users wishing to take advantage of blk_register_buf() all have the same repetitive job: register RAMBlocks with the BlockBackend using RAMBlockNotifier. Add a BlockRAMRegistrar API to do this

[PATCH v6 09/13] block: add BlockRAMRegistrar

2022-10-06 Thread Stefan Hajnoczi
Emulated devices and other BlockBackend users wishing to take advantage of blk_register_buf() all have the same repetitive job: register RAMBlocks with the BlockBackend using RAMBlockNotifier. Add a BlockRAMRegistrar API to do this. A later commit will use this from hw/block/virtio-blk.c. Signed-