diff options
author | Jacob Pan | 2020-01-02 08:18:04 +0800 |
---|---|---|
committer | Joerg Roedel | 2020-01-07 14:05:57 +0100 |
commit | 79db7e1b4cf2a006f556099c13de3b12970fc6e3 (patch) | |
tree | 44fb57d99430aa20ab21a010cc8f3fbdb9ac79cb /fs | |
parent | ff3dc6521f78132eaaf62a842c3ece9060dcde26 (diff) |
iommu/vt-d: Match CPU and IOMMU paging mode
When setting up first level page tables for sharing with CPU, we need
to ensure IOMMU can support no less than the levels supported by the
CPU.
It is not adequate, as in the current code, to set up 5-level paging
in PASID entry First Level Paging Mode(FLPM) solely based on CPU.
Currently, intel_pasid_setup_first_level() is only used by native SVM
code which already checks paging mode matches. However, future use of
this helper function may not be limited to native SVM.
https://lkml.org/lkml/2019/11/18/1037
Fixes: 437f35e1cd4c8 ("iommu/vt-d: Add first level page table interface")
Signed-off-by: Jacob Pan <jacob.jun.pan@linux.intel.com>
Reviewed-by: Eric Auger <eric.auger@redhat.com>
Signed-off-by: Lu Baolu <baolu.lu@linux.intel.com>
Signed-off-by: Joerg Roedel <jroedel@suse.de>
Diffstat (limited to 'fs')
0 files changed, 0 insertions, 0 deletions