Lines Matching refs:x86_feature
76 unsigned int x86_feature) in guest_cpuid_get_register() argument
78 const struct cpuid_reg cpuid = x86_feature_cpuid(x86_feature); in guest_cpuid_get_register()
89 unsigned int x86_feature) in guest_cpuid_has() argument
93 reg = guest_cpuid_get_register(vcpu, x86_feature); in guest_cpuid_has()
97 return *reg & __feature_bit(x86_feature); in guest_cpuid_has()
101 unsigned int x86_feature) in guest_cpuid_clear() argument
105 reg = guest_cpuid_get_register(vcpu, x86_feature); in guest_cpuid_clear()
107 *reg &= ~__feature_bit(x86_feature); in guest_cpuid_clear()
191 static __always_inline void kvm_cpu_cap_clear(unsigned int x86_feature) in kvm_cpu_cap_clear() argument
193 unsigned int x86_leaf = __feature_leaf(x86_feature); in kvm_cpu_cap_clear()
196 kvm_cpu_caps[x86_leaf] &= ~__feature_bit(x86_feature); in kvm_cpu_cap_clear()
199 static __always_inline void kvm_cpu_cap_set(unsigned int x86_feature) in kvm_cpu_cap_set() argument
201 unsigned int x86_leaf = __feature_leaf(x86_feature); in kvm_cpu_cap_set()
204 kvm_cpu_caps[x86_leaf] |= __feature_bit(x86_feature); in kvm_cpu_cap_set()
207 static __always_inline u32 kvm_cpu_cap_get(unsigned int x86_feature) in kvm_cpu_cap_get() argument
209 unsigned int x86_leaf = __feature_leaf(x86_feature); in kvm_cpu_cap_get()
212 return kvm_cpu_caps[x86_leaf] & __feature_bit(x86_feature); in kvm_cpu_cap_get()
215 static __always_inline bool kvm_cpu_cap_has(unsigned int x86_feature) in kvm_cpu_cap_has() argument
217 return !!kvm_cpu_cap_get(x86_feature); in kvm_cpu_cap_has()
220 static __always_inline void kvm_cpu_cap_check_and_set(unsigned int x86_feature) in kvm_cpu_cap_check_and_set() argument
222 if (boot_cpu_has(x86_feature)) in kvm_cpu_cap_check_and_set()
223 kvm_cpu_cap_set(x86_feature); in kvm_cpu_cap_check_and_set()