Home
last modified time | relevance | path

Searched refs:kvm_cpuid_entry2 (Results 1 – 19 of 19) sorted by relevance

/linux/arch/x86/kvm/
H A Dcpuid.c82 static inline struct kvm_cpuid_entry2 *cpuid_entry2_find( in cpuid_entry2_find()
83 struct kvm_cpuid_entry2 *entries, int nent, u32 function, u64 index) in cpuid_entry2_find()
85 struct kvm_cpuid_entry2 *e; in cpuid_entry2_find()
134 struct kvm_cpuid_entry2 *entries, in kvm_check_cpuid()
137 struct kvm_cpuid_entry2 *best; in kvm_check_cpuid()
170 static int kvm_cpuid_check_equal(struct kvm_vcpu *vcpu, struct kvm_cpuid_entry2 *e2, in kvm_cpuid_check_equal()
173 struct kvm_cpuid_entry2 *orig; in kvm_cpuid_check_equal()
192 static struct kvm_hypervisor_cpuid __kvm_get_hypervisor_cpuid(struct kvm_cpuid_entry2 *entries, in __kvm_get_hypervisor_cpuid()
196 struct kvm_cpuid_entry2 *entry; in __kvm_get_hypervisor_cpuid()
227 static struct kvm_cpuid_entry2 *__kvm_find_kvm_cpuid_features(struct kvm_cpuid_entry2 *entries, in __kvm_find_kvm_cpuid_features()
[all …]
H A Dcpuid.h16 struct kvm_cpuid_entry2 *kvm_find_cpuid_entry_index(struct kvm_vcpu *vcpu,
18 struct kvm_cpuid_entry2 *kvm_find_cpuid_entry(struct kvm_vcpu *vcpu,
21 struct kvm_cpuid_entry2 __user *entries,
28 struct kvm_cpuid_entry2 __user *entries);
31 struct kvm_cpuid_entry2 __user *entries);
61 static __always_inline void cpuid_entry_override(struct kvm_cpuid_entry2 *entry, in cpuid_entry_override()
74 struct kvm_cpuid_entry2 *entry; in guest_cpuid_get_register()
117 struct kvm_cpuid_entry2 *best; in guest_cpuid_family()
128 struct kvm_cpuid_entry2 *best; in guest_cpuid_model()
144 struct kvm_cpuid_entry2 *best; in guest_cpuid_stepping()
H A Dreverse_cpuid.h174 static __always_inline u32 *__cpuid_entry_get_reg(struct kvm_cpuid_entry2 *entry, in __cpuid_entry_get_reg()
192 static __always_inline u32 *cpuid_entry_get_reg(struct kvm_cpuid_entry2 *entry, in cpuid_entry_get_reg()
200 static __always_inline u32 cpuid_entry_get(struct kvm_cpuid_entry2 *entry, in cpuid_entry_get()
208 static __always_inline bool cpuid_entry_has(struct kvm_cpuid_entry2 *entry, in cpuid_entry_has()
214 static __always_inline void cpuid_entry_clear(struct kvm_cpuid_entry2 *entry, in cpuid_entry_clear()
222 static __always_inline void cpuid_entry_set(struct kvm_cpuid_entry2 *entry, in cpuid_entry_set()
230 static __always_inline void cpuid_entry_change(struct kvm_cpuid_entry2 *entry, in cpuid_entry_change()
H A Dhyperv.h194 struct kvm_cpuid_entry2 __user *entries);
H A Dhyperv.c2301 struct kvm_cpuid_entry2 *entry; in kvm_hv_set_cpuid()
2762 struct kvm_cpuid_entry2 __user *entries) in kvm_get_hv_cpuid()
2765 struct kvm_cpuid_entry2 cpuid_entries[] = { in kvm_get_hv_cpuid()
2789 struct kvm_cpuid_entry2 *ent = &cpuid_entries[i]; in kvm_get_hv_cpuid()
2913 nent * sizeof(struct kvm_cpuid_entry2))) in kvm_get_hv_cpuid()
H A Dxen.c2260 struct kvm_cpuid_entry2 *entry; in kvm_xen_update_tsc_info()
H A Dx86.c12390 struct kvm_cpuid_entry2 *cpuid_0x1; in kvm_vcpu_reset()
/linux/tools/testing/selftests/kvm/x86_64/
H A Dcpuid_test.c59 static bool is_cpuid_mangled(const struct kvm_cpuid_entry2 *entrie) in is_cpuid_mangled()
75 const struct kvm_cpuid_entry2 *e1, *e2; in compare_cpuids()
140 struct kvm_cpuid_entry2 *ent; in set_cpuid_after_run()
H A Dhyperv_cpuid.c57 const struct kvm_cpuid_entry2 *entry = &hv_cpuid_entries->entries[i]; in test_hv_cpuid()
H A Dkvm_pv_test.c140 struct kvm_cpuid_entry2 *ent; in test_pv_unhalt()
/linux/tools/testing/selftests/kvm/include/x86_64/
H A Dprocessor.h912 const struct kvm_cpuid_entry2 *get_cpuid_entry(const struct kvm_cpuid2 *cpuid,
993 sizeof(struct kvm_cpuid_entry2) * nr_entries; in kvm_cpuid2_size()
1015 static inline struct kvm_cpuid_entry2 *__vcpu_get_cpuid_entry(struct kvm_vcpu *vcpu, in __vcpu_get_cpuid_entry()
1019 return (struct kvm_cpuid_entry2 *)get_cpuid_entry(vcpu->cpuid, in __vcpu_get_cpuid_entry()
1023 static inline struct kvm_cpuid_entry2 *vcpu_get_cpuid_entry(struct kvm_vcpu *vcpu, in vcpu_get_cpuid_entry()
1062 struct kvm_cpuid_entry2 *entry; in vcpu_cpuid_has()
/linux/tools/testing/selftests/kvm/lib/x86_64/
H A Dhyperv.c54 cpuid_hv->nent * sizeof(struct kvm_cpuid_entry2)); in vcpu_set_hv_cpuid()
H A Dprocessor.c731 const struct kvm_cpuid_entry2 *entry; in __kvm_cpu_has()
841 struct kvm_cpuid_entry2 *entry; in vcpu_set_cpuid_property()
856 struct kvm_cpuid_entry2 *entry = vcpu_get_cpuid_entry(vcpu, function); in vcpu_clear_cpuid_entry()
869 struct kvm_cpuid_entry2 *entry; in vcpu_set_or_clear_cpuid_feature()
1146 const struct kvm_cpuid_entry2 *get_cpuid_entry(const struct kvm_cpuid2 *cpuid, in get_cpuid_entry()
/linux/arch/x86/kvm/vmx/
H A Dsgx.c147 struct kvm_cpuid_entry2 *sgx_12_0, *sgx_12_1; in __handle_encls_ecreate()
442 struct kvm_cpuid_entry2 *guest_cpuid; in sgx_intercept_encls_ecreate()
H A Dpmu_intel.c463 struct kvm_cpuid_entry2 *entry; in intel_pmu_refresh()
/linux/arch/x86/include/uapi/asm/
H A Dkvm.h246 struct kvm_cpuid_entry2 { struct
265 struct kvm_cpuid_entry2 entries[]; argument
/linux/tools/arch/x86/include/uapi/asm/
H A Dkvm.h246 struct kvm_cpuid_entry2 { struct
265 struct kvm_cpuid_entry2 entries[]; argument
/linux/arch/x86/include/asm/
H A Dkvm_host.h855 struct kvm_cpuid_entry2 *cpuid_entries;
/linux/arch/x86/kvm/svm/
H A Dsev.c4476 struct kvm_cpuid_entry2 *best; in sev_vcpu_after_set_cpuid()