Note: the virtio-blk headers isn't upstream in the kernel yet therefore marked as an RFC.
v3: - use qemuio_from_buffer to write status bit [Stefan] - avoid using req->elem directly [Stefan] - fix error checkings and memory leak [Stefan] v2: - change units of emulated zone op coresponding to block layer APIs - modify error checking cases [Stefan, Damien] v1: - add zoned storage emulation Sam Li (2): include: update virtio_blk headers from Linux 5.19-rc2+ virtio-blk: add zoned storage emulation for zoned devices hw/block/virtio-blk-common.c | 2 + hw/block/virtio-blk.c | 412 +++++++++++++++++++- include/hw/virtio/virtio-blk.h | 11 +- include/standard-headers/linux/virtio_blk.h | 109 ++++++ 4 files changed, 531 insertions(+), 3 deletions(-) -- 2.37.3