Re: [PATCH] vfio/mtty: Enforce available_instances

From: Jason Gunthorpe
Date: Sun Jun 27 2021 - 19:20:42 EST


On Fri, Jun 25, 2021 at 03:26:11PM -0600, Alex Williamson wrote:
> The sample mtty mdev driver doesn't actually enforce the number of
> device instances it claims are available. Implement this properly.
>
> Signed-off-by: Alex Williamson <alex.williamson@xxxxxxxxxx>
> ---
>
> Applies to vfio next branch + Jason's atomic conversion
>
> samples/vfio-mdev/mtty.c | 22 ++++++++++++++++------
> 1 file changed, 16 insertions(+), 6 deletions(-)

Reviewed-by: Jason Gunthorpe <jgg@xxxxxxxxxx>

Jason