qemu-block
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


From: Stefano Garzarella
Subject: Re: [PATCH v7 09/13] block: add BlockRAMRegistrar
Date: Wed, 19 Oct 2022 11:50:00 +0200

On Thu, Oct 13, 2022 at 02:59:04PM -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. A later commit will use this
from hw/block/virtio-blk.c.

Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
---
MAINTAINERS                          |  1 +
include/sysemu/block-ram-registrar.h | 37 ++++++++++++++++++
block/block-ram-registrar.c          | 58 ++++++++++++++++++++++++++++
block/meson.build                    |  1 +
4 files changed, 97 insertions(+)
create mode 100644 include/sysemu/block-ram-registrar.h
create mode 100644 block/block-ram-registrar.c

Reviewed-by: Stefano Garzarella <sgarzare@redhat.com>




reply via email to

[Prev in Thread] Current Thread [Next in Thread]