linux-stable/drivers/iommu/amd
Tom Lendacky 32cb4d02fb x86/sme: Replace occurrences of sme_active() with cc_platform_has()
Replace uses of sme_active() with the more generic cc_platform_has()
using CC_ATTR_HOST_MEM_ENCRYPT. If future support is added for other
memory encryption technologies, the use of CC_ATTR_HOST_MEM_ENCRYPT
can be updated, as required.

This also replaces two usages of sev_active() that are really geared
towards detecting if SME is active.

Signed-off-by: Tom Lendacky <thomas.lendacky@amd.com>
Signed-off-by: Borislav Petkov <bp@suse.de>
Link: https://lkml.kernel.org/r/20210928191009.32551-6-bp@alien8.de
2021-10-04 11:46:46 +02:00
..
Kconfig iommu/amd: Prepare for generic IO page table framework 2021-01-28 16:51:17 +01:00
Makefile iommu/amd: Prepare for generic IO page table framework 2021-01-28 16:51:17 +01:00
amd_iommu.h iommu/amd: Tidy up DMA ops init 2021-06-07 14:51:33 +02:00
amd_iommu_types.h iommu/amd: Add support for IOMMU default DMA mode build options 2021-07-26 13:27:38 +02:00
debugfs.c
init.c x86/sme: Replace occurrences of sme_active() with cc_platform_has() 2021-10-04 11:46:46 +02:00
io_pgtable.c iommu: Streamline iommu_iova_to_phys() 2021-07-26 13:37:51 +02:00
iommu.c Merge branches 'apple/dart', 'arm/smmu', 'iommu/fixes', 'x86/amd', 'x86/vt-d' and 'core' into next 2021-08-20 17:14:35 +02:00
iommu_v2.c iommu/amd: Convert from atomic_t to refcount_t on pasid_state->count 2021-07-26 13:46:57 +02:00
quirks.c