Commit 2c87767
x86/fpu: Add a pkru argument to copy_uabi_to_xstate()
In preparation for moving PKRU handling code out of
fpu_copy_uabi_to_guest_fpstate() and into copy_uabi_to_xstate(), add an
argument that copy_uabi_from_kernel_to_xstate() can use to pass the
canonical location of the PKRU value. For
copy_sigframe_from_user_to_xstate() the kernel will actually restore the
PKRU value from the fpstate, but pass in the thread_struct's pkru location
anyways for consistency.
Signed-off-by: Kyle Huey <me@kylehuey.com>
Signed-off-by: Dave Hansen <dave.hansen@linux.intel.com>
Link: https://lore.kernel.org/all/20221115230932.7126-4-khuey%40kylehuey.com1 parent 1c813ce commit 2c87767
1 file changed
Lines changed: 13 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1200 | 1200 | | |
1201 | 1201 | | |
1202 | 1202 | | |
| 1203 | + | |
| 1204 | + | |
| 1205 | + | |
| 1206 | + | |
| 1207 | + | |
| 1208 | + | |
| 1209 | + | |
| 1210 | + | |
| 1211 | + | |
| 1212 | + | |
1203 | 1213 | | |
1204 | | - | |
| 1214 | + | |
1205 | 1215 | | |
1206 | 1216 | | |
1207 | 1217 | | |
| |||
1270 | 1280 | | |
1271 | 1281 | | |
1272 | 1282 | | |
1273 | | - | |
| 1283 | + | |
1274 | 1284 | | |
1275 | 1285 | | |
1276 | 1286 | | |
| |||
1281 | 1291 | | |
1282 | 1292 | | |
1283 | 1293 | | |
1284 | | - | |
| 1294 | + | |
1285 | 1295 | | |
1286 | 1296 | | |
1287 | 1297 | | |
| |||
0 commit comments