On Sun, May 03, 2020 at 05:25:28PM -0700, Dey, Megha wrote: > > > The use case if when we have a device assigned to a guest and we > > > want to allocate IMS(platform-msi) interrupts for that > > > guest-assigned device. Currently, this is abstracted through a mdev > > > interface. > > > > And the mdev has the pci_device internally, so it should simply pass > > that pci_device to the platform_msi machinery. > > hmm i am not sure I follow this. mdev has a pci_device internally? which > struct are you referring to here? mdev in general may not, but any ADI trying to use mdev will necessarily have access to a struct pci_device. > mdev is merely a micropartitioned PCI device right, which no real PCI > resource backing. I am not how else we can find the IRQ domain associated > with an mdev.. ADI always has real PCI resource backing. Jason