> Would is be possible for userspace to simply leave room for MSI bank
> mapping (how much room could be determined by something like
> VFIO_IOMMU_GET_MSI_BANK_COUNT) then document the API that userspace
can
> DMA_MAP starting at the 0x0 address of the aperture, growing up, and
> VFIO will map banks on demand at the top of the aperture, growing
down?
> Wouldn't that avoid a lot of issues with userspace needing to know
> anything about MSI banks (other than count) and coordinating irq
numbers
> and enabling handlers?
This is basically option #A in the original proposals sent. I like
this approach, in that it
is simpler and keeps user space mostly out of this...which is
consistent with how things are done
on x86. User space just needs to know how many windows to leave at
the top of the aperture.
The kernel then has the flexibility to use those windows how it wants.
But one question, is when should the kernel actually map (and unmap)
the MSI banks.