Lines Matching refs:entry
44 const struct kvm_cpuid_entry2 *entry = &hv_cpuid_entries->entries[i]; in test_hv_cpuid() local
46 TEST_ASSERT((entry->function >= 0x40000000) && in test_hv_cpuid()
47 (entry->function <= 0x40000082), in test_hv_cpuid()
49 entry->function); in test_hv_cpuid()
51 TEST_ASSERT(entry->index == 0, in test_hv_cpuid()
54 TEST_ASSERT(entry->flags == 0, in test_hv_cpuid()
57 TEST_ASSERT(!entry->padding[0] && !entry->padding[1] && in test_hv_cpuid()
58 !entry->padding[2], "padding should be zero"); in test_hv_cpuid()
60 switch (entry->function) { in test_hv_cpuid()
64 TEST_ASSERT(entry->eax == test_val, in test_hv_cpuid()
67 entry->eax, evmcs_expected in test_hv_cpuid()
71 TEST_ASSERT(has_irqchip || !(entry->edx & BIT(19)), in test_hv_cpuid()
75 test_val = entry->eax & (1UL << 18); in test_hv_cpuid()
81 TEST_ASSERT(has_irqchip || !(entry->eax & BIT(10)), in test_hv_cpuid()
85 TEST_ASSERT(entry->eax & (1UL << 19), in test_hv_cpuid()
87 " 0x40000000.EAX: %x", entry->eax); in test_hv_cpuid()
89 TEST_ASSERT((entry->eax & 0xffff) == 0x101, in test_hv_cpuid()
91 " 0x40000000.EAX: %x", entry->eax); in test_hv_cpuid()