Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:arch\x86\kernel\cpu\amd.c Create Date:2022-07-28 07:58:18
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:early_detect_mem_encrypt

Proto:static void early_detect_mem_encrypt(struct cpuinfo_x86 *c)

Type:void

Parameter:

TypeParameterName
struct cpuinfo_x86 *c
596  If cpu_has(c, AMD Secure Memory Encryption ) || cpu_has(c, AMD Secure Encrypted Virtualization ) Then
598  rdmsrl(MSR_K8_SYSCFG, msr)
599  If Not (msr & MSR_K8_SYSCFG_MEM_ENCRYPT) Then Go to clear_all
607  x86_phys_bits -= cpuid_ebx(0x8000001f) >> 6 & 0x3f
609  If IS_ENABLED(CONFIG_FOO) evaluates to 1 if CONFIG_FOO is set to 'y' or 'm',* 0 otherwise.(CONFIG_X86_32) Then Go to clear_all
612  rdmsrl(MSR_K7_HWCR, msr)
613  If Not (msr & MSR_K7_HWCR_SMMLOCK) Then Go to clear_sev
616  Return
618  clear_all :
619  setup_clear_cpu_cap(AMD Secure Memory Encryption )
620  clear_sev :
621  setup_clear_cpu_cap(AMD Secure Encrypted Virtualization )
Caller
NameDescribe
early_init_amd