Commit 6068754
x86/sev: Cache the secrets page address
Instead of calling get_secrets_page(), which parses the CC blob every time
to get the secrets page physical address (secrets_pa), save the secrets
page physical address during snp_init() from the CC blob. Since
get_secrets_page() is no longer used, remove the function.
Signed-off-by: Nikunj A Dadhania <nikunj@amd.com>
Signed-off-by: Borislav Petkov (AMD) <bp@alien8.de>
Reviewed-by: Tom Lendacky <thomas.lendacky@amd.com>
Link: https://lore.kernel.org/r/20241009092850.197575-4-nikunj@amd.com1 parent f75ff17 commit 6068754
1 file changed
Lines changed: 11 additions & 40 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
92 | 92 | | |
93 | 93 | | |
94 | 94 | | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
95 | 98 | | |
96 | 99 | | |
97 | 100 | | |
| |||
695 | 698 | | |
696 | 699 | | |
697 | 700 | | |
698 | | - | |
699 | | - | |
700 | | - | |
701 | | - | |
702 | | - | |
703 | | - | |
704 | | - | |
705 | | - | |
706 | | - | |
707 | | - | |
708 | | - | |
709 | | - | |
710 | | - | |
711 | | - | |
712 | | - | |
713 | | - | |
714 | | - | |
715 | | - | |
716 | | - | |
717 | | - | |
718 | | - | |
719 | | - | |
720 | | - | |
721 | | - | |
722 | | - | |
723 | | - | |
724 | | - | |
725 | | - | |
726 | 701 | | |
727 | 702 | | |
728 | 703 | | |
729 | 704 | | |
730 | | - | |
731 | | - | |
732 | | - | |
733 | | - | |
734 | | - | |
| 705 | + | |
735 | 706 | | |
736 | | - | |
| 707 | + | |
737 | 708 | | |
738 | 709 | | |
739 | 710 | | |
| |||
2273 | 2244 | | |
2274 | 2245 | | |
2275 | 2246 | | |
| 2247 | + | |
| 2248 | + | |
| 2249 | + | |
| 2250 | + | |
| 2251 | + | |
2276 | 2252 | | |
2277 | 2253 | | |
2278 | 2254 | | |
| |||
2469 | 2445 | | |
2470 | 2446 | | |
2471 | 2447 | | |
2472 | | - | |
2473 | 2448 | | |
2474 | 2449 | | |
2475 | 2450 | | |
2476 | 2451 | | |
2477 | | - | |
2478 | | - | |
2479 | | - | |
2480 | | - | |
2481 | | - | |
| 2452 | + | |
2482 | 2453 | | |
2483 | 2454 | | |
2484 | 2455 | | |
| |||
0 commit comments