diff options
author | 2024-06-05 10:18:45 -0500 | |
---|---|---|
committer | 2024-06-11 07:22:46 +0200 | |
commit | 878e70dbd26e234e6e6941dac3a233af6f632184 (patch) | |
tree | a72b58480c89933154a92ba6546de8e03778b48f /tools/perf/scripts/python/export-to-postgresql.py | |
parent | x86/irqflags: Provide native versions of the local_irq_save()/restore() (diff) | |
download | wireguard-linux-878e70dbd26e234e6e6941dac3a233af6f632184.tar.xz wireguard-linux-878e70dbd26e234e6e6941dac3a233af6f632184.zip |
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-postgresql.py')
0 files changed, 0 insertions, 0 deletions