On Sun, 2013-06-30 at 10:59 +1000, Alexey Kardashevskiy wrote: > > 1) A PCI bus function to do the MSI -> virq mapping > > 2) On x86 (and e500), this is implemented by calling > > kvm_irqchip_add_msi_route() > > 3) On pseries, this just returns msi->data > > > > Perhaps (2) can just be the default PCI bus implementation to simplify > > things. > > > hw/pci/pci.c does not have any kvm code yet and I would like not to be the > first person who tries adding this there :) > But ok, I'll do it.
Unless I'm confused (which is very possible) I seem to remember that there was duplication of that MSI / KVM mapping between virtio-pci and vfio as well, so it makes sense to move it to the PCI code. Cheers, Ben.