On Fri, Sep 14, 2018 at 01:26:57PM -0500, Brijesh Singh wrote: > The vtd_generate_msi_message() in intel-iommu is used to construct a MSI > Message from IRQ. A similar function will be needed when we add interrupt > remapping support in amd-iommu. Moving the function in common file to > avoid the code duplication. Rename it to x86_iommu_irq_to_msi_message(). > There is no logic changes in the code flow. > > Signed-off-by: Brijesh Singh <brijesh.si...@amd.com> > Suggested-by: Peter Xu <pet...@redhat.com> > Cc: "Michael S. Tsirkin" <m...@redhat.com> > Cc: Paolo Bonzini <pbonz...@redhat.com> > Cc: Richard Henderson <r...@twiddle.net> > Cc: Eduardo Habkost <ehabk...@redhat.com> > Cc: Marcel Apfelbaum <marcel.apfelb...@gmail.com> > Cc: Tom Lendacky <thomas.lenda...@amd.com> > Cc: Suravee Suthikulpanit <suravee.suthikulpa...@amd.com>
Generic code match the original struct/function exactly. Reviewed-by: Eduardo Habkost <ehabk...@redhat.com> -- Eduardo