]> git.baikalelectronics.ru Git - kernel.git/commit
x86/sev: Detect/setup SEV/SME features earlier in boot
authorMichael Roth <michael.roth@amd.com>
Wed, 9 Feb 2022 18:10:02 +0000 (12:10 -0600)
committerBorislav Petkov <bp@suse.de>
Wed, 6 Apr 2022 11:02:26 +0000 (13:02 +0200)
commit38d3115dd5088854cec6a3a91c83bcaa1f2cf7f7
tree7e7a7045dce184d60217670d8c22a7066125bd27
parentf3a2e96a37c1f28b608bcc1bb3ce00ac4b218b73
x86/sev: Detect/setup SEV/SME features earlier in boot

sme_enable() handles feature detection for both SEV and SME. Future
patches will also use it for SEV-SNP feature detection/setup, which
will need to be done immediately after the first #VC handler is set up.
Move it now in preparation.

Signed-off-by: Michael Roth <michael.roth@amd.com>
Signed-off-by: Brijesh Singh <brijesh.singh@amd.com>
Signed-off-by: Borislav Petkov <bp@suse.de>
Reviewed-by: Venu Busireddy <venu.busireddy@oracle.com>
Link: https://lore.kernel.org/r/20220307213356.2797205-9-brijesh.singh@amd.com
arch/x86/kernel/head64.c
arch/x86/kernel/head_64.S