]> git.baikalelectronics.ru Git - kernel.git/commit
iommu/vt-d: support extended root and context entries
authorDavid Woodhouse <David.Woodhouse@intel.com>
Fri, 13 Feb 2015 14:35:21 +0000 (14:35 +0000)
committerDavid Woodhouse <David.Woodhouse@intel.com>
Wed, 25 Mar 2015 15:46:13 +0000 (15:46 +0000)
commit7f13b96be53963554d2c298bc69bfde7e057e6c2
tree4c951e5c289e3f66c4472e3f84943ddc097e8f7f
parentac852e4737571d99543399a7547c8bdd58cc17e1
iommu/vt-d: support extended root and context entries

Add a new function iommu_context_addr() which takes care of the
differences and returns a pointer to a context entry which may be
in either format. The formats are binary compatible for all the old
fields anyway; the new one is just larger and some of the reserved
bits in the original 128 are now meaningful.

So far, nothing actually uses the new fields in the extended context
entry. Modulo hardware bugs with interpreting the new-style tables,
this should basically be a no-op.

Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
drivers/iommu/intel-iommu.c