Lines Matching refs:x86_leaf
77 static __always_inline void reverse_cpuid_check(unsigned int x86_leaf)
79 BUILD_BUG_ON(x86_leaf == CPUID_LNX_1);
80 BUILD_BUG_ON(x86_leaf == CPUID_LNX_2);
81 BUILD_BUG_ON(x86_leaf == CPUID_LNX_3);
82 BUILD_BUG_ON(x86_leaf == CPUID_LNX_4);
83 BUILD_BUG_ON(x86_leaf >= ARRAY_SIZE(reverse_cpuid));
84 BUILD_BUG_ON(reverse_cpuid[x86_leaf].function == 0);
103 unsigned int x86_leaf = x86_feature / 32;
105 reverse_cpuid_check(x86_leaf);
106 return reverse_cpuid[x86_leaf];
295 unsigned int x86_leaf = x86_feature / 32;
297 reverse_cpuid_check(x86_leaf);
298 kvm_cpu_caps[x86_leaf] &= ~__feature_bit(x86_feature);
303 unsigned int x86_leaf = x86_feature / 32;
305 reverse_cpuid_check(x86_leaf);
306 kvm_cpu_caps[x86_leaf] |= __feature_bit(x86_feature);
311 unsigned int x86_leaf = x86_feature / 32;
313 reverse_cpuid_check(x86_leaf);
314 return kvm_cpu_caps[x86_leaf] & __feature_bit(x86_feature);