Re: [PATCH 06/12] vfio/ap_ops: Convert to use vfio_register_group_dev()

Jason Gunthorpe
2021-05-03T20:33:24Z

On Mon, May 03, 2021 at 04:14:43PM -0400, Tony Krowiak wrote:

> This case will occur whenever a user removes the mdev
> by echoing a '1' into the mdev's sysfs 'remove' attribute
> file. I'm not sure it can be considered graceful to take away
> all of the crypto devices from a guest while it is running,
> but there is a way to process the remove callback without
> leaving things in a "weird, half-dead state".

It is acceptable to just sleep here until whatever user controlled
condition is resolved.

Jason