diff options
| author | Ingo Molnar <mingo@kernel.org> | 2017-11-29 01:11:24 -0500 |
|---|---|---|
| committer | Ingo Molnar <mingo@kernel.org> | 2017-11-29 01:11:24 -0500 |
| commit | 4fc31ba13d052c2933bf91095c063cf9a39effd0 (patch) | |
| tree | beabb73c2fe245e6541126732895da62e55bc8ee /include/linux/mem_encrypt.h | |
| parent | 0e18dd12064e07519f7cbff4149ca7fff620cbed (diff) | |
| parent | b29c6ef7bb1257853c1e31616d84f55e561cf631 (diff) | |
Merge branch 'linus' into perf/urgent, to pick up dependent commits
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'include/linux/mem_encrypt.h')
| -rw-r--r-- | include/linux/mem_encrypt.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/include/linux/mem_encrypt.h b/include/linux/mem_encrypt.h index 265a9cd21cb4..b310a9c18113 100644 --- a/include/linux/mem_encrypt.h +++ b/include/linux/mem_encrypt.h | |||
| @@ -23,11 +23,14 @@ | |||
| 23 | 23 | ||
| 24 | #define sme_me_mask 0ULL | 24 | #define sme_me_mask 0ULL |
| 25 | 25 | ||
| 26 | static inline bool sme_active(void) { return false; } | ||
| 27 | static inline bool sev_active(void) { return false; } | ||
| 28 | |||
| 26 | #endif /* CONFIG_ARCH_HAS_MEM_ENCRYPT */ | 29 | #endif /* CONFIG_ARCH_HAS_MEM_ENCRYPT */ |
| 27 | 30 | ||
| 28 | static inline bool sme_active(void) | 31 | static inline bool mem_encrypt_active(void) |
| 29 | { | 32 | { |
| 30 | return !!sme_me_mask; | 33 | return sme_me_mask; |
| 31 | } | 34 | } |
| 32 | 35 | ||
| 33 | static inline u64 sme_get_me_mask(void) | 36 | static inline u64 sme_get_me_mask(void) |
