Re: [PATCH v4 06/14] vfio-user: find and init PCI device

2021-12-16 Thread Jag Raman
> On Dec 16, 2021, at 5:39 AM, Stefan Hajnoczi wrote: > > On Wed, Dec 15, 2021 at 10:35:30AM -0500, Jagannathan Raman wrote: >> @@ -150,6 +157,38 @@ static void vfu_object_init_ctx(VfuObject *o, Error >> **errp) >> +o->pci_dev = PCI_DEVICE(dev); > ... >> @@ -190,6 +229,8 @@ static void vf

Re: [PATCH v4 06/14] vfio-user: find and init PCI device

2021-12-16 Thread Stefan Hajnoczi
On Wed, Dec 15, 2021 at 10:35:30AM -0500, Jagannathan Raman wrote: > @@ -150,6 +157,38 @@ static void vfu_object_init_ctx(VfuObject *o, Error > **errp) > +o->pci_dev = PCI_DEVICE(dev); ... > @@ -190,6 +229,8 @@ static void vfu_object_finalize(Object *obj) > > o->device = NULL; > > +

[PATCH v4 06/14] vfio-user: find and init PCI device

2021-12-15 Thread Jagannathan Raman
Find the PCI device with specified id. Initialize the device context with the QEMU PCI device Signed-off-by: Elena Ufimtseva Signed-off-by: John G Johnson Signed-off-by: Jagannathan Raman --- hw/remote/vfio-user-obj.c | 41 +++ 1 file changed, 41 insertions(