Messages in this thread | | | Subject | Re: [RFC v6][PATCH 1/4] intel_txt: Intel(R) TXT boot support | From | David Woodhouse <> | Date | Thu, 03 Sep 2009 13:28:34 +0100 |
| |
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@intel.com Intel Corporation
| |