函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:arch\x86\include\asm\virtext.h Create Date:2022-07-27 09:18:13
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:Check if the CPU has SVM support* You can use the 'msg' arg to get a message describing the problem,* if the function returns zero. Simply pass NULL if you are not interested* on the messages; gcc should take care of not generating code for

函数原型:static inline int cpu_has_svm(const char **msg)

返回类型:int

参数:

类型参数名称
const char **msg
84  如果CPU vendor 不等于X86_VENDOR_AMDCPU vendor 不等于X86_VENDOR_HYGON
86  如果msgmsg等于"not amd or hygon"
88  返回:0
91  如果Max extended CPUID function supported: 小于SVM_CPUID_FUNC
92  如果msgmsg等于"can't execute cpuid_8000000a"
94  返回:0
97  如果非boot_cpu_has(Secure Virtual Machine )则
98  如果msgmsg等于"svm not available"
100  返回:0
102  返回:1
调用者
名称描述
cpu_emergency_svm_disableMakes sure SVM is disabled, if it is supported on the CPU