Re: [PATCH v8 3/4] vhost-user block device backend server

2020-06-14 Thread Coiby Xu
On Thu, Jun 11, 2020 at 04:24:52PM +0100, Stefan Hajnoczi wrote: On Fri, Jun 05, 2020 at 07:35:37AM +0800, Coiby Xu wrote: +static void coroutine_fn vu_block_virtio_process_req(void *opaque) +{ +struct req_data *data = opaque; +VuServer *server = data->server; +VuVirtq *vq = data->vq

Re: [PATCH v8 3/4] vhost-user block device backend server

2020-06-11 Thread Stefan Hajnoczi
On Fri, Jun 05, 2020 at 07:35:37AM +0800, Coiby Xu wrote: > +static void coroutine_fn vu_block_virtio_process_req(void *opaque) > +{ > +struct req_data *data = opaque; > +VuServer *server = data->server; > +VuVirtq *vq = data->vq; > +VuVirtqElement *elem = data->elem; > +uint32_

[PATCH v8 3/4] vhost-user block device backend server

2020-06-04 Thread Coiby Xu
By making use of libvhost-user, block device drive can be shared to the connected vhost-user client. Only one client can connect to the server one time. Since vhost-user-server needs a block drive to be created first, delay the creation of this object. Signed-off-by: Coiby Xu --- block/Makefile