diff options
author | Michael Roth <michael.roth@amd.com> | 2022-02-09 12:10:02 -0600 |
---|---|---|
committer | Borislav Petkov <bp@suse.de> | 2022-04-06 13:02:26 +0200 |
commit | bcce829083339bf862d66df602cbb111943da8fb (patch) | |
tree | 7e7a7045dce184d60217670d8c22a7066125bd27 /arch/x86/kernel/head64.c | |
parent | ec1c66af3a30d45c2420da0974c01d3515dba26e (diff) | |
download | linux-stable-bcce829083339bf862d66df602cbb111943da8fb.tar.gz linux-stable-bcce829083339bf862d66df602cbb111943da8fb.tar.bz2 linux-stable-bcce829083339bf862d66df602cbb111943da8fb.zip |
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
Diffstat (limited to 'arch/x86/kernel/head64.c')
-rw-r--r-- | arch/x86/kernel/head64.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/arch/x86/kernel/head64.c b/arch/x86/kernel/head64.c index 4f5ecbbaae77..cbc285ddc4ac 100644 --- a/arch/x86/kernel/head64.c +++ b/arch/x86/kernel/head64.c @@ -192,9 +192,6 @@ unsigned long __head __startup_64(unsigned long physaddr, if (load_delta & ~PMD_PAGE_MASK) for (;;); - /* Activate Secure Memory Encryption (SME) if supported and enabled */ - sme_enable(bp); - /* Include the SME encryption mask in the fixup value */ load_delta += sme_get_me_mask(); |