File tree Expand file tree Collapse file tree 2 files changed +14
-14
lines changed Expand file tree Collapse file tree 2 files changed +14
-14
lines changed Original file line number Diff line number Diff line change @@ -227,4 +227,18 @@ static inline u64 kvm_encode_nested_level(struct kvm_s2_trans *trans)
227
227
shift; \
228
228
})
229
229
230
+ static inline unsigned int ps_to_output_size (unsigned int ps )
231
+ {
232
+ switch (ps ) {
233
+ case 0 : return 32 ;
234
+ case 1 : return 36 ;
235
+ case 2 : return 40 ;
236
+ case 3 : return 42 ;
237
+ case 4 : return 44 ;
238
+ case 5 :
239
+ default :
240
+ return 48 ;
241
+ }
242
+ }
243
+
230
244
#endif /* __ARM64_KVM_NESTED_H */
Original file line number Diff line number Diff line change @@ -103,20 +103,6 @@ struct s2_walk_info {
103
103
bool be ;
104
104
};
105
105
106
- static unsigned int ps_to_output_size (unsigned int ps )
107
- {
108
- switch (ps ) {
109
- case 0 : return 32 ;
110
- case 1 : return 36 ;
111
- case 2 : return 40 ;
112
- case 3 : return 42 ;
113
- case 4 : return 44 ;
114
- case 5 :
115
- default :
116
- return 48 ;
117
- }
118
- }
119
-
120
106
static u32 compute_fsc (int level , u32 fsc )
121
107
{
122
108
return fsc | (level & 0x3 );
You can’t perform that action at this time.
0 commit comments