-
- Downloads
x86/sev-es: Add SEV-ES Feature Detection
Add a sev_es_active() function for checking whether SEV-ES is enabled. Also cache the value of MSR_AMD64_SEV at boot to speed up the feature checking in the running code. [ bp: Remove "!!" in sev_active() too. ] Signed-off-by:Joerg Roedel <jroedel@suse.de> Signed-off-by:
Borislav Petkov <bp@suse.de> Reviewed-by:
Kees Cook <keescook@chromium.org> Link: https://lkml.kernel.org/r/20200907131613.12703-37-joro@8bytes.org
Showing
- arch/x86/include/asm/mem_encrypt.h 3 additions, 0 deletionsarch/x86/include/asm/mem_encrypt.h
- arch/x86/include/asm/msr-index.h 2 additions, 0 deletionsarch/x86/include/asm/msr-index.h
- arch/x86/mm/mem_encrypt.c 8 additions, 1 deletionarch/x86/mm/mem_encrypt.c
- arch/x86/mm/mem_encrypt_identity.c 3 additions, 0 deletionsarch/x86/mm/mem_encrypt_identity.c
Please register or sign in to comment