diff options
| author | Tom Lendacky <[email protected]> | 2021-09-08 22:58:33 +0000 |
|---|---|---|
| committer | Borislav Petkov <[email protected]> | 2021-10-04 09:46:05 +0000 |
| commit | 46b49b12f3fc5e1347dba37d4639e2165f447871 (patch) | |
| tree | 65f7081893383c93ba69708bd62545d46c27d1cd /scripts/gcc-plugins/randomize_layout_plugin.c | |
| parent | x86/ioremap: Selectively build arch override encryption functions (diff) | |
| download | kernel-46b49b12f3fc5e1347dba37d4639e2165f447871.tar.gz kernel-46b49b12f3fc5e1347dba37d4639e2165f447871.zip | |
arch/cc: Introduce a function to check for confidential computing features
In preparation for other confidential computing technologies, introduce
a generic helper function, cc_platform_has(), that can be used to
check for specific active confidential computing attributes, like
memory encryption. This is intended to eliminate having to add multiple
technology-specific checks to the code (e.g. if (sev_active() ||
tdx_active() || ... ).
[ bp: s/_CC_PLATFORM_H/_LINUX_CC_PLATFORM_H/g ]
Co-developed-by: Andi Kleen <[email protected]>
Signed-off-by: Andi Kleen <[email protected]>
Co-developed-by: Kuppuswamy Sathyanarayanan <[email protected]>
Signed-off-by: Kuppuswamy Sathyanarayanan <[email protected]>
Signed-off-by: Tom Lendacky <[email protected]>
Signed-off-by: Borislav Petkov <[email protected]>
Link: https://lkml.kernel.org/r/[email protected]
Diffstat (limited to 'scripts/gcc-plugins/randomize_layout_plugin.c')
0 files changed, 0 insertions, 0 deletions
