Commit 5de4a37
KVM: selftests: Add a fully functional "struct xstate" for x86
Add a working xstate data structure for the usage of AMX and potential
future usage on other xstate components. AMX selftest requires checking
both the xstate_bv and xcomp_bv. Existing code relies on pointer
arithmetics to fetch xstate_bv and does not support xcomp_bv.
So, add a working xstate data structure into processor.h for x86.
Suggested-by: Sean Christopherson <seanjc@google.com>
Signed-off-by: Mingwei Zhang <mizhang@google.com>
Link: https://lore.kernel.org/r/20230221163655.920289-3-mizhang@google.com
Signed-off-by: Sean Christopherson <seanjc@google.com>1 parent 735b0e0 commit 5de4a37
2 files changed
Lines changed: 23 additions & 25 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
48 | 48 | | |
49 | 49 | | |
50 | 50 | | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
51 | 63 | | |
52 | 64 | | |
53 | 65 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
44 | | - | |
45 | | - | |
46 | | - | |
47 | | - | |
48 | 44 | | |
49 | 45 | | |
50 | 46 | | |
| |||
103 | 99 | | |
104 | 100 | | |
105 | 101 | | |
106 | | - | |
| 102 | + | |
107 | 103 | | |
108 | 104 | | |
109 | 105 | | |
110 | 106 | | |
111 | 107 | | |
112 | | - | |
| 108 | + | |
113 | 109 | | |
114 | 110 | | |
115 | 111 | | |
| |||
158 | 154 | | |
159 | 155 | | |
160 | 156 | | |
161 | | - | |
162 | | - | |
163 | | - | |
164 | | - | |
165 | | - | |
166 | | - | |
167 | | - | |
168 | | - | |
169 | | - | |
170 | | - | |
171 | 157 | | |
172 | 158 | | |
173 | 159 | | |
| |||
184 | 170 | | |
185 | 171 | | |
186 | 172 | | |
187 | | - | |
| 173 | + | |
188 | 174 | | |
189 | 175 | | |
190 | 176 | | |
| |||
205 | 191 | | |
206 | 192 | | |
207 | 193 | | |
208 | | - | |
209 | | - | |
210 | | - | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
211 | 197 | | |
212 | 198 | | |
213 | 199 | | |
| |||
243 | 229 | | |
244 | 230 | | |
245 | 231 | | |
246 | | - | |
| 232 | + | |
247 | 233 | | |
248 | 234 | | |
249 | 235 | | |
| |||
282 | 268 | | |
283 | 269 | | |
284 | 270 | | |
285 | | - | |
286 | | - | |
287 | | - | |
288 | | - | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
| 274 | + | |
289 | 275 | | |
290 | 276 | | |
291 | 277 | | |
| |||
0 commit comments