Re: [PATCH v4 15/15] vfio: Add struct device to vfio_device

From: Jason Gunthorpe
Date: Thu Sep 29 2022 - 13:50:09 EST


On Thu, Sep 29, 2022 at 10:55:19AM -0600, Alex Williamson wrote:
> Hi Kevin,
>
> This introduced the regression discovered here:
>
> https://lore.kernel.org/all/20220928125650.0a2ea297.alex.williamson@xxxxxxxxxx/
>
> Seems we're not releasing the resources when removing an mdev. This is
> a regression, so it needs to be fixed or reverted before the merge
> window. Thanks,

My guess at the fix for this:

https://lore.kernel.org/r/0-v1-013609965fe8+9d-vfio_gvt_unregister_jgg@xxxxxxxxxx

Jason