mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2025-01-14 00:06:22 +07:00
18 lines
413 B
C
18 lines
413 B
C
|
/* SPDX-License-Identifier: GPL-2.0 */
|
||
|
#ifndef S390_MEM_ENCRYPT_H__
|
||
|
#define S390_MEM_ENCRYPT_H__
|
||
|
|
||
|
#ifndef __ASSEMBLY__
|
||
|
|
||
|
#define sme_me_mask 0ULL
|
||
|
|
||
|
static inline bool sme_active(void) { return false; }
|
||
|
extern bool sev_active(void);
|
||
|
|
||
|
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__ */
|