Commit 34bd82a
committed
KVM: SVM: Move SEV-ES VMSA allocation to a dedicated sev_vcpu_create() helper
Add a dedicated sev_vcpu_create() helper to allocate the VMSA page for
SEV-ES+ vCPUs, and to allow for consolidating a variety of related SEV+
code in the near future.
No functional change intended.
Reviewed-by: Nikunj A Dadhania <nikunj@amd.com>
Link: https://lore.kernel.org/r/20250819234833.3080255-5-seanjc@google.com
Signed-off-by: Sean Christopherson <seanjc@google.com>1 parent 7b59c73 commit 34bd82a
3 files changed
Lines changed: 29 additions & 18 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4561 | 4561 | | |
4562 | 4562 | | |
4563 | 4563 | | |
| 4564 | + | |
| 4565 | + | |
| 4566 | + | |
| 4567 | + | |
| 4568 | + | |
| 4569 | + | |
| 4570 | + | |
| 4571 | + | |
| 4572 | + | |
| 4573 | + | |
| 4574 | + | |
| 4575 | + | |
| 4576 | + | |
| 4577 | + | |
| 4578 | + | |
| 4579 | + | |
| 4580 | + | |
| 4581 | + | |
| 4582 | + | |
| 4583 | + | |
4564 | 4584 | | |
4565 | 4585 | | |
4566 | 4586 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1275 | 1275 | | |
1276 | 1276 | | |
1277 | 1277 | | |
1278 | | - | |
1279 | 1278 | | |
1280 | 1279 | | |
1281 | 1280 | | |
| |||
1286 | 1285 | | |
1287 | 1286 | | |
1288 | 1287 | | |
1289 | | - | |
1290 | | - | |
1291 | | - | |
1292 | | - | |
1293 | | - | |
1294 | | - | |
1295 | | - | |
1296 | | - | |
1297 | | - | |
| 1288 | + | |
| 1289 | + | |
| 1290 | + | |
1298 | 1291 | | |
1299 | 1292 | | |
1300 | 1293 | | |
1301 | | - | |
| 1294 | + | |
1302 | 1295 | | |
1303 | 1296 | | |
1304 | 1297 | | |
1305 | 1298 | | |
1306 | | - | |
| 1299 | + | |
1307 | 1300 | | |
1308 | 1301 | | |
1309 | 1302 | | |
| |||
1312 | 1305 | | |
1313 | 1306 | | |
1314 | 1307 | | |
1315 | | - | |
1316 | | - | |
1317 | | - | |
1318 | 1308 | | |
1319 | 1309 | | |
1320 | 1310 | | |
1321 | 1311 | | |
1322 | | - | |
1323 | | - | |
1324 | | - | |
| 1312 | + | |
| 1313 | + | |
1325 | 1314 | | |
1326 | 1315 | | |
1327 | 1316 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
854 | 854 | | |
855 | 855 | | |
856 | 856 | | |
| 857 | + | |
857 | 858 | | |
858 | 859 | | |
859 | 860 | | |
| |||
880 | 881 | | |
881 | 882 | | |
882 | 883 | | |
| 884 | + | |
883 | 885 | | |
884 | 886 | | |
885 | 887 | | |
| |||
0 commit comments