[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH v6 12/13] blkio: implement BDRV_REQ_REGISTERED_BUF optimizati
From: |
Stefan Hajnoczi |
Subject: |
Re: [PATCH v6 12/13] blkio: implement BDRV_REQ_REGISTERED_BUF optimization |
Date: |
Thu, 13 Oct 2022 14:42:18 -0400 |
On Mon, Oct 10, 2022 at 02:57:47PM +0100, Alberto Faria wrote:
> On Thu, Oct 6, 2022 at 10:35 PM Stefan Hajnoczi <stefanha@redhat.com> wrote:
> > @@ -620,15 +767,39 @@ static int blkio_file_open(BlockDriverState *bs,
> > QDict *options, int flags,
> > return ret;
> > }
> >
> > + ret = blkio_get_bool(s->blkio,
> > + "mem-regions-pinned",
>
> Should the property be named "may-pin-mem-regions" or similar? For
> drivers like vhost-user we may not be able to determine for sure
> whether memory regions will be pinned, and making that uncertainty
> explicit in the name may be a good idea, for instance to ensure users
> don't decide to rely on memory regions being pinned when the property
> is true.
Sounds good to me. I'll change the property name in this patch and then
send a libblkio patch that adds the property.
Stefan
signature.asc
Description: PGP signature
- Re: [PATCH v6 04/13] block: pass size to bdrv_unregister_buf(), (continued)
- [PATCH v6 08/13] numa: use QLIST_FOREACH_SAFE() for RAM block notifiers, Stefan Hajnoczi, 2022/10/06
- [PATCH v6 06/13] block: add BDRV_REQ_REGISTERED_BUF request flag, Stefan Hajnoczi, 2022/10/06
- [PATCH v6 07/13] block: return errors from bdrv_register_buf(), Stefan Hajnoczi, 2022/10/06
- [PATCH v6 13/13] virtio-blk: use BDRV_REQ_REGISTERED_BUF optimization hint, Stefan Hajnoczi, 2022/10/06
- [PATCH v6 11/13] stubs: add qemu_ram_block_from_host() and qemu_ram_get_fd(), Stefan Hajnoczi, 2022/10/06
- [PATCH v6 10/13] exec/cpu-common: add qemu_ram_get_fd(), Stefan Hajnoczi, 2022/10/06
- [PATCH v6 12/13] blkio: implement BDRV_REQ_REGISTERED_BUF optimization, Stefan Hajnoczi, 2022/10/06
- Re: [PATCH v6 00/13] blkio: add libblkio BlockDriver, Alberto Faria, 2022/10/10