diff options
author | Jacob Pan <jacob.jun.pan@linux.intel.com> | 2020-05-16 09:20:51 +0300 |
---|---|---|
committer | Joerg Roedel <jroedel@suse.de> | 2020-05-18 16:37:25 +0300 |
commit | 3375303e82877552f3b2b42309e8233fe715fd9f (patch) | |
tree | 73ae1b229a5e05e01b2754c8464504add1912cfc /scripts/gdb/linux/utils.py | |
parent | 24f27d32ab6b71dedcbbeeab8f9bdc143b539ac0 (diff) | |
download | linux-3375303e82877552f3b2b42309e8233fe715fd9f.tar.xz |
iommu/vt-d: Add custom allocator for IOASID
When VT-d driver runs in the guest, PASID allocation must be
performed via virtual command interface. This patch registers a
custom IOASID allocator which takes precedence over the default
XArray based allocator. The resulting IOASID allocation will always
come from the host. This ensures that PASID namespace is system-
wide.
Virtual command registers are used in the guest only, to prevent
vmexit cost, we cache the capability and store it during initialization.
Signed-off-by: Liu, Yi L <yi.l.liu@intel.com>
Signed-off-by: Jacob Pan <jacob.jun.pan@linux.intel.com>
Signed-off-by: Lu Baolu <baolu.lu@linux.intel.com>
Reviewed-by: Eric Auger <eric.auger@redhat.com>
Link: https://lore.kernel.org/r/20200516062101.29541-9-baolu.lu@linux.intel.com
Signed-off-by: Joerg Roedel <jroedel@suse.de>
Diffstat (limited to 'scripts/gdb/linux/utils.py')
0 files changed, 0 insertions, 0 deletions