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 <faithilike...@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