Home
last modified time | relevance | path

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

/linux-6.12.1/arch/x86/kvm/
Dreverse_cpuid.h111 static __always_inline void reverse_cpuid_check(unsigned int x86_leaf) in reverse_cpuid_check() argument
114 BUILD_BUG_ON(x86_leaf == CPUID_LNX_1); in reverse_cpuid_check()
115 BUILD_BUG_ON(x86_leaf == CPUID_LNX_2); in reverse_cpuid_check()
116 BUILD_BUG_ON(x86_leaf == CPUID_LNX_3); in reverse_cpuid_check()
117 BUILD_BUG_ON(x86_leaf == CPUID_LNX_4); in reverse_cpuid_check()
118 BUILD_BUG_ON(x86_leaf == CPUID_LNX_5); in reverse_cpuid_check()
119 BUILD_BUG_ON(x86_leaf >= ARRAY_SIZE(reverse_cpuid)); in reverse_cpuid_check()
120 BUILD_BUG_ON(reverse_cpuid[x86_leaf].function == 0); in reverse_cpuid_check()
168 unsigned int x86_leaf = __feature_leaf(x86_feature); in x86_feature_cpuid() local
170 reverse_cpuid_check(x86_leaf); in x86_feature_cpuid()
[all …]
Dcpuid.h181 unsigned int x86_leaf = __feature_leaf(x86_feature); in kvm_cpu_cap_clear() local
183 reverse_cpuid_check(x86_leaf); in kvm_cpu_cap_clear()
184 kvm_cpu_caps[x86_leaf] &= ~__feature_bit(x86_feature); in kvm_cpu_cap_clear()
189 unsigned int x86_leaf = __feature_leaf(x86_feature); in kvm_cpu_cap_set() local
191 reverse_cpuid_check(x86_leaf); in kvm_cpu_cap_set()
192 kvm_cpu_caps[x86_leaf] |= __feature_bit(x86_feature); in kvm_cpu_cap_set()
197 unsigned int x86_leaf = __feature_leaf(x86_feature); in kvm_cpu_cap_get() local
199 reverse_cpuid_check(x86_leaf); in kvm_cpu_cap_get()
200 return kvm_cpu_caps[x86_leaf] & __feature_bit(x86_feature); in kvm_cpu_cap_get()