diff options
| author | Stefan Hajnoczi | 2022-10-13 20:59:04 +0200 |
|---|---|---|
| committer | Stefan Hajnoczi | 2022-10-26 20:56:42 +0200 |
| commit | 7f9241d805b4711a4f7dc5489df0e7e30b8c1496 (patch) | |
| tree | b55d8bd8bcda24191e0119e5393b917445f59dfe /include/exec | |
| parent | numa: use QLIST_FOREACH_SAFE() for RAM block notifiers (diff) | |
| download | qemu-7f9241d805b4711a4f7dc5489df0e7e30b8c1496.tar.gz qemu-7f9241d805b4711a4f7dc5489df0e7e30b8c1496.tar.xz qemu-7f9241d805b4711a4f7dc5489df0e7e30b8c1496.zip | |
block: add BlockRAMRegistrar
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>
Reviewed-by: Stefano Garzarella <sgarzare@redhat.com>
Message-id: 20221013185908.1297568-10-stefanha@redhat.com
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Diffstat (limited to 'include/exec')
0 files changed, 0 insertions, 0 deletions
