Home
last modified time | relevance | path

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

/linux/arch/x86/kvm/
H A Dreverse_cpuid.h122 static __always_inline void reverse_cpuid_check(unsigned int x86_leaf) in reverse_cpuid_check() argument
125 BUILD_BUG_ON(x86_leaf == CPUID_LNX_1); in reverse_cpuid_check()
126 BUILD_BUG_ON(x86_leaf == CPUID_LNX_2); in reverse_cpuid_check()
127 BUILD_BUG_ON(x86_leaf == CPUID_LNX_3); in reverse_cpuid_check()
128 BUILD_BUG_ON(x86_leaf == CPUID_LNX_4); in reverse_cpuid_check()
129 BUILD_BUG_ON(x86_leaf == CPUID_LNX_5); in reverse_cpuid_check()
130 BUILD_BUG_ON(x86_leaf >= ARRAY_SIZE(reverse_cpuid)); in reverse_cpuid_check()
131 BUILD_BUG_ON(reverse_cpuid[x86_leaf].function == 0); in reverse_cpuid_check()
161 u32 x86_leaf = __feature_translate(x86_feature) / 32; in __feature_leaf() local
163 reverse_cpuid_check(x86_leaf); in __feature_leaf()
[all …]
H A Dcpuid.h197 unsigned int x86_leaf = __feature_leaf(x86_feature); in kvm_cpu_cap_clear() local
200 kvm_cpu_caps[x86_leaf] &= ~__feature_bit(x86_feature); in kvm_cpu_cap_clear()
205 unsigned int x86_leaf = __feature_leaf(x86_feature); in kvm_cpu_cap_set() local
208 kvm_cpu_caps[x86_leaf] |= __feature_bit(x86_feature); in kvm_cpu_cap_set()
213 unsigned int x86_leaf = __feature_leaf(x86_feature); in kvm_cpu_cap_get() local
215 return kvm_cpu_caps[x86_leaf] & __feature_bit(x86_feature); in kvm_cpu_cap_get()
241 unsigned int x86_leaf = __feature_leaf(x86_feature); in guest_cpu_cap_set() local
243 vcpu->arch.cpu_caps[x86_leaf] |= __feature_bit(x86_feature); in guest_cpu_cap_set()
249 unsigned int x86_leaf = __feature_leaf(x86_feature); in guest_cpu_cap_clear() local
251 vcpu->arch.cpu_caps[x86_leaf] &= ~__feature_bit(x86_feature); in guest_cpu_cap_clear()
[all …]