[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [RFC v5 05/11] block: add block layer APIs resembling Linux ZonedBlo
From: |
Eric Blake |
Subject: |
Re: [RFC v5 05/11] block: add block layer APIs resembling Linux ZonedBlockDevice ioctls |
Date: |
Mon, 1 Aug 2022 08:38:46 -0500 |
User-agent: |
NeoMutt/20220429 |
On Mon, Aug 01, 2022 at 09:33:05AM +0800, Sam Li wrote:
> By adding zone management operations in BlockDriver, storage controller
> emulation can use the new block layer APIs including Report Zone and
> four zone management operations (open, close, finish, reset).
>
> BlockDriver can get zone information from null_blk device by refreshing
> BLockLimits.
>
> Signed-off-by: Sam Li <faithilikerun@gmail.com>
> ---
> block/block-backend.c | 47 ++++++
> block/coroutines.h | 6 +
> block/file-posix.c | 272 ++++++++++++++++++++++++++++++-
> block/io.c | 57 +++++++
> include/block/block-common.h | 1 -
> include/block/block-io.h | 13 ++
> include/block/block_int-common.h | 22 ++-
> include/block/raw-aio.h | 6 +-
> meson.build | 1 +
> qapi/block-core.json | 7 +-
> 10 files changed, 426 insertions(+), 6 deletions(-)
>
> +++ b/qapi/block-core.json
> @@ -2955,7 +2955,8 @@
> 'luks', 'nbd', 'nfs', 'null-aio', 'null-co', 'nvme', 'parallels',
> 'preallocate', 'qcow', 'qcow2', 'qed', 'quorum', 'raw', 'rbd',
> { 'name': 'replication', 'if': 'CONFIG_REPLICATION' },
> - 'ssh', 'throttle', 'vdi', 'vhdx', 'vmdk', 'vpc', 'vvfat' ] }
> + 'ssh', 'throttle', 'vdi', 'vhdx', 'vmdk', 'vpc', 'vvfat',
> + { 'name': 'zoned_host_device', 'if': 'CONFIG_BLKZONED' } ] }
Missing a documentation line of '# @zoned_host_deivce: Since 7.2'.
--
Eric Blake, Principal Software Engineer
Red Hat, Inc. +1-919-301-3266
Virtualization: qemu.org | libvirt.org
- Re: [RFC v5 05/11] block: add block layer APIs resembling Linux ZonedBlockDevice ioctls,
Eric Blake <=