- l += [OR(CmdlineCheck('self_protection', 'defconfig', 'spectre_v2', 'is not off'),
- AND(CmdlineCheck('self_protection', 'kspp', 'mitigations', 'auto,nosmt'),
- CmdlineCheck('self_protection', 'defconfig', 'spectre_v2', 'is not set')))]
- l += [OR(CmdlineCheck('self_protection', 'defconfig', 'spectre_v2_user', 'is not off'),
- AND(CmdlineCheck('self_protection', 'kspp', 'mitigations', 'auto,nosmt'),
- CmdlineCheck('self_protection', 'defconfig', 'spectre_v2_user', 'is not set')))]
- l += [OR(CmdlineCheck('self_protection', 'defconfig', 'spec_store_bypass_disable', 'is not off'),
- AND(CmdlineCheck('self_protection', 'kspp', 'mitigations', 'auto,nosmt'),
- CmdlineCheck('self_protection', 'defconfig', 'spec_store_bypass_disable', 'is not set')))]
- l += [OR(CmdlineCheck('self_protection', 'defconfig', 'l1tf', 'is not off'),
- AND(CmdlineCheck('self_protection', 'kspp', 'mitigations', 'auto,nosmt'),
- CmdlineCheck('self_protection', 'defconfig', 'l1tf', 'is not set')))]
- l += [OR(CmdlineCheck('self_protection', 'defconfig', 'mds', 'is not off'),
- AND(CmdlineCheck('self_protection', 'kspp', 'mitigations', 'auto,nosmt'),
- CmdlineCheck('self_protection', 'defconfig', 'mds', 'is not set')))]
- l += [OR(CmdlineCheck('self_protection', 'defconfig', 'tsx_async_abort', 'is not off'),
- AND(CmdlineCheck('self_protection', 'kspp', 'mitigations', 'auto,nosmt'),
- CmdlineCheck('self_protection', 'defconfig', 'tsx_async_abort', 'is not set')))]
- l += [OR(CmdlineCheck('self_protection', 'defconfig', 'srbds', 'is not off'),
- AND(CmdlineCheck('self_protection', 'kspp', 'mitigations', 'auto,nosmt'),
- CmdlineCheck('self_protection', 'defconfig', 'srbds', 'is not set')))]
- l += [OR(CmdlineCheck('self_protection', 'defconfig', 'mmio_stale_data', 'is not off'),
- AND(CmdlineCheck('self_protection', 'kspp', 'mitigations', 'auto,nosmt'),
- CmdlineCheck('self_protection', 'defconfig', 'mmio_stale_data', 'is not set')))]
- l += [OR(CmdlineCheck('self_protection', 'defconfig', 'retbleed', 'is not off'),
- AND(CmdlineCheck('self_protection', 'kspp', 'mitigations', 'auto,nosmt'),
- CmdlineCheck('self_protection', 'defconfig', 'retbleed', 'is not set')))]
- l += [OR(CmdlineCheck('self_protection', 'defconfig', 'kpti', 'is not off'),
- AND(CmdlineCheck('self_protection', 'kspp', 'mitigations', 'auto,nosmt'),
- CmdlineCheck('self_protection', 'defconfig', 'kpti', 'is not set')))]
+ if arch in ('X86_64', 'X86_32'):
+ l += [OR(CmdlineCheck('self_protection', 'defconfig', 'spectre_v2', 'is not off'),
+ AND(CmdlineCheck('self_protection', 'kspp', 'mitigations', 'auto,nosmt'),
+ CmdlineCheck('self_protection', 'defconfig', 'spectre_v2', 'is not set')))]
+ l += [OR(CmdlineCheck('self_protection', 'defconfig', 'spectre_v2_user', 'is not off'),
+ AND(CmdlineCheck('self_protection', 'kspp', 'mitigations', 'auto,nosmt'),
+ CmdlineCheck('self_protection', 'defconfig', 'spectre_v2_user', 'is not set')))]
+ l += [OR(CmdlineCheck('self_protection', 'defconfig', 'spec_store_bypass_disable', 'is not off'),
+ AND(CmdlineCheck('self_protection', 'kspp', 'mitigations', 'auto,nosmt'),
+ CmdlineCheck('self_protection', 'defconfig', 'spec_store_bypass_disable', 'is not set')))]
+ l += [OR(CmdlineCheck('self_protection', 'defconfig', 'l1tf', 'is not off'),
+ AND(CmdlineCheck('self_protection', 'kspp', 'mitigations', 'auto,nosmt'),
+ CmdlineCheck('self_protection', 'defconfig', 'l1tf', 'is not set')))]
+ l += [OR(CmdlineCheck('self_protection', 'defconfig', 'mds', 'is not off'),
+ AND(CmdlineCheck('self_protection', 'kspp', 'mitigations', 'auto,nosmt'),
+ CmdlineCheck('self_protection', 'defconfig', 'mds', 'is not set')))]
+ l += [OR(CmdlineCheck('self_protection', 'defconfig', 'tsx_async_abort', 'is not off'),
+ AND(CmdlineCheck('self_protection', 'kspp', 'mitigations', 'auto,nosmt'),
+ CmdlineCheck('self_protection', 'defconfig', 'tsx_async_abort', 'is not set')))]
+ l += [OR(CmdlineCheck('self_protection', 'defconfig', 'srbds', 'is not off'),
+ AND(CmdlineCheck('self_protection', 'kspp', 'mitigations', 'auto,nosmt'),
+ CmdlineCheck('self_protection', 'defconfig', 'srbds', 'is not set')))]
+ l += [OR(CmdlineCheck('self_protection', 'defconfig', 'mmio_stale_data', 'is not off'),
+ AND(CmdlineCheck('self_protection', 'kspp', 'mitigations', 'auto,nosmt'),
+ CmdlineCheck('self_protection', 'defconfig', 'mmio_stale_data', 'is not set')))]
+ l += [OR(CmdlineCheck('self_protection', 'defconfig', 'retbleed', 'is not off'),
+ AND(CmdlineCheck('self_protection', 'kspp', 'mitigations', 'auto,nosmt'),
+ CmdlineCheck('self_protection', 'defconfig', 'retbleed', 'is not set')))]