On Tue, Jan 14, 2020 at 10:06:18PM +0800, Coiby Xu wrote: > vhost-user-blk can have played as vhost-user backend but it only supports raw file and don't support VIRTIO_BLK_T_DISCARD and VIRTIO_BLK_T_WRITE_ZEROES operations on raw file (ioctl(fd, BLKDISCARD) is only valid for real block device). > > Signed-off-by: Coiby Xu > --- > qemu-vu.c | 264 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ > 1 file changed, 264 insertions(+) > create mode 100644 qemu-vu.c Kevin has been working on qemu-storage-daemon, a tool for running NBD exports, block jobs, and other storage features that are not part of a guest. I think qemu-storage-daemon would be the appropriate tool for running vhost-user-blk servers. A dedicated binary is not necessary. Stefan