Lines Matching refs:x86_leaf
76 static __always_inline void reverse_cpuid_check(unsigned int x86_leaf) in reverse_cpuid_check() argument
78 BUILD_BUG_ON(x86_leaf == CPUID_LNX_1); in reverse_cpuid_check()
79 BUILD_BUG_ON(x86_leaf == CPUID_LNX_2); in reverse_cpuid_check()
80 BUILD_BUG_ON(x86_leaf == CPUID_LNX_3); in reverse_cpuid_check()
81 BUILD_BUG_ON(x86_leaf == CPUID_LNX_4); in reverse_cpuid_check()
82 BUILD_BUG_ON(x86_leaf >= ARRAY_SIZE(reverse_cpuid)); in reverse_cpuid_check()
83 BUILD_BUG_ON(reverse_cpuid[x86_leaf].function == 0); in reverse_cpuid_check()
102 unsigned int x86_leaf = x86_feature / 32; in x86_feature_cpuid() local
104 reverse_cpuid_check(x86_leaf); in x86_feature_cpuid()
105 return reverse_cpuid[x86_leaf]; in x86_feature_cpuid()
294 unsigned int x86_leaf = x86_feature / 32; in kvm_cpu_cap_clear() local
296 reverse_cpuid_check(x86_leaf); in kvm_cpu_cap_clear()
297 kvm_cpu_caps[x86_leaf] &= ~__feature_bit(x86_feature); in kvm_cpu_cap_clear()
302 unsigned int x86_leaf = x86_feature / 32; in kvm_cpu_cap_set() local
304 reverse_cpuid_check(x86_leaf); in kvm_cpu_cap_set()
305 kvm_cpu_caps[x86_leaf] |= __feature_bit(x86_feature); in kvm_cpu_cap_set()
310 unsigned int x86_leaf = x86_feature / 32; in kvm_cpu_cap_get() local
312 reverse_cpuid_check(x86_leaf); in kvm_cpu_cap_get()
313 return kvm_cpu_caps[x86_leaf] & __feature_bit(x86_feature); in kvm_cpu_cap_get()