diff options
| author | Singh, Brijesh | 2018-10-01 21:44:29 +0200 |
|---|---|---|
| committer | Michael S. Tsirkin | 2018-11-05 19:24:02 +0100 |
| commit | 35c2450191634bd0ac0ae3c6e9da3f590124e8e2 (patch) | |
| tree | d65f88b8918d225f37b955e894daea9f79086985 /scripts/switch-timer-api | |
| parent | x86_iommu: move the kernel-irqchip check in common code (diff) | |
| download | qemu-35c2450191634bd0ac0ae3c6e9da3f590124e8e2.tar.gz qemu-35c2450191634bd0ac0ae3c6e9da3f590124e8e2.tar.xz qemu-35c2450191634bd0ac0ae3c6e9da3f590124e8e2.zip | |
x86_iommu: move vtd_generate_msi_message in common file
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.singh@amd.com>
Suggested-by: Peter Xu <peterx@redhat.com>
Reviewed-by: Eduardo Habkost <ehabkost@redhat.com>
Cc: Peter Xu <peterx@redhat.com>
Cc: "Michael S. Tsirkin" <mst@redhat.com>
Cc: Paolo Bonzini <pbonzini@redhat.com>
Cc: Richard Henderson <rth@twiddle.net>
Cc: Eduardo Habkost <ehabkost@redhat.com>
Cc: Marcel Apfelbaum <marcel.apfelbaum@gmail.com>
Cc: Tom Lendacky <Thomas.Lendacky@amd.com>
Cc: Suravee Suthikulpanit <Suravee.Suthikulpanit@amd.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Diffstat (limited to 'scripts/switch-timer-api')
0 files changed, 0 insertions, 0 deletions
