Re: [RFC PATCH 2/3] vfio/ims: Support emulated interrupts

From: Jason Gunthorpe
Date: Fri Aug 25 2023 - 13:00:37 EST


On Fri, Aug 25, 2023 at 09:55:52AM -0700, Reinette Chatre wrote:

> Thank you very much for your guidance. Instead of Jason's expectation that
> IMS would be a backend of MSI-X this will change to IMS and MSI-X both being
> a backend to a new interface. It is difficult for me to envision the end
> result so I will work on an implementation based on my understanding of
> your proposal that we can use for further discussion.

I think the point is that emulating MSI-X is kind of tricky and should
be common VFIO code, regardless of what path it takes.

So I would expect some library code to do this, entry points the
vfio_device can hook into its callbacks (eg config space and rw of a
page)

Then the other side would connect to the physical implementation,
sw,ims,msi-x,future

Jason