Re: [RFC v6][PATCH 1/4] intel_txt: Intel(R) TXT boot support

From: David Woodhouse
Date: Thu Sep 03 2009 - 08:28:51 EST


On Tue, 2009-06-30 at 19:30 -0700, Joseph Cihula wrote:
>
> +int tboot_force_iommu(void)
> +{
> + if (!tboot_enabled())
> + return 0;
> +
> + if (no_iommu || swiotlb || dmar_disabled)
> + pr_warning("Forcing Intel-IOMMU to enabled\n");
> +
> + dmar_disabled = 0;
> +#ifdef CONFIG_SWIOTLB
> + swiotlb = 0;
> +#endif
> + no_iommu = 0;
> +
> + return 1;
> +}

Ick. The logic for selecting which IOMMU is used is convoluted enough
already, without adding this here.

--
David Woodhouse Open Source Technology Centre
David.Woodhouse@xxxxxxxxx Intel Corporation

--
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/