/linux/arch/x86/kvm/ |
H A D | cpuid.c | 82 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 D | cpuid.h | 16 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 D | reverse_cpuid.h | 174 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 D | hyperv.h | 194 struct kvm_cpuid_entry2 __user *entries);
|
H A D | hyperv.c | 2301 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 D | xen.c | 2260 struct kvm_cpuid_entry2 *entry; in kvm_xen_update_tsc_info()
|
H A D | x86.c | 12390 struct kvm_cpuid_entry2 *cpuid_0x1; in kvm_vcpu_reset()
|
/linux/tools/testing/selftests/kvm/x86_64/ |
H A D | cpuid_test.c | 59 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 D | hyperv_cpuid.c | 57 const struct kvm_cpuid_entry2 *entry = &hv_cpuid_entries->entries[i]; in test_hv_cpuid()
|
H A D | kvm_pv_test.c | 140 struct kvm_cpuid_entry2 *ent; in test_pv_unhalt()
|
/linux/tools/testing/selftests/kvm/include/x86_64/ |
H A D | processor.h | 912 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 D | hyperv.c | 54 cpuid_hv->nent * sizeof(struct kvm_cpuid_entry2)); in vcpu_set_hv_cpuid()
|
H A D | processor.c | 731 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 D | sgx.c | 147 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 D | pmu_intel.c | 463 struct kvm_cpuid_entry2 *entry; in intel_pmu_refresh()
|
/linux/arch/x86/include/uapi/asm/ |
H A D | kvm.h | 246 struct kvm_cpuid_entry2 { struct 265 struct kvm_cpuid_entry2 entries[]; argument
|
/linux/tools/arch/x86/include/uapi/asm/ |
H A D | kvm.h | 246 struct kvm_cpuid_entry2 { struct 265 struct kvm_cpuid_entry2 entries[]; argument
|
/linux/arch/x86/include/asm/ |
H A D | kvm_host.h | 855 struct kvm_cpuid_entry2 *cpuid_entries;
|
/linux/arch/x86/kvm/svm/ |
H A D | sev.c | 4476 struct kvm_cpuid_entry2 *best; in sev_vcpu_after_set_cpuid()
|