From: Alexander Popov Date: Sat, 19 Jun 2021 15:17:33 +0000 (+0300) Subject: INTEL_IOMMU_SVM is available only for X86_64 X-Git-Tag: v0.5.10~4 X-Git-Url: https://jxself.org/git/?a=commitdiff_plain;h=f8b1263331fe6d0d94ff0d1f9ff460220447694c;p=kconfig-hardened-check.git INTEL_IOMMU_SVM is available only for X86_64 --- diff --git a/kconfig_hardened_check/__init__.py b/kconfig_hardened_check/__init__.py index b119df3..da45867 100644 --- a/kconfig_hardened_check/__init__.py +++ b/kconfig_hardened_check/__init__.py @@ -388,10 +388,11 @@ def construct_checklist(l, arch): l += [AND(OptCheck('self_protection', 'clipos', 'STACKLEAK_RUNTIME_DISABLE', 'is not set'), stackleak_is_set)] if arch in ('X86_64', 'X86_32'): - l += [AND(OptCheck('self_protection', 'clipos', 'INTEL_IOMMU_SVM', 'y'), - iommu_support_is_set)] l += [AND(OptCheck('self_protection', 'clipos', 'INTEL_IOMMU_DEFAULT_ON', 'y'), iommu_support_is_set)] + if arch == 'X86_64': + l += [AND(OptCheck('self_protection', 'clipos', 'INTEL_IOMMU_SVM', 'y'), + iommu_support_is_set)] if arch == 'X86_32': l += [AND(OptCheck('self_protection', 'clipos', 'INTEL_IOMMU', 'y'), iommu_support_is_set)]