Lines Matching refs:e2
232 struct kvm_cpuid_entry2 *e2 = NULL; in kvm_vcpu_ioctl_set_cpuid() local
242 e2 = kvmalloc_array(cpuid->nent, sizeof(*e2), GFP_KERNEL_ACCOUNT); in kvm_vcpu_ioctl_set_cpuid()
243 if (!e2) { in kvm_vcpu_ioctl_set_cpuid()
249 e2[i].function = e[i].function; in kvm_vcpu_ioctl_set_cpuid()
250 e2[i].eax = e[i].eax; in kvm_vcpu_ioctl_set_cpuid()
251 e2[i].ebx = e[i].ebx; in kvm_vcpu_ioctl_set_cpuid()
252 e2[i].ecx = e[i].ecx; in kvm_vcpu_ioctl_set_cpuid()
253 e2[i].edx = e[i].edx; in kvm_vcpu_ioctl_set_cpuid()
254 e2[i].index = 0; in kvm_vcpu_ioctl_set_cpuid()
255 e2[i].flags = 0; in kvm_vcpu_ioctl_set_cpuid()
256 e2[i].padding[0] = 0; in kvm_vcpu_ioctl_set_cpuid()
257 e2[i].padding[1] = 0; in kvm_vcpu_ioctl_set_cpuid()
258 e2[i].padding[2] = 0; in kvm_vcpu_ioctl_set_cpuid()
261 r = kvm_check_cpuid(e2, cpuid->nent); in kvm_vcpu_ioctl_set_cpuid()
263 kvfree(e2); in kvm_vcpu_ioctl_set_cpuid()
268 vcpu->arch.cpuid_entries = e2; in kvm_vcpu_ioctl_set_cpuid()
285 struct kvm_cpuid_entry2 *e2 = NULL; in kvm_vcpu_ioctl_set_cpuid2() local
292 e2 = vmemdup_user(entries, array_size(sizeof(*e2), cpuid->nent)); in kvm_vcpu_ioctl_set_cpuid2()
293 if (IS_ERR(e2)) in kvm_vcpu_ioctl_set_cpuid2()
294 return PTR_ERR(e2); in kvm_vcpu_ioctl_set_cpuid2()
297 r = kvm_check_cpuid(e2, cpuid->nent); in kvm_vcpu_ioctl_set_cpuid2()
299 kvfree(e2); in kvm_vcpu_ioctl_set_cpuid2()
304 vcpu->arch.cpuid_entries = e2; in kvm_vcpu_ioctl_set_cpuid2()