Searched refs:x86_feature (Results 1 – 3 of 3) sorted by relevance
103 unsigned int x86_feature) in guest_cpuid_has() argument105 const struct cpuid_reg cpuid = x86_feature_cpuid(x86_feature); in guest_cpuid_has()123 BUILD_BUG_ON(x86_feature != X86_FEATURE_XSAVES); in guest_cpuid_has()133 return *reg & __feature_bit(x86_feature); in guest_cpuid_has()195 static __always_inline void kvm_cpu_cap_clear(unsigned int x86_feature) in kvm_cpu_cap_clear() argument197 unsigned int x86_leaf = __feature_leaf(x86_feature); in kvm_cpu_cap_clear()200 kvm_cpu_caps[x86_leaf] &= ~__feature_bit(x86_feature); in kvm_cpu_cap_clear()203 static __always_inline void kvm_cpu_cap_set(unsigned int x86_feature) in kvm_cpu_cap_set() argument205 unsigned int x86_leaf = __feature_leaf(x86_feature); in kvm_cpu_cap_set()208 kvm_cpu_caps[x86_leaf] |= __feature_bit(x86_feature); in kvm_cpu_cap_set()[all …]
138 static __always_inline u32 __feature_translate(int x86_feature) in __feature_translate() argument143 switch (x86_feature) { in __feature_translate()155 return x86_feature; in __feature_translate()159 static __always_inline u32 __feature_leaf(int x86_feature) in __feature_leaf() argument161 u32 x86_leaf = __feature_translate(x86_feature) / 32; in __feature_leaf()173 static __always_inline u32 __feature_bit(int x86_feature) in __feature_bit() argument175 x86_feature = __feature_translate(x86_feature); in __feature_bit()177 reverse_cpuid_check(x86_feature / 32); in __feature_bit()178 return 1 << (x86_feature & 31); in __feature_bit()183 static __always_inline struct cpuid_reg x86_feature_cpuid(unsigned int x86_feature) in x86_feature_cpuid() argument[all …]
282 unsigned int x86_feature, in kvm_update_feature_runtime() argument285 cpuid_entry_change(entry, x86_feature, has_feature); in kvm_update_feature_runtime()286 guest_cpu_cap_change(vcpu, x86_feature, has_feature); in kvm_update_feature_runtime()