Searched refs:x86_feature (Results 1 – 2 of 2) sorted by relevance
107 static __always_inline u32 __feature_translate(int x86_feature) in __feature_translate() argument109 if (x86_feature == X86_FEATURE_SGX1) in __feature_translate()111 else if (x86_feature == X86_FEATURE_SGX2) in __feature_translate()113 else if (x86_feature == X86_FEATURE_SGX_EDECCSSA) in __feature_translate()115 else if (x86_feature == X86_FEATURE_CONSTANT_TSC) in __feature_translate()117 else if (x86_feature == X86_FEATURE_PERFMON_V2) in __feature_translate()120 return x86_feature; in __feature_translate()123 static __always_inline u32 __feature_leaf(int x86_feature) in __feature_leaf() argument125 return __feature_translate(x86_feature) / 32; in __feature_leaf()134 static __always_inline u32 __feature_bit(int x86_feature) in __feature_bit() argument[all …]
76 unsigned int x86_feature) in guest_cpuid_get_register() argument78 const struct cpuid_reg cpuid = x86_feature_cpuid(x86_feature); in guest_cpuid_get_register()89 unsigned int x86_feature) in guest_cpuid_has() argument93 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() argument105 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() argument193 unsigned int x86_leaf = __feature_leaf(x86_feature); in kvm_cpu_cap_clear()[all …]