diff options
author | Tom Lendacky <thomas.lendacky@amd.com> | 2024-06-05 18:18:45 +0300 |
---|---|---|
committer | Borislav Petkov (AMD) <bp@alien8.de> | 2024-06-11 08:22:46 +0300 |
commit | 878e70dbd26e234e6e6941dac3a233af6f632184 (patch) | |
tree | a72b58480c89933154a92ba6546de8e03778b48f /tools/perf/scripts/python/export-to-sqlite.py | |
parent | b547fc2c9927a95808ef93d7fbd5dd70679fb501 (diff) | |
download | linux-878e70dbd26e234e6e6941dac3a233af6f632184.tar.xz |
x86/sev: Check for the presence of an SVSM in the SNP secrets page
During early boot phases, check for the presence of an SVSM when running
as an SEV-SNP guest.
An SVSM is present if not running at VMPL0 and the 64-bit value at offset
0x148 into the secrets page is non-zero. If an SVSM is present, save the
SVSM Calling Area address (CAA), located at offset 0x150 into the secrets
page, and set the VMPL level of the guest, which should be non-zero, to
indicate the presence of an SVSM.
[ bp: Touchups. ]
Signed-off-by: Tom Lendacky <thomas.lendacky@amd.com>
Signed-off-by: Borislav Petkov (AMD) <bp@alien8.de>
Link: https://lore.kernel.org/r/9d3fe161be93d4ea60f43c2a3f2c311fe708b63b.1717600736.git.thomas.lendacky@amd.com
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions