mirror of
https://github.com/torvalds/linux.git
synced 2024-12-11 21:52:04 +00:00
e9d1d2bb75
Replace uses of mem_encrypt_active() with calls to cc_platform_has() with the CC_ATTR_MEM_ENCRYPT attribute. Remove the implementation of mem_encrypt_active() across all arches. For s390, since the default implementation of the cc_platform_has() matches the s390 implementation of mem_encrypt_active(), cc_platform_has() does not need to be implemented in s390 (the config option ARCH_HAS_CC_PLATFORM is not set). Signed-off-by: Tom Lendacky <thomas.lendacky@amd.com> Signed-off-by: Borislav Petkov <bp@suse.de> Link: https://lkml.kernel.org/r/20210928191009.32551-9-bp@alien8.de
13 lines
302 B
C
13 lines
302 B
C
/* SPDX-License-Identifier: GPL-2.0 */
|
|
#ifndef S390_MEM_ENCRYPT_H__
|
|
#define S390_MEM_ENCRYPT_H__
|
|
|
|
#ifndef __ASSEMBLY__
|
|
|
|
int set_memory_encrypted(unsigned long addr, int numpages);
|
|
int set_memory_decrypted(unsigned long addr, int numpages);
|
|
|
|
#endif /* __ASSEMBLY__ */
|
|
|
|
#endif /* S390_MEM_ENCRYPT_H__ */
|