[Intel-gfx] [PATCH 1/9] vfio: Make vfio_(un)register_notifier accept a vfio_device
Christoph Hellwig
hch at lst.de
Wed Apr 13 16:06:01 UTC 2022
On Wed, Apr 13, 2022 at 08:39:52AM -0300, Jason Gunthorpe wrote:
> I already looked into that for a while, it is a real mess too because
> of how the notifiers are used by the current drivers, eg gvt assumes
> the notifier is called during its open_device callback to setup its
> kvm.
gvt very much expects kvm to be set before open and thus get the
cachup notifier, yes. And given that this is how qemu uses
the ioctl I think we can actually simplify this further and require
vfio_group_set_kvm to be called before open for s390/ap as well and
do away with this whole mess.
> For this series I prefer to leave it alone
Ok, let's do it one step at a time.
More information about the Intel-gfx
mailing list