Re: [PATCH v9 2/5] generic vhost user server

2020-08-17 Thread Coiby Xu
On Thu, Jun 18, 2020 at 03:29:26PM +0200, Kevin Wolf wrote: Am 14.06.2020 um 20:39 hat Coiby Xu geschrieben: Sharing QEMU devices via vhost-user protocol. Only one vhost-user client can connect to the server one time. Signed-off-by: Coiby Xu --- util/Makefile.objs | 1 + util/vhost-u

Re: [PATCH v9 2/5] generic vhost user server

2020-08-17 Thread Coiby Xu
On Fri, Jun 19, 2020 at 01:13:00PM +0100, Stefan Hajnoczi wrote: On Mon, Jun 15, 2020 at 02:39:04AM +0800, Coiby Xu wrote: +/* + * a wrapper for vu_kick_cb + * + * since aio_dispatch can only pass one user data pointer to the + * callback function, pack VuDev and pvt into a struct. Then unpack i

Re: [PATCH v9 2/5] generic vhost user server

2020-06-19 Thread Stefan Hajnoczi
On Mon, Jun 15, 2020 at 02:39:04AM +0800, Coiby Xu wrote: > +/* > + * a wrapper for vu_kick_cb > + * > + * since aio_dispatch can only pass one user data pointer to the > + * callback function, pack VuDev and pvt into a struct. Then unpack it > + * and pass them to vu_kick_cb > + */ > +static void

Re: [PATCH v9 2/5] generic vhost user server

2020-06-18 Thread Kevin Wolf
Am 14.06.2020 um 20:39 hat Coiby Xu geschrieben: > Sharing QEMU devices via vhost-user protocol. > > Only one vhost-user client can connect to the server one time. > > Signed-off-by: Coiby Xu > --- > util/Makefile.objs | 1 + > util/vhost-user-server.c | 400

[PATCH v9 2/5] generic vhost user server

2020-06-14 Thread Coiby Xu
Sharing QEMU devices via vhost-user protocol. Only one vhost-user client can connect to the server one time. Signed-off-by: Coiby Xu --- util/Makefile.objs | 1 + util/vhost-user-server.c | 400 +++ util/vhost-user-server.h | 61 ++ 3 files chang