[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [PATCH 2/6] VT-d: don't open-code dmar_readl()
While at it also drop the unnecessary use of a local variable there. Signed-off-by: Jan Beulich <jbeulich@xxxxxxxx> --- a/xen/drivers/passthrough/vtd/iommu.c +++ b/xen/drivers/passthrough/vtd/iommu.c @@ -990,8 +990,7 @@ static void __do_iommu_page_fault(struct } clear_overflow: /* clear primary fault overflow */ - fault_status = readl(iommu->reg + DMAR_FSTS_REG); - if ( fault_status & DMA_FSTS_PFO ) + if ( dmar_readl(iommu->reg, DMAR_FSTS_REG) & DMA_FSTS_PFO ) { spin_lock_irqsave(&iommu->register_lock, flags); dmar_writel(iommu->reg, DMAR_FSTS_REG, DMA_FSTS_PFO);
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |