Re: [PATCH 2/2] virtio-blk: add zoned storage emulation for zoned devices

2022-09-28 Thread Damien Le Moal
On 2022/09/29 4:55, Sam Li wrote: > Stefan Hajnoczi 于2022年9月20日周二 05:31写道: [...] >>> +static void virtio_blk_zone_append_complete(void *opaque, int ret) { >>> +ZoneCmdData *data = opaque; >>> +VirtIOBlockReq *req = data->req; >>> +VirtIOBlock *s = req->dev; >>> +VirtIODevice *vdev

Re: [PATCH 2/2] virtio-blk: add zoned storage emulation for zoned devices

2022-09-28 Thread Sam Li
Stefan Hajnoczi 于2022年9月20日周二 05:31写道: > > On Sat, Sep 10, 2022 at 02:50:57PM +0800, Sam Li wrote: > > This patch extends virtio-blk emulation to handle zoned device commands > > by calling the new block layer APIs to perform zoned device I/O on > > behalf of the guest. It supports Report Zone, fo

Re: [PATCH 2/2] virtio-blk: add zoned storage emulation for zoned devices

2022-09-19 Thread Stefan Hajnoczi
On Sat, Sep 10, 2022 at 02:50:57PM +0800, Sam Li wrote: > This patch extends virtio-blk emulation to handle zoned device commands > by calling the new block layer APIs to perform zoned device I/O on > behalf of the guest. It supports Report Zone, four zone oparations (open, > close, finish, reset),

[PATCH 2/2] virtio-blk: add zoned storage emulation for zoned devices

2022-09-09 Thread Sam Li
This patch extends virtio-blk emulation to handle zoned device commands by calling the new block layer APIs to perform zoned device I/O on behalf of the guest. It supports Report Zone, four zone oparations (open, close, finish, reset), and Append Zone. The VIRTIO_BLK_F_ZONED feature bit will only