hc
2023-12-08 01573e231f18eb2d99162747186f59511f56b64d
kernel/include/linux/mem_encrypt.h
....@@ -1,13 +1,10 @@
1
+/* SPDX-License-Identifier: GPL-2.0-only */
12 /*
23 * AMD Memory Encryption Support
34 *
45 * Copyright (C) 2016 Advanced Micro Devices, Inc.
56 *
67 * Author: Tom Lendacky <thomas.lendacky@amd.com>
7
- *
8
- * This program is free software; you can redistribute it and/or modify
9
- * it under the terms of the GNU General Public License version 2 as
10
- * published by the Free Software Foundation.
118 */
129
1310 #ifndef __MEM_ENCRYPT_H__
....@@ -21,22 +18,9 @@
2118
2219 #else /* !CONFIG_ARCH_HAS_MEM_ENCRYPT */
2320
24
-#define sme_me_mask 0ULL
25
-
26
-static inline bool sme_active(void) { return false; }
27
-static inline bool sev_active(void) { return false; }
21
+static inline bool mem_encrypt_active(void) { return false; }
2822
2923 #endif /* CONFIG_ARCH_HAS_MEM_ENCRYPT */
30
-
31
-static inline bool mem_encrypt_active(void)
32
-{
33
- return sme_me_mask;
34
-}
35
-
36
-static inline u64 sme_get_me_mask(void)
37
-{
38
- return sme_me_mask;
39
-}
4024
4125 #ifdef CONFIG_AMD_MEM_ENCRYPT
4226 /*