函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:arch\x86\kernel\cpu\amd.c Create Date:2022-07-27 08:58:45
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:early_detect_mem_encrypt

函数原型:static void early_detect_mem_encrypt(struct cpuinfo_x86 *c)

返回类型:void

参数:

类型参数名称
struct cpuinfo_x86 *c
596  如果cpu_has(c, AMD Secure Memory Encryption )或cpu_has(c, AMD Secure Encrypted Virtualization )则
598  rdmsrl(MSR_K8_SYSCFG, msr)
599  如果非msr按位与MSR_K8_SYSCFG_MEM_ENCRYPT的值则转到:clear_all
607  x86_phys_bits减等于cpuid_ebx(0x8000001f)右移6位按位与0x3f
609  如果IS_ENABLED(CONFIG_FOO) evaluates to 1 if CONFIG_FOO is set to 'y' or 'm',* 0 otherwise.(CONFIG_X86_32)则转到:clear_all
612  rdmsrl(MSR_K7_HWCR, msr)
613  如果非msr按位与MSR_K7_HWCR_SMMLOCK的值则转到:clear_sev
616  返回
618  clear_all :
619  setup_clear_cpu_cap(AMD Secure Memory Encryption )
620  clear_sev :
621  setup_clear_cpu_cap(AMD Secure Encrypted Virtualization )
调用者
名称描述
early_init_amd