Lines Matching refs:kvm_cpuid_entry2
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()
196 struct kvm_cpuid_entry2 *entry; in kvm_get_hypervisor_cpuid()
220 static struct kvm_cpuid_entry2 *__kvm_find_kvm_cpuid_features(struct kvm_vcpu *vcpu, in __kvm_find_kvm_cpuid_features()
221 struct kvm_cpuid_entry2 *entries, int nent) in __kvm_find_kvm_cpuid_features()
232 static struct kvm_cpuid_entry2 *kvm_find_kvm_cpuid_features(struct kvm_vcpu *vcpu) in kvm_find_kvm_cpuid_features()
240 struct kvm_cpuid_entry2 *best = kvm_find_kvm_cpuid_features(vcpu); in kvm_update_pv_runtime()
254 static u64 cpuid_get_supported_xcr0(struct kvm_cpuid_entry2 *entries, int nent) in cpuid_get_supported_xcr0()
256 struct kvm_cpuid_entry2 *best; in cpuid_get_supported_xcr0()
265 static void __kvm_update_cpuid_runtime(struct kvm_vcpu *vcpu, struct kvm_cpuid_entry2 *entries, in __kvm_update_cpuid_runtime()
268 struct kvm_cpuid_entry2 *best; in __kvm_update_cpuid_runtime()
315 static bool kvm_cpuid_has_hyperv(struct kvm_cpuid_entry2 *entries, int nent) in kvm_cpuid_has_hyperv()
317 struct kvm_cpuid_entry2 *entry; in kvm_cpuid_has_hyperv()
327 struct kvm_cpuid_entry2 *best; in kvm_vcpu_after_set_cpuid()
388 struct kvm_cpuid_entry2 *best; in cpuid_query_maxphyaddr()
410 static int kvm_set_cpuid(struct kvm_vcpu *vcpu, struct kvm_cpuid_entry2 *e2, in kvm_set_cpuid()
465 struct kvm_cpuid_entry2 *e2 = NULL; in kvm_vcpu_ioctl_set_cpuid()
506 struct kvm_cpuid_entry2 __user *entries) in kvm_vcpu_ioctl_set_cpuid2()
508 struct kvm_cpuid_entry2 *e2 = NULL; in kvm_vcpu_ioctl_set_cpuid2()
529 struct kvm_cpuid_entry2 __user *entries) in kvm_vcpu_ioctl_get_cpuid2()
535 vcpu->arch.cpuid_nent * sizeof(struct kvm_cpuid_entry2))) in kvm_vcpu_ioctl_get_cpuid2()
546 struct kvm_cpuid_entry2 entry; in __kvm_cpu_cap_mask()
812 struct kvm_cpuid_entry2 *entries;
817 static struct kvm_cpuid_entry2 *get_next_cpuid(struct kvm_cpuid_array *array) in get_next_cpuid()
825 static struct kvm_cpuid_entry2 *do_host_cpuid(struct kvm_cpuid_array *array, in do_host_cpuid()
828 struct kvm_cpuid_entry2 *entry = get_next_cpuid(array); in do_host_cpuid()
870 struct kvm_cpuid_entry2 *entry; in __do_cpuid_func_emulated()
905 struct kvm_cpuid_entry2 *entry; in __do_cpuid_func()
1366 static bool sanity_check_entries(struct kvm_cpuid_entry2 __user *entries, in sanity_check_entries()
1394 struct kvm_cpuid_entry2 __user *entries, in kvm_dev_ioctl_get_cpuid()
1414 array.entries = kvcalloc(cpuid->nent, sizeof(struct kvm_cpuid_entry2), GFP_KERNEL); in kvm_dev_ioctl_get_cpuid()
1428 array.nent * sizeof(struct kvm_cpuid_entry2))) in kvm_dev_ioctl_get_cpuid()
1436 struct kvm_cpuid_entry2 *kvm_find_cpuid_entry_index(struct kvm_vcpu *vcpu, in kvm_find_cpuid_entry_index()
1444 struct kvm_cpuid_entry2 *kvm_find_cpuid_entry(struct kvm_vcpu *vcpu, in kvm_find_cpuid_entry()
1480 static struct kvm_cpuid_entry2 *
1483 struct kvm_cpuid_entry2 *basic, *class; in get_out_of_range_cpuid_entry()
1524 struct kvm_cpuid_entry2 *entry; in kvm_cpuid()