> 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
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);
> +
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 +++