Searched refs:x86_feature (Results 1 – 2 of 2) sorted by relevance
71 unsigned int x86_feature) in guest_cpuid_get_register() argument73 const struct cpuid_reg cpuid = x86_feature_cpuid(x86_feature); in guest_cpuid_get_register()84 unsigned int x86_feature) in guest_cpuid_has() argument88 reg = guest_cpuid_get_register(vcpu, x86_feature); in guest_cpuid_has()92 return *reg & __feature_bit(x86_feature); in guest_cpuid_has()96 unsigned int x86_feature) in guest_cpuid_clear() argument100 reg = guest_cpuid_get_register(vcpu, x86_feature); in guest_cpuid_clear()102 *reg &= ~__feature_bit(x86_feature); in guest_cpuid_clear()179 static __always_inline void kvm_cpu_cap_clear(unsigned int x86_feature) in kvm_cpu_cap_clear() argument181 unsigned int x86_leaf = __feature_leaf(x86_feature); in kvm_cpu_cap_clear()[all …]
127 static __always_inline u32 __feature_translate(int x86_feature) in __feature_translate() argument132 switch (x86_feature) { in __feature_translate()141 return x86_feature; in __feature_translate()145 static __always_inline u32 __feature_leaf(int x86_feature) in __feature_leaf() argument147 return __feature_translate(x86_feature) / 32; in __feature_leaf()156 static __always_inline u32 __feature_bit(int x86_feature) in __feature_bit() argument158 x86_feature = __feature_translate(x86_feature); in __feature_bit()160 reverse_cpuid_check(x86_feature / 32); in __feature_bit()161 return 1 << (x86_feature & 31); in __feature_bit()166 static __always_inline struct cpuid_reg x86_feature_cpuid(unsigned int x86_feature) in x86_feature_cpuid() argument[all …]