diff options
author | Brijesh Singh <brijesh.singh@amd.com> | 2022-04-22 08:56:24 -0500 |
---|---|---|
committer | Borislav Petkov <bp@suse.de> | 2022-04-27 13:31:38 +0200 |
commit | c2106a231c2ba36ff9af50cdf2867b9a5f8150a6 (patch) | |
tree | 9b1e88b57fa942f2f31375b44d321fb140d42e8b /Makefile | |
parent | 75d359ec4141b013727022a663762931f69e6510 (diff) |
x86/sev: Get the AP jump table address from secrets page
The GHCB specification section 2.7 states that when SEV-SNP is enabled,
a guest should not rely on the hypervisor to provide the address of the
AP jump table. Instead, if a guest BIOS wants to provide an AP jump
table, it should record the address in the SNP secrets page so the guest
operating system can obtain it directly from there.
Fix this on the guest kernel side by having SNP guests use the AP jump
table address published in the secrets page rather than issuing a GHCB
request to get it.
[ mroth:
- Improve error handling when ioremap()/memremap() return NULL
- Don't mix function calls with declarations
- Add missing __init
- Tweak commit message ]
Fixes: 0afb6b660a6b ("x86/sev: Use SEV-SNP AP creation to start secondary CPUs")
Signed-off-by: Brijesh Singh <brijesh.singh@amd.com>
Signed-off-by: Michael Roth <michael.roth@amd.com>
Signed-off-by: Borislav Petkov <bp@suse.de>
Link: https://lore.kernel.org/r/20220422135624.114172-3-michael.roth@amd.com
Diffstat (limited to 'Makefile')
0 files changed, 0 insertions, 0 deletions