[GEDI] [PATCH v7 13/13] virtio-blk: use BDRV_REQ_REGISTERED_BUF optimization hint

Stefano Garzarella sgarzare at redhat.com
Wed Oct 19 09:51:40 UTC 2022


On Thu, Oct 13, 2022 at 02:59:08PM -0400, Stefan Hajnoczi wrote:
>Register guest RAM using BlockRAMRegistrar and set the
>BDRV_REQ_REGISTERED_BUF flag so block drivers can optimize memory
>accesses in I/O requests.
>
>This is for vdpa-blk, vhost-user-blk, and other I/O interfaces that rely
>on DMA mapping/unmapping.
>
>Signed-off-by: Stefan Hajnoczi <stefanha at redhat.com>
>---
> include/hw/virtio/virtio-blk.h |  2 ++
> hw/block/virtio-blk.c          | 39 ++++++++++++++++++++++------------
> 2 files changed, 27 insertions(+), 14 deletions(-)

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



More information about the integration mailing list