Re: [PATCH v4 05/14] vfio-user: instantiate vfio-user context

2021-12-16 Thread Jag Raman
> On Dec 16, 2021, at 4:55 AM, Stefan Hajnoczi wrote: > > On Wed, Dec 15, 2021 at 10:35:29AM -0500, Jagannathan Raman wrote: >> +static void vfu_object_init_ctx(VfuObject *o, Error **errp) >> +{ >> +ERRP_GUARD(); >> + >> +if (o->vfu_ctx || !o->socket || !o->device || >> +!p

Re: [PATCH v4 05/14] vfio-user: instantiate vfio-user context

2021-12-16 Thread Stefan Hajnoczi
On Wed, Dec 15, 2021 at 10:35:29AM -0500, Jagannathan Raman wrote: > +static void vfu_object_init_ctx(VfuObject *o, Error **errp) > +{ > +ERRP_GUARD(); > + > +if (o->vfu_ctx || !o->socket || !o->device || > +!phase_check(PHASE_MACHINE_READY)) { > +return; > +} > + >

[PATCH v4 05/14] vfio-user: instantiate vfio-user context

2021-12-15 Thread Jagannathan Raman
create a context with the vfio-user library to run a PCI device Signed-off-by: Elena Ufimtseva Signed-off-by: John G Johnson Signed-off-by: Jagannathan Raman --- hw/remote/vfio-user-obj.c | 69 +++ 1 file changed, 69 insertions(+) diff --git a/hw/remote/vfi