Searched refs:x86_leaf (Results 1 – 2 of 2) sorted by relevance
93 static __always_inline void reverse_cpuid_check(unsigned int x86_leaf) in reverse_cpuid_check() argument95 BUILD_BUG_ON(x86_leaf == CPUID_LNX_1); in reverse_cpuid_check()96 BUILD_BUG_ON(x86_leaf == CPUID_LNX_2); in reverse_cpuid_check()97 BUILD_BUG_ON(x86_leaf == CPUID_LNX_3); in reverse_cpuid_check()98 BUILD_BUG_ON(x86_leaf == CPUID_LNX_4); in reverse_cpuid_check()99 BUILD_BUG_ON(x86_leaf >= ARRAY_SIZE(reverse_cpuid)); in reverse_cpuid_check()100 BUILD_BUG_ON(reverse_cpuid[x86_leaf].function == 0); in reverse_cpuid_check()146 unsigned int x86_leaf = __feature_leaf(x86_feature); in x86_feature_cpuid() local148 reverse_cpuid_check(x86_leaf); in x86_feature_cpuid()149 return reverse_cpuid[x86_leaf]; in x86_feature_cpuid()
193 unsigned int x86_leaf = __feature_leaf(x86_feature); in kvm_cpu_cap_clear() local195 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() local203 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() local211 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()