Re: [PATCH v4 07/14] vfio-user: run vfio-user context

2022-01-11 Thread Jag Raman
> On Jan 11, 2022, at 4:36 AM, Stefan Hajnoczi wrote: > > On Mon, Jan 10, 2022 at 05:56:25PM +, John Levon wrote: >> On Thu, Jan 06, 2022 at 01:35:32PM +, Stefan Hajnoczi wrote: >> >>> +static void vfu_object_attach_ctx(void *opaque) >>> +{ >>> +VfuObject *o = opaque;

Re: [PATCH v4 07/14] vfio-user: run vfio-user context

2022-01-11 Thread Stefan Hajnoczi
On Mon, Jan 10, 2022 at 05:56:25PM +, John Levon wrote: > On Thu, Jan 06, 2022 at 01:35:32PM +, Stefan Hajnoczi wrote: > > > > > >> +static void vfu_object_attach_ctx(void *opaque) > > > > >> +{ > > > > >> +VfuObject *o = opaque; > > > > >> +GPollFD pfds[1]; > > > > >> +int ret

Re: [PATCH v4 07/14] vfio-user: run vfio-user context

2022-01-10 Thread John Levon
On Thu, Jan 06, 2022 at 01:35:32PM +, Stefan Hajnoczi wrote: > > > >> +static void vfu_object_attach_ctx(void *opaque) > > > >> +{ > > > >> +VfuObject *o = opaque; > > > >> +GPollFD pfds[1]; > > > >> +int ret; > > > >> + > > > >> +qemu_set_fd_handler(o->vfu_poll_fd, NULL, NULL,

Re: [PATCH v4 07/14] vfio-user: run vfio-user context

2022-01-06 Thread Stefan Hajnoczi
> ; Marc-André Lureau > > ; Philippe Mathieu-Daudé > > ; pbonz...@redhat.com; alex.ben...@linaro.org; > > th...@redhat.com; cr...@redhat.com; waine...@redhat.com; > > bl...@redhat.com; Elena Ufimtseva ; John > > Levon ; John Johnson > > ; Thanos Makatos >

RE: [PATCH v4 07/14] vfio-user: run vfio-user context

2022-01-05 Thread Thanos Makatos
org; > th...@redhat.com; cr...@redhat.com; waine...@redhat.com; > bl...@redhat.com; Elena Ufimtseva ; John > Levon ; John Johnson > ; Thanos Makatos > ; Swapnil Ingle > Subject: Re: [PATCH v4 07/14] vfio-user: run vfio-user context > > > > > On Dec 16, 2021, at 6:17 AM

Re: [PATCH v4 07/14] vfio-user: run vfio-user context

2021-12-20 Thread Jag Raman
> On Dec 20, 2021, at 3:29 AM, Stefan Hajnoczi wrote: > > On Fri, Dec 17, 2021 at 05:59:48PM +, Jag Raman wrote: >> >> >>> On Dec 16, 2021, at 6:17 AM, Stefan Hajnoczi wrote: >>> >>> On Wed, Dec 15, 2021 at 10:35:31AM -0500, Jagannathan Raman wrote: @@ -114,6 +118,62 @@ static void

Re: [PATCH v4 07/14] vfio-user: run vfio-user context

2021-12-20 Thread Stefan Hajnoczi
On Fri, Dec 17, 2021 at 05:59:48PM +, Jag Raman wrote: > > > > On Dec 16, 2021, at 6:17 AM, Stefan Hajnoczi wrote: > > > > On Wed, Dec 15, 2021 at 10:35:31AM -0500, Jagannathan Raman wrote: > >> @@ -114,6 +118,62 @@ static void vfu_object_set_device(Object *obj, const > >> char *str, Error

Re: [PATCH v4 07/14] vfio-user: run vfio-user context

2021-12-17 Thread Jag Raman
> On Dec 16, 2021, at 6:17 AM, Stefan Hajnoczi wrote: > > On Wed, Dec 15, 2021 at 10:35:31AM -0500, Jagannathan Raman wrote: >> @@ -114,6 +118,62 @@ static void vfu_object_set_device(Object *obj, const >> char *str, Error **errp) >> vfu_object_init_ctx(o, errp); >> } >> >> +static void vf

Re: [PATCH v4 07/14] vfio-user: run vfio-user context

2021-12-16 Thread Stefan Hajnoczi
On Wed, Dec 15, 2021 at 10:35:31AM -0500, Jagannathan Raman wrote: > @@ -114,6 +118,62 @@ static void vfu_object_set_device(Object *obj, const > char *str, Error **errp) > vfu_object_init_ctx(o, errp); > } > > +static void vfu_object_ctx_run(void *opaque) > +{ > +VfuObject *o = opaque;

[PATCH v4 07/14] vfio-user: run vfio-user context

2021-12-15 Thread Jagannathan Raman
Setup a handler to run vfio-user context. The context is driven by messages to the file descriptor associated with it - get the fd for the context and hook up the handler with it Signed-off-by: Elena Ufimtseva Signed-off-by: John G Johnson Signed-off-by: Jagannathan Raman --- hw/remote/vfio-us