Home
last modified time | relevance | path

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

/linux-6.6.21/arch/x86/kvm/
Dreverse_cpuid.h93 static __always_inline void reverse_cpuid_check(unsigned int x86_leaf) in reverse_cpuid_check() argument
95 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() local
148 reverse_cpuid_check(x86_leaf); in x86_feature_cpuid()
149 return reverse_cpuid[x86_leaf]; in x86_feature_cpuid()
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()