]> Git Repo - qemu.git/commit - hw/i386/x86-iommu.c
x86_iommu: move vtd_generate_msi_message in common file
authorSingh, Brijesh <[email protected]>
Mon, 1 Oct 2018 19:44:29 +0000 (19:44 +0000)
committerMichael S. Tsirkin <[email protected]>
Mon, 5 Nov 2018 18:24:02 +0000 (13:24 -0500)
commit35c2450191634bd0ac0ae3c6e9da3f590124e8e2
treed65f88b8918d225f37b955e894daea9f79086985
parent50662ce16da37479533e7ae9f515d4e9d49b9d14
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 <[email protected]>
Suggested-by: Peter Xu <[email protected]>
Reviewed-by: Eduardo Habkost <[email protected]>
Cc: Peter Xu <[email protected]>
Cc: "Michael S. Tsirkin" <[email protected]>
Cc: Paolo Bonzini <[email protected]>
Cc: Richard Henderson <[email protected]>
Cc: Eduardo Habkost <[email protected]>
Cc: Marcel Apfelbaum <[email protected]>
Cc: Tom Lendacky <[email protected]>
Cc: Suravee Suthikulpanit <[email protected]>
Reviewed-by: Michael S. Tsirkin <[email protected]>
Signed-off-by: Michael S. Tsirkin <[email protected]>
hw/i386/intel_iommu.c
hw/i386/x86-iommu.c
include/hw/i386/intel_iommu.h
include/hw/i386/x86-iommu.h
This page took 0.027323 seconds and 4 git commands to generate.