Re: [PATCH v1 07/14] vfio: Add a device notifier interface

From: Christoph Hellwig
Date: Wed Mar 10 2021 - 02:57:55 EST


On Mon, Mar 08, 2021 at 02:48:30PM -0700, Alex Williamson wrote:
> Using a vfio device, a notifier block can be registered to receive
> select device events. Notifiers can only be registered for contained
> devices, ie. they are available through a user context. Registration
> of a notifier increments the reference to that container context
> therefore notifiers must minimally respond to the release event by
> asynchronously removing notifiers.

Notifiers generally are a horrible multiplexed API. Can't we just
add a proper method table for the intended communication channel?