Home
last modified time | relevance | path

Searched refs:x86_leaf (Results 1 – 2 of 2) sorted by relevance

/arch/x86/kvm/
Dreverse_cpuid.h62 static __always_inline void reverse_cpuid_check(unsigned int x86_leaf) in reverse_cpuid_check() argument
64 BUILD_BUG_ON(x86_leaf == CPUID_LNX_1); in reverse_cpuid_check()
65 BUILD_BUG_ON(x86_leaf == CPUID_LNX_2); in reverse_cpuid_check()
66 BUILD_BUG_ON(x86_leaf == CPUID_LNX_3); in reverse_cpuid_check()
67 BUILD_BUG_ON(x86_leaf == CPUID_LNX_4); in reverse_cpuid_check()
68 BUILD_BUG_ON(x86_leaf >= ARRAY_SIZE(reverse_cpuid)); in reverse_cpuid_check()
69 BUILD_BUG_ON(reverse_cpuid[x86_leaf].function == 0); in reverse_cpuid_check()
109 unsigned int x86_leaf = __feature_leaf(x86_feature); in x86_feature_cpuid() local
111 reverse_cpuid_check(x86_leaf); in x86_feature_cpuid()
112 return reverse_cpuid[x86_leaf]; in x86_feature_cpuid()
Dcpuid.h184 unsigned int x86_leaf = __feature_leaf(x86_feature); in kvm_cpu_cap_clear() local
186 reverse_cpuid_check(x86_leaf); in kvm_cpu_cap_clear()
187 kvm_cpu_caps[x86_leaf] &= ~__feature_bit(x86_feature); in kvm_cpu_cap_clear()
192 unsigned int x86_leaf = __feature_leaf(x86_feature); in kvm_cpu_cap_set() local
194 reverse_cpuid_check(x86_leaf); in kvm_cpu_cap_set()
195 kvm_cpu_caps[x86_leaf] |= __feature_bit(x86_feature); in kvm_cpu_cap_set()
200 unsigned int x86_leaf = __feature_leaf(x86_feature); in kvm_cpu_cap_get() local
202 reverse_cpuid_check(x86_leaf); in kvm_cpu_cap_get()
203 return kvm_cpu_caps[x86_leaf] & __feature_bit(x86_feature); in kvm_cpu_cap_get()