Re: [PATCH 1/9] vfio: Make vfio_(un)register_notifier accept a vfio_device

Christoph Hellwig
2022-04-13T16:29:55Z

On Wed, Apr 13, 2022 at 01:18:14PM -0300, Jason Gunthorpe wrote:
> Yeah, I was thinking about that too, but on the other hand I think it
> is completely wrong that gvt requires kvm at all. A vfio_device is not
> supposed to be tightly linked to KVM - the only exception possibly
> being s390..

So i915/gvt uses it for:

- poking into the KVM GFN translations
- using the KVM page track notifier

No idea how these could be solved in a more generic way.