diff options
author | Sohil Mehta <sohil.mehta@intel.com> | 2018-11-22 00:29:33 +0100 |
---|---|---|
committer | Joerg Roedel <jroedel@suse.de> | 2018-11-22 17:07:14 +0100 |
commit | 3569dd07aaad71920c5ea4da2d5cc9a167c1ffd4 (patch) | |
tree | e4f47a987d299bd177977b56793078b480bb0c5c /Documentation/admin-guide/kernel-parameters.txt | |
parent | iommu/vtd: Cleanup dma_remapping.h header (diff) | |
download | linux-3569dd07aaad71920c5ea4da2d5cc9a167c1ffd4.tar.xz linux-3569dd07aaad71920c5ea4da2d5cc9a167c1ffd4.zip |
iommu/vt-d: Handle domain agaw being less than iommu agaw
The Intel IOMMU driver opportunistically skips a few top level page
tables from the domain paging directory while programming the IOMMU
context entry. However there is an implicit assumption in the code that
domain's adjusted guest address width (agaw) would always be greater
than IOMMU's agaw.
The IOMMU capabilities in an upcoming platform cause the domain's agaw
to be lower than IOMMU's agaw. The issue is seen when the IOMMU supports
both 4-level and 5-level paging. The domain builds a 4-level page table
based on agaw of 2. However the IOMMU's agaw is set as 3 (5-level). In
this case the code incorrectly tries to skip page page table levels.
This causes the IOMMU driver to avoid programming the context entry. The
fix handles this case and programs the context entry accordingly.
Fixes: de24e55395698 ("iommu/vt-d: Simplify domain_context_mapping_one")
Cc: <stable@vger.kernel.org>
Cc: Ashok Raj <ashok.raj@intel.com>
Cc: Jacob Pan <jacob.jun.pan@linux.intel.com>
Cc: Lu Baolu <baolu.lu@linux.intel.com>
Reviewed-by: Lu Baolu <baolu.lu@linux.intel.com>
Reported-by: Ramos Falcon, Ernesto R <ernesto.r.ramos.falcon@intel.com>
Tested-by: Ricardo Neri <ricardo.neri-calderon@linux.intel.com>
Signed-off-by: Sohil Mehta <sohil.mehta@intel.com>
Signed-off-by: Joerg Roedel <jroedel@suse.de>
Diffstat (limited to 'Documentation/admin-guide/kernel-parameters.txt')
0 files changed, 0 insertions, 0 deletions