lkml.org 
[lkml]   [2015]   [May]   [20]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[v5 3/9] iommu, x86: Abstract modify_irte() to accept two format of irte
Date
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


\
 
 \ /
  Last update: 2015-05-20 07:41    [W:0.062 / U:0.072 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site