diff options
| author | Tom Lendacky <[email protected]> | 2021-09-08 22:58:36 +0000 |
|---|---|---|
| committer | Borislav Petkov <[email protected]> | 2021-10-04 09:46:46 +0000 |
| commit | 32cb4d02fb02cae2e0696c1ce92d8195574faf59 (patch) | |
| tree | 8e33210b05f9a0d2da8384b5494fa46c634d0b05 /scripts/gcc-plugins/sancov_plugin.c | |
| parent | powerpc/pseries/svm: Add a powerpc version of cc_platform_has() (diff) | |
| download | kernel-32cb4d02fb02cae2e0696c1ce92d8195574faf59.tar.gz kernel-32cb4d02fb02cae2e0696c1ce92d8195574faf59.zip | |
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 <[email protected]>
Signed-off-by: Borislav Petkov <[email protected]>
Link: https://lkml.kernel.org/r/[email protected]
Diffstat (limited to 'scripts/gcc-plugins/sancov_plugin.c')
0 files changed, 0 insertions, 0 deletions
