Home
last modified time | relevance | path

Searched refs:nent (Results 1 – 3 of 3) sorted by relevance

/tools/testing/selftests/kvm/x86_64/
Dhyperv_cpuid.c54 TEST_ASSERT(hv_cpuid_entries->nent == 6, in test_hv_cpuid()
57 hv_cpuid_entries->nent); in test_hv_cpuid()
59 TEST_ASSERT(hv_cpuid_entries->nent == 7, in test_hv_cpuid()
62 hv_cpuid_entries->nent); in test_hv_cpuid()
64 for (i = 0; i < hv_cpuid_entries->nent; i++) { in test_hv_cpuid()
102 static struct kvm_cpuid2 cpuid = {.nent = 0}; in test_hv_cpuid_e2big()
115 int nent = 20; /* should be enough */ in kvm_get_supported_hv_cpuid() local
118 cpuid = malloc(sizeof(*cpuid) + nent * sizeof(struct kvm_cpuid_entry2)); in kvm_get_supported_hv_cpuid()
125 cpuid->nent = nent; in kvm_get_supported_hv_cpuid()
/tools/arch/x86/include/uapi/asm/
Dkvm.h207 __u32 nent; member
229 __u32 nent; member
/tools/testing/selftests/kvm/lib/x86_64/
Dprocessor.c691 int nent = 100; in allocate_kvm_cpuid2() local
695 size += nent * sizeof(struct kvm_cpuid_entry2); in allocate_kvm_cpuid2()
702 cpuid->nent = nent; in allocate_kvm_cpuid2()
757 for (i = 0; i < cpuid->nent; i++) { in kvm_get_supported_cpuid_index()