kernel-hacking-2024-linux-s.../drivers/iommu
Will Deacon 1463fe44fd iommu/arm-smmu: Don't use VMIDs for stage-1 translations
Although permitted by the architecture, using VMIDs for stage-1
translations causes a complete nightmare for hypervisors, who end up
having to virtualise the VMID space across VMs, which may be using
multiple VMIDs each.

To make life easier for hypervisors (which might just decide not to
support this VMID virtualisation), this patch reworks the stage-1
context-bank TLB invalidation so that:

	- Stage-1 mappings are marked non-global in the ptes
	- Each Stage-1 context-bank is assigned an ASID in TTBR0
	- VMID 0 is reserved for Stage-1 context-banks

This allows the hypervisor to overwrite the Stage-1 VMID in the CBAR
when trapping the write from the guest.

Signed-off-by: Will Deacon <will.deacon@arm.com>
Signed-off-by: Joerg Roedel <joro@8bytes.org>
2013-08-14 12:09:42 +02:00
..
amd_iommu.c Merge branches 'x86/vt-d', 'arm/omap', 'core', 'x86/amd' and 'arm/smmu' into next 2013-06-25 23:34:29 +02:00
amd_iommu_init.c perf/x86/amd: Add IOMMU Performance Counter resource management 2013-06-19 13:04:52 +02:00
amd_iommu_proto.h perf/x86/amd: Add IOMMU Performance Counter resource management 2013-06-19 13:04:52 +02:00
amd_iommu_types.h perf/x86/amd: Add IOMMU Performance Counter resource management 2013-06-19 13:04:52 +02:00
amd_iommu_v2.c
arm-smmu.c iommu/arm-smmu: Don't use VMIDs for stage-1 translations 2013-08-14 12:09:42 +02:00
dmar.c iommu/vt-d: DMAR reporting table needs at least one DRHD 2013-06-20 16:39:28 +02:00
exynos-iommu.c
intel-iommu.c iommu/{vt-d,amd}: Remove multifunction assumption around grouping 2013-06-20 17:21:09 +02:00
intel_irq_remapping.c iommu/vt-d: Downgrade the warning if enabling irq remapping fails 2013-06-20 16:37:43 +02:00
iommu.c iommu: Use %pa and %zx instead of casting 2013-06-24 12:31:49 +02:00
iova.c
irq_remapping.c
irq_remapping.h
Kconfig IOMMU Updates for Linux 3.11 2013-07-10 14:46:40 -07:00
Makefile iommu/arm: Add support for ARM Ltd. System MMU architecture 2013-06-25 23:34:20 +02:00
msm_iommu.c
msm_iommu_dev.c drivers/iommu/msm_iommu_dev.c: fix leak and clean up error paths 2013-07-09 10:33:20 -07:00
of_iommu.c
omap-iommu-debug.c
omap-iommu.c iommu/omap: fix checkpatch warnings in omap iommu code 2013-06-20 16:53:26 +02:00
omap-iommu.h
omap-iommu2.c
omap-iopgtable.h iommu/omap: fix checkpatch warnings in omap iommu code 2013-06-20 16:53:26 +02:00
omap-iovmm.c iommu/omap: fix checkpatch warnings in omap iommu code 2013-06-20 16:53:26 +02:00
pci.h
shmobile-iommu.c
shmobile-ipmmu.c
shmobile-ipmmu.h
tegra-gart.c
tegra-smmu.c