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