Messages in this thread Patch in this message | | | From | Feng Wu <> | Subject | [v5 3/9] iommu, x86: Abstract modify_irte() to accept two format of irte | Date | Wed, 20 May 2015 13:15:31 +0800 |
| |
After introducing VT-d posted-interrupts, we have two format of IRTE: remapped and posted. This patch make modify_irte() suitable for both of them.
Signed-off-by: Feng Wu <feng.wu@intel.com> --- drivers/iommu/intel_irq_remapping.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/iommu/intel_irq_remapping.c b/drivers/iommu/intel_irq_remapping.c index 8fad71c..1575b9e 100644 --- a/drivers/iommu/intel_irq_remapping.c +++ b/drivers/iommu/intel_irq_remapping.c @@ -122,11 +122,11 @@ static int qi_flush_iec(struct intel_iommu *iommu, int index, int mask) } static int modify_irte(struct irq_2_iommu *irq_iommu, - struct irte *irte_modified) + void *data) { struct intel_iommu *iommu; unsigned long flags; - struct irte *irte; + struct irte *irte, *irte_modified = (struct irte *)data; int rc, index; if (!irq_iommu) -- 2.1.0
| |