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()
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()
234 static struct kvm_cpuid_entry2 *kvm_find_kvm_cpuid_features(struct kvm_vcpu *vcpu) in kvm_find_kvm_cpuid_features()
247 struct kvm_cpuid_entry2 *best = kvm_find_kvm_cpuid_features(vcpu); in kvm_update_pv_runtime()
261 static u64 cpuid_get_supported_xcr0(struct kvm_cpuid_entry2 *entries, int nent) in cpuid_get_supported_xcr0()
263 struct kvm_cpuid_entry2 *best; in cpuid_get_supported_xcr0()
272 static void __kvm_update_cpuid_runtime(struct kvm_vcpu *vcpu, struct kvm_cpuid_entry2 *entries, in __kvm_update_cpuid_runtime()
275 struct kvm_cpuid_entry2 *best; in __kvm_update_cpuid_runtime()
325 static bool kvm_cpuid_has_hyperv(struct kvm_cpuid_entry2 *entries, int nent) in kvm_cpuid_has_hyperv()
328 struct kvm_cpuid_entry2 *entry; in kvm_cpuid_has_hyperv()
340 struct kvm_cpuid_entry2 *entry; in guest_cpuid_is_amd_or_hygon()
353 struct kvm_cpuid_entry2 *best; in kvm_vcpu_after_set_cpuid()
414 struct kvm_cpuid_entry2 *best; in cpuid_query_maxphyaddr()
436 static int kvm_set_cpuid(struct kvm_vcpu *vcpu, struct kvm_cpuid_entry2 *e2, in kvm_set_cpuid()
495 struct kvm_cpuid_entry2 *e2 = NULL; in kvm_vcpu_ioctl_set_cpuid()
536 struct kvm_cpuid_entry2 __user *entries) in kvm_vcpu_ioctl_set_cpuid2()
538 struct kvm_cpuid_entry2 *e2 = NULL; in kvm_vcpu_ioctl_set_cpuid2()
559 struct kvm_cpuid_entry2 __user *entries) in kvm_vcpu_ioctl_get_cpuid2()
565 vcpu->arch.cpuid_nent * sizeof(struct kvm_cpuid_entry2))) in kvm_vcpu_ioctl_get_cpuid2()
576 struct kvm_cpuid_entry2 entry; in __kvm_cpu_cap_mask()
848 struct kvm_cpuid_entry2 *entries;
853 static struct kvm_cpuid_entry2 *get_next_cpuid(struct kvm_cpuid_array *array) in get_next_cpuid()
861 static struct kvm_cpuid_entry2 *do_host_cpuid(struct kvm_cpuid_array *array, in do_host_cpuid()
864 struct kvm_cpuid_entry2 *entry = get_next_cpuid(array); in do_host_cpuid()
906 struct kvm_cpuid_entry2 *entry; in __do_cpuid_func_emulated()
941 struct kvm_cpuid_entry2 *entry; in __do_cpuid_func()
1446 static bool sanity_check_entries(struct kvm_cpuid_entry2 __user *entries, in sanity_check_entries()
1474 struct kvm_cpuid_entry2 __user *entries, in kvm_dev_ioctl_get_cpuid()
1494 array.entries = kvcalloc(cpuid->nent, sizeof(struct kvm_cpuid_entry2), GFP_KERNEL); in kvm_dev_ioctl_get_cpuid()
1508 array.nent * sizeof(struct kvm_cpuid_entry2))) in kvm_dev_ioctl_get_cpuid()
1516 struct kvm_cpuid_entry2 *kvm_find_cpuid_entry_index(struct kvm_vcpu *vcpu, in kvm_find_cpuid_entry_index()
1524 struct kvm_cpuid_entry2 *kvm_find_cpuid_entry(struct kvm_vcpu *vcpu, in kvm_find_cpuid_entry()
1560 static struct kvm_cpuid_entry2 *
1563 struct kvm_cpuid_entry2 *basic, *class; in get_out_of_range_cpuid_entry()
1604 struct kvm_cpuid_entry2 *entry; in kvm_cpuid()