This source file includes following definitions.
- mem_encrypt_active
- force_dma_unencrypted
1
2
3
4
5
6
7
8 #ifndef _ASM_POWERPC_MEM_ENCRYPT_H
9 #define _ASM_POWERPC_MEM_ENCRYPT_H
10
11 #include <asm/svm.h>
12
13 static inline bool mem_encrypt_active(void)
14 {
15 return is_secure_guest();
16 }
17
18 static inline bool force_dma_unencrypted(struct device *dev)
19 {
20 return is_secure_guest();
21 }
22
23 int set_memory_encrypted(unsigned long addr, int numpages);
24 int set_memory_decrypted(unsigned long addr, int numpages);
25
26 #endif