Re: [PATCH v2 3/5] a standone-alone tool to directly share disk image file via vhost-user protocol

2020-02-12 Thread Coiby Xu
> > > Yes, I think at least for the moment it should work fine this way. > > > Eventually, I'd like to integrate it with --export (and associated QMP > > > commands, which are still to be created), too. Maybe at that point we > > > want to make the QOM object not user creatable any more. > > > > Do

Re: [PATCH v2 3/5] a standone-alone tool to directly share disk image file via vhost-user protocol

2020-02-02 Thread Kevin Wolf
Am 31.01.2020 um 17:42 hat Coiby Xu geschrieben: > > Yes, I think at least for the moment it should work fine this way. > > Eventually, I'd like to integrate it with --export (and associated QMP > > commands, which are still to be created), too. Maybe at that point we > > want to make the QOM objec

Re: [PATCH v2 3/5] a standone-alone tool to directly share disk image file via vhost-user protocol

2020-01-31 Thread Coiby Xu
Hi Kevin, > Yes, I think at least for the moment it should work fine this way. > Eventually, I'd like to integrate it with --export (and associated QMP > commands, which are still to be created), too. Maybe at that point we > want to make the QOM object not user creatable any more. Does it mean T

Re: [PATCH v2 3/5] a standone-alone tool to directly share disk image file via vhost-user protocol

2020-01-17 Thread Kevin Wolf
Am 17.01.2020 um 09:12 hat Coiby Xu geschrieben: > Excellent! I will add an option (or object property) for > vhost-user-blk server oject which will tell the daemon process to exit > when the client disconnects, thus "make check-qtest" will not get held > by this daemon process. After that since Ke

Re: [PATCH v2 3/5] a standone-alone tool to directly share disk image file via vhost-user protocol

2020-01-17 Thread Coiby Xu
Excellent! I will add an option (or object property) for vhost-user-blk server oject which will tell the daemon process to exit when the client disconnects, thus "make check-qtest" will not get held by this daemon process. After that since Kevin's qemu-storage-daemon support "-object" option (https

Re: [PATCH v2 3/5] a standone-alone tool to directly share disk image file via vhost-user protocol

2020-01-16 Thread Stefan Hajnoczi
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 > dev

[PATCH v2 3/5] a standone-alone tool to directly share disk image file via vhost-user protocol

2020-01-14 Thread Coiby Xu
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 +