Re: [PATCH 14/15] vfio/mdev: add mdev available instance checking to the core

Christoph Hellwig
2022-07-08T05:48:43Z

On Wed, Jul 06, 2022 at 11:08:57PM -0400, Eric Farman wrote:
> If I read this right, .get_available and .max_instances are mutually
> exclusive.

Yes.

> Which means that available_instances_show() from patch 12
> would need to emit parent->available_instances if .get_available is
> NULL.

Indeed.