Re: [PATCH v6 09/19] vfio-user: find and init PCI device

2022-02-28 Thread Jag Raman
> On Feb 21, 2022, at 10:57 AM, Stefan Hajnoczi wrote: > > On Thu, Feb 17, 2022 at 02:48:56AM -0500, Jagannathan Raman wrote: >> @@ -221,6 +272,14 @@ static void vfu_object_finalize(Object *obj) >> >> o->device = NULL; >> >> +if (o->unplug_blocker && o->pci_dev) { >> +qdev_de

Re: [PATCH v6 09/19] vfio-user: find and init PCI device

2022-02-21 Thread Stefan Hajnoczi
On Thu, Feb 17, 2022 at 02:48:56AM -0500, Jagannathan Raman wrote: > @@ -221,6 +272,14 @@ static void vfu_object_finalize(Object *obj) > > o->device = NULL; > > +if (o->unplug_blocker && o->pci_dev) { > +qdev_del_unplug_blocker(DEVICE(o->pci_dev), o->unplug_blocker); > +

[PATCH v6 09/19] vfio-user: find and init PCI device

2022-02-16 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 Reviewed-by: Stefan Hajnoczi --- hw/remote/vfio-user-obj.c | 59 +++