[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH v14 12/22] vfio: Add notifier callback to parent
From: |
Kirti Wankhede |
Subject: |
Re: [Qemu-devel] [PATCH v14 12/22] vfio: Add notifier callback to parent's ops structure of mdev |
Date: |
Thu, 17 Nov 2016 10:35:58 +0530 |
On 11/17/2016 7:45 AM, Dong Jia Shi wrote:
> * Kirti Wankhede <address@hidden> [2016-11-17 02:16:24 +0530]:
>
> Hi Kirti,
>
>> diff --git a/drivers/vfio/mdev/vfio_mdev.c b/drivers/vfio/mdev/vfio_mdev.c
> [...]
>
>> @@ -51,6 +78,11 @@ static void vfio_mdev_release(void *device_data)
>> if (likely(parent->ops->release))
>> parent->ops->release(mdev);
>>
>> + if (likely(parent->ops->notifier)) {
>> + if (vfio_unregister_notifier(&mdev->dev, &mdev->nb))
>> + pr_err("Failed to unregister notifier for mdev\n");
> For the -ENOTTY case, we should not fail here either.
>
Removing the error print and ignoring return from this unregister call.
Updating this patch on this thread.
>> + }
>> +
>> module_put(THIS_MODULE);
>> }
>>
> [...]
>
- Re: [Qemu-devel] [PATCH v14 09/22] vfio iommu type1: Add task structure to vfio_dma, (continued)
[Qemu-devel] [PATCH v14 10/22] vfio iommu type1: Add support for mediated devices, Kirti Wankhede, 2016/11/16
[Qemu-devel] [PATCH v14 12/22] vfio: Add notifier callback to parent's ops structure of mdev, Kirti Wankhede, 2016/11/16
[Qemu-devel] [PATCH v14 14/22] vfio_pci: Update vfio_pci to use vfio_info_add_capability(), Kirti Wankhede, 2016/11/16
[Qemu-devel] [PATCH v14 15/22] vfio: Introduce vfio_set_irqs_validate_and_prepare(), Kirti Wankhede, 2016/11/16
[Qemu-devel] [PATCH v14 16/22] vfio_pci: Updated to use vfio_set_irqs_validate_and_prepare(), Kirti Wankhede, 2016/11/16