Home
last modified time | relevance | path

Searched refs:x86_leaf (Results 1 - 3 of 3) sorted by relevance

/kernel/linux/linux-5.10/arch/x86/kvm/
H A Dcpuid.h77 static __always_inline void reverse_cpuid_check(unsigned int x86_leaf) in reverse_cpuid_check() argument
79 BUILD_BUG_ON(x86_leaf == CPUID_LNX_1); in reverse_cpuid_check()
80 BUILD_BUG_ON(x86_leaf == CPUID_LNX_2); in reverse_cpuid_check()
81 BUILD_BUG_ON(x86_leaf == CPUID_LNX_3); in reverse_cpuid_check()
82 BUILD_BUG_ON(x86_leaf == CPUID_LNX_4); in reverse_cpuid_check()
83 BUILD_BUG_ON(x86_leaf >= ARRAY_SIZE(reverse_cpuid)); in reverse_cpuid_check()
84 BUILD_BUG_ON(reverse_cpuid[x86_leaf].function == 0); in reverse_cpuid_check()
103 unsigned int x86_leaf = x86_feature / 32; in x86_feature_cpuid() local
105 reverse_cpuid_check(x86_leaf); in x86_feature_cpuid()
106 return reverse_cpuid[x86_leaf]; in x86_feature_cpuid()
295 unsigned int x86_leaf = x86_feature / 32; kvm_cpu_cap_clear() local
303 unsigned int x86_leaf = x86_feature / 32; kvm_cpu_cap_set() local
311 unsigned int x86_leaf = x86_feature / 32; kvm_cpu_cap_get() local
[all...]
/kernel/linux/linux-6.6/arch/x86/kvm/
H A Dreverse_cpuid.h103 static __always_inline void reverse_cpuid_check(unsigned int x86_leaf) in reverse_cpuid_check() argument
105 BUILD_BUG_ON(x86_leaf == CPUID_LNX_1); in reverse_cpuid_check()
106 BUILD_BUG_ON(x86_leaf == CPUID_LNX_2); in reverse_cpuid_check()
107 BUILD_BUG_ON(x86_leaf == CPUID_LNX_3); in reverse_cpuid_check()
108 BUILD_BUG_ON(x86_leaf == CPUID_LNX_4); in reverse_cpuid_check()
109 BUILD_BUG_ON(x86_leaf >= ARRAY_SIZE(reverse_cpuid)); in reverse_cpuid_check()
110 BUILD_BUG_ON(reverse_cpuid[x86_leaf].function == 0); in reverse_cpuid_check()
157 unsigned int x86_leaf = __feature_leaf(x86_feature); in x86_feature_cpuid() local
159 reverse_cpuid_check(x86_leaf); in x86_feature_cpuid()
160 return reverse_cpuid[x86_leaf]; in x86_feature_cpuid()
[all...]
H A Dcpuid.h193 unsigned int x86_leaf = __feature_leaf(x86_feature); in kvm_cpu_cap_clear() local
195 reverse_cpuid_check(x86_leaf); in kvm_cpu_cap_clear()
196 kvm_cpu_caps[x86_leaf] &= ~__feature_bit(x86_feature); in kvm_cpu_cap_clear()
201 unsigned int x86_leaf = __feature_leaf(x86_feature); in kvm_cpu_cap_set() local
203 reverse_cpuid_check(x86_leaf); in kvm_cpu_cap_set()
204 kvm_cpu_caps[x86_leaf] |= __feature_bit(x86_feature); in kvm_cpu_cap_set()
209 unsigned int x86_leaf = __feature_leaf(x86_feature); in kvm_cpu_cap_get() local
211 reverse_cpuid_check(x86_leaf); in kvm_cpu_cap_get()
212 return kvm_cpu_caps[x86_leaf] & __feature_bit(x86_feature); in kvm_cpu_cap_get()

Completed in 2 milliseconds