On Fri, Aug 23, 2019 at 03:49:26PM -0400, Dmitry Fomichev wrote: > Added a new boolean argument to blkconf_apply_backend_options() > to let the common block code know whether the chosen block > backend can handle zoned block devices or not. > > blkconf_apply_backend_options() then sets BLK_PERM_SUPPORT_ZONED > permission accordingly. The raw code can then use this permission > to allow or deny opening a zone device by a particular block driver. > > Signed-off-by: Dmitry Fomichev <dmitry.fomic...@wdc.com> > Acked-by: Paul Durrant <paul.durr...@citrix.com> > --- > hw/block/block.c | 8 ++++++-- > hw/block/fdc.c | 5 +++-- > hw/block/nvme.c | 2 +- > hw/block/virtio-blk.c | 2 +- > hw/block/xen-block.c | 2 +- > hw/ide/qdev.c | 2 +- > hw/scsi/scsi-disk.c | 13 +++++++------ > hw/scsi/scsi-generic.c | 2 +- > hw/usb/dev-storage.c | 2 +- > include/hw/block/block.h | 3 ++- > 10 files changed, 24 insertions(+), 17 deletions(-)
Reviewed-by: Stefan Hajnoczi <stefa...@redhat.com>
signature.asc
Description: PGP signature