x86/sev: Dump SEV_STATUS
authorBorislav Petkov (AMD) <bp@alien8.de>
Mon, 19 Feb 2024 09:42:16 +0000 (10:42 +0100)
committerBorislav Petkov (AMD) <bp@alien8.de>
Wed, 28 Feb 2024 12:39:37 +0000 (13:39 +0100)
commitd7b69b590bc9a5d299c82d3b27772cece0238d38
treecee138843eefc3b0de1759545247a1539a35ea97
parentee8ff8768735edc3e013837c4416f819543ddc17
x86/sev: Dump SEV_STATUS

It is, and will be even more useful in the future, to dump the SEV
features enabled according to SEV_STATUS. Do so:

  [    0.542753] Memory Encryption Features active: AMD SEV SEV-ES SEV-SNP
  [    0.544425] SEV: Status: SEV SEV-ES SEV-SNP DebugSwap

Signed-off-by: Borislav Petkov (AMD) <bp@alien8.de>
Reviewed-by: Nikunj A Dadhania <nikunj@amd.com>
Link: https://lore.kernel.org/r/20240219094216.GAZdMieDHKiI8aaP3n@fat_crate.local
arch/x86/boot/compressed/sev.c
arch/x86/include/asm/msr-index.h
arch/x86/include/asm/sev.h
arch/x86/kernel/sev.c
arch/x86/mm/mem_encrypt.c