Re: [PATCH 2/4] Intel iommu: Speed up processing of theidentity_mapping function

From: Chris Wright
Date: Wed Mar 30 2011 - 15:20:06 EST


* Mike Travis (travis@xxxxxxx) wrote:
> @@ -2138,6 +2134,7 @@ static int domain_add_dev_info(struct dm
> list_add(&info->global, &device_domain_list);
> pdev->dev.archdata.iommu = info;

The si_domain is cached right here...can you not use this instead of
adding an iommu impl. specific bit to pci_dev?

> spin_unlock_irqrestore(&device_domain_lock, flags);
> + pdev->is_identity_mapped = (domain == si_domain);
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/