This source file includes following definitions.
- is_secure_guest
- is_secure_guest
1
2
3
4
5
6
7
8 #ifndef _ASM_POWERPC_SVM_H
9 #define _ASM_POWERPC_SVM_H
10
11 #ifdef CONFIG_PPC_SVM
12
13 static inline bool is_secure_guest(void)
14 {
15 return mfmsr() & MSR_S;
16 }
17
18 void dtl_cache_ctor(void *addr);
19 #define get_dtl_cache_ctor() (is_secure_guest() ? dtl_cache_ctor : NULL)
20
21 #else
22
23 static inline bool is_secure_guest(void)
24 {
25 return false;
26 }
27
28 #define get_dtl_cache_ctor() NULL
29
30 #endif
31 #endif