qemu-devel
[Top][All Lists]
Advanced

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

Re: [RFC v3 8/8] virtio-blk: use BDRV_REQ_REGISTERED_BUF optimization hi


From: Hanna Reitz
Subject: Re: [RFC v3 8/8] virtio-blk: use BDRV_REQ_REGISTERED_BUF optimization hint
Date: Thu, 14 Jul 2022 12:16:16 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.10.0

On 08.07.22 06:17, 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@redhat.com>
---
  include/hw/virtio/virtio-blk.h |  2 ++
  hw/block/virtio-blk.c          | 13 +++++++++----
  2 files changed, 11 insertions(+), 4 deletions(-)

Seems fair, but as said on patch 5, I’m quite wary of “register guest RAM”.  How can we guarantee that it won’t be too fragmented to be registerable with either nvme.c or blkio.c?

Hanna




reply via email to

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