Home
last modified time | relevance | path

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

/linux-6.6.21/arch/x86/kvm/
Dreverse_cpuid.h107 static __always_inline u32 __feature_translate(int x86_feature) in __feature_translate() argument
109 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() argument
125 return __feature_translate(x86_feature) / 32; in __feature_leaf()
134 static __always_inline u32 __feature_bit(int x86_feature) in __feature_bit() argument
[all …]
Dcpuid.h76 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()
[all …]