Lines Matching refs:cpuid
268 const char *ioctl_name, const struct kvm_cpuid2 *cpuid) in print_cpuid_ioctl() argument
271 fd, fd_dev, ioctl_name, cpuid->nent); in print_cpuid_ioctl()
273 for (size_t i = 0; i < cpuid->nent; i++) { in print_cpuid_ioctl()
277 cpuid->entries[i].function, cpuid->entries[i].index); in print_cpuid_ioctl()
278 printflags(kvm_cpuid_flags, cpuid->entries[i].flags, in print_cpuid_ioctl()
281 cpuid->entries[i].eax, cpuid->entries[i].ebx, in print_cpuid_ioctl()
282 cpuid->entries[i].ecx, cpuid->entries[i].edx); in print_cpuid_ioctl()
285 if (cpuid->nent) in print_cpuid_ioctl()
371 struct kvm_cpuid2 *cpuid = tail_alloc(sizeof(*cpuid) + in main() local
373 sizeof(*cpuid->entries)); in main()
375 cpuid->nent = 0; in main()
376 ioctl(kvm, KVM_GET_SUPPORTED_CPUID, cpuid); in main()
378 kvm, dev, cpuid); in main()
380 cpuid->nent = cpuid_nent; in main()
382 KVM_IOCTL(kvm, KVM_GET_SUPPORTED_CPUID, cpuid); in main()
383 print_cpuid_ioctl(kvm, dev, "KVM_GET_SUPPORTED_CPUID", cpuid); in main()
390 KVM_IOCTL(vcpu_fd, KVM_SET_CPUID2, cpuid); in main()
391 print_cpuid_ioctl(vcpu_fd, vcpu_dev, "KVM_SET_CPUID2", cpuid); in main()