Home
last modified time | relevance | path

Searched refs:TEST_ASSERT (Results 1 – 25 of 94) sorted by relevance

1234

/linux-6.1.9/tools/testing/selftests/kvm/s390x/
Dresets.c65 TEST_ASSERT(eval_reg == value, "value == 0x%lx", value); in test_one_reg()
81 TEST_ASSERT(irqs >= 0, "Could not fetch IRQs: errno %d\n", errno); in assert_noirq()
82 TEST_ASSERT(!irqs, "IRQ pending"); in assert_noirq()
93 TEST_ASSERT(!memcmp(&regs.gprs, regs_null, sizeof(regs.gprs)), "grs == 0"); in assert_clear()
96 TEST_ASSERT(!memcmp(&sregs.acrs, regs_null, sizeof(sregs.acrs)), "acrs == 0"); in assert_clear()
99 TEST_ASSERT(!memcmp(&fpu.fprs, regs_null, sizeof(fpu.fprs)), "fprs == 0"); in assert_clear()
102 TEST_ASSERT(!memcmp(sync_regs->gprs, regs_null, sizeof(sync_regs->gprs)), in assert_clear()
105 TEST_ASSERT(!memcmp(sync_regs->acrs, regs_null, sizeof(sync_regs->acrs)), in assert_clear()
108 TEST_ASSERT(!memcmp(sync_regs->vrs, regs_null, sizeof(sync_regs->vrs)), in assert_clear()
116 TEST_ASSERT(sync_regs->gprs[0] == 0xffff000000000000UL, in assert_initial_noclear()
[all …]
Dsync_regs_test.c40 TEST_ASSERT(left->reg == right->reg, \
46 TEST_ASSERT(left->reg == right->reg, \
84 TEST_ASSERT(rv < 0 && errno == EINVAL, in test_read_invalid()
91 TEST_ASSERT(rv < 0 && errno == EINVAL, in test_read_invalid()
105 TEST_ASSERT(rv < 0 && errno == EINVAL, in test_set_invalid()
112 TEST_ASSERT(rv < 0 && errno == EINVAL, in test_set_invalid()
128 TEST_ASSERT(rv == 0, "vcpu_run failed: %d\n", rv); in test_req_and_verify_all_valid_regs()
129 TEST_ASSERT(run->exit_reason == KVM_EXIT_S390_SIEIC, in test_req_and_verify_all_valid_regs()
133 TEST_ASSERT(run->s390_sieic.icptcode == 4 && in test_req_and_verify_all_valid_regs()
167 TEST_ASSERT(rv == 0, "vcpu_run failed: %d\n", rv); in test_set_and_verify_various_reg_values()
[all …]
/linux-6.1.9/tools/testing/selftests/kvm/
Dkvm_binary_stats_test.c43 TEST_ASSERT(id, "Allocate memory for id string"); in stats_test()
46 TEST_ASSERT(ret == header.name_size, "Read id string"); in stats_test()
49 TEST_ASSERT(!strncmp(id, "kvm", 3) && strlen(id) < header.name_size, in stats_test()
62 TEST_ASSERT(header.desc_offset && header.desc_offset >= sizeof(header) && in stats_test()
66 TEST_ASSERT(header.desc_offset > header.data_offset || in stats_test()
81 TEST_ASSERT(strlen(pdesc->name) < header.name_size, in stats_test()
85 TEST_ASSERT(type <= KVM_STATS_TYPE_MAX, in stats_test()
87 TEST_ASSERT(unit <= KVM_STATS_UNIT_MAX, in stats_test()
89 TEST_ASSERT(base <= KVM_STATS_BASE_MAX, in stats_test()
105 TEST_ASSERT(pdesc->exponent >= 0, in stats_test()
[all …]
Dhardware_disable_test.c44 TEST_ASSERT(false, "%s: exited with reason %d: %s\n", in run_vcpu()
58 TEST_ASSERT(false, "%s: exited\n", __func__); in sleeping_thread()
68 TEST_ASSERT(r == 0, "%s: failed to create thread", __func__); in check_create_thread()
76 TEST_ASSERT(r == 0, "%s: failed set affinity", __func__); in check_set_affinity()
84 TEST_ASSERT(r == 0, "%s: failed to join thread", __func__); in check_join()
121 TEST_ASSERT(false, "%s: [%d] child escaped the ninja\n", __func__, run); in run_test()
150 TEST_ASSERT(false, "Child exited unexpectedly"); in wait_for_child_setup()
165 TEST_ASSERT(pid >= 0, "%s: unable to fork", __func__); in main()
175 TEST_ASSERT(r != pid, in main()
Dmax_guest_memory_test.c100 TEST_ASSERT(threads, "Failed to allocate vCPU threads"); in spawn_workers()
103 TEST_ASSERT(info, "Failed to allocate vCPU gpa ranges"); in spawn_workers()
107 TEST_ASSERT(nr_bytes, "C'mon, no way you have %d CPUs", nr_vcpus); in spawn_workers()
149 TEST_ASSERT(!r, "sched_getaffinity failed, errno = %d (%s)", in calc_default_nr_vcpus()
153 TEST_ASSERT(nr_vcpus > 0, "Uh, no CPUs?"); in calc_default_nr_vcpus()
186 TEST_ASSERT(max_slots > first_slot, "KVM is broken"); in main()
197 TEST_ASSERT(nr_vcpus > 0, "number of vcpus must be >0"); in main()
201 TEST_ASSERT(max_mem > 0, "memory size must be >0"); in main()
205 TEST_ASSERT(slot_size > 0, "slot size must be >0"); in main()
218 TEST_ASSERT(vcpus, "Failed to allocate vCPU array"); in main()
[all …]
Ddemand_paging_test.c58 TEST_ASSERT(ret == 0, "vcpu_run failed: %d\n", ret); in vcpu_worker()
60 TEST_ASSERT(false, in vcpu_worker()
172 TEST_ASSERT(r == 1, in uffd_handler_thread_fn()
236 TEST_ASSERT(alias != NULL, "Alias required for minor faults"); in setup_demand_paging()
244 TEST_ASSERT(uffd >= 0, __KVM_SYSCALL_ERROR("userfaultfd()", uffd)); in setup_demand_paging()
249 TEST_ASSERT(ret != -1, __KVM_SYSCALL_ERROR("UFFDIO_API", ret)); in setup_demand_paging()
255 TEST_ASSERT(ret != -1, __KVM_SYSCALL_ERROR("UFFDIO_REGISTER", ret)); in setup_demand_paging()
256 TEST_ASSERT((uffdio_register.ioctls & expected_ioctls) == in setup_demand_paging()
294 TEST_ASSERT(guest_data_prototype, in run_test()
301 TEST_ASSERT(uffd_handler_threads, "Memory allocation failed"); in run_test()
[all …]
Drseq_test.c53 TEST_ASSERT(!r, "getcpu failed, errno = %d (%s)", errno, strerror(errno)); in sys_getcpu()
70 TEST_ASSERT(CPU_ISSET(cpu, &possible_mask), in next_cpu()
105 TEST_ASSERT(!r, "sched_setaffinity failed, errno = %d (%s)", in migration_worker()
212 TEST_ASSERT(!r, "sched_getaffinity failed, errno = %d (%s)", errno, in main()
218 TEST_ASSERT(!r, "rseq_register_current_thread failed, errno = %d (%s)", in main()
234 TEST_ASSERT(get_ucall(vcpu, NULL) == UCALL_SYNC, in main()
261 TEST_ASSERT(rseq_cpu == cpu, in main()
272 TEST_ASSERT(i > (NR_TASK_MIGRATIONS / 2), in main()
Dset_memory_region_test.c80 TEST_ASSERT(!run->mmio.is_write, "Unexpected exit mmio write"); in vcpu_worker()
81 TEST_ASSERT(run->mmio.len == 8, in vcpu_worker()
84 TEST_ASSERT(run->mmio.phys_addr == MEM_REGION_GPA, in vcpu_worker()
100 TEST_ASSERT(!clock_gettime(CLOCK_REALTIME, &ts), in wait_for_vcpu()
104 TEST_ASSERT(!sem_timedwait(&vcpu_ready, &ts), in wait_for_vcpu()
129 TEST_ASSERT(gpa == MEM_REGION_GPA, "Failed vm_phy_pages_alloc\n"); in spawn_vm()
289 TEST_ASSERT(run->exit_reason == KVM_EXIT_SHUTDOWN || in test_delete_memory_region()
300 TEST_ASSERT(regs.rip >= final_rip_start && in test_delete_memory_region()
323 TEST_ASSERT(run->exit_reason == KVM_EXIT_INTERNAL_ERROR, in test_zero_memory_regions()
351 TEST_ASSERT(max_mem_slots > 0, in test_add_max_memory_regions()
[all …]
Dkvm_page_table_test.c198 TEST_ASSERT(ret == 0, "Error in sem_wait"); in vcpu_worker()
207 TEST_ASSERT(ret == 0, "vcpu_run failed: %d\n", ret); in vcpu_worker()
208 TEST_ASSERT(get_ucall(vcpu, NULL) == UCALL_SYNC, in vcpu_worker()
225 TEST_ASSERT(ret == 0, "Error in sem_post"); in vcpu_worker()
296 TEST_ASSERT(ret == 0, "Error in sem_init"); in pre_init_before_test()
299 TEST_ASSERT(ret == 0, "Error in sem_init"); in pre_init_before_test()
327 TEST_ASSERT(ret == 0, "Error in sem_post"); in vcpus_complete_new_stage()
334 TEST_ASSERT(ret == 0, "Error in sem_wait"); in vcpus_complete_new_stage()
356 TEST_ASSERT(vcpu_threads, "Memory allocation failed"); in run_test()
407 TEST_ASSERT(ret == 0, "Error in sem_post"); in run_test()
[all …]
/linux-6.1.9/tools/testing/selftests/kvm/lib/
Delf.c22 TEST_ASSERT(fd >= 0, "Failed to open ELF file,\n" in elfhdr_get()
35 TEST_ASSERT((ident[EI_MAG0] == ELFMAG0) && (ident[EI_MAG1] == ELFMAG1) in elfhdr_get()
44 TEST_ASSERT(ident[EI_CLASS] == ELFCLASS64, in elfhdr_get()
51 TEST_ASSERT(((BYTE_ORDER == LITTLE_ENDIAN) in elfhdr_get()
66 TEST_ASSERT(ident[EI_VERSION] == EV_CURRENT, in elfhdr_get()
80 TEST_ASSERT(offset_rv == 0, "Seek to ELF header failed,\n" in elfhdr_get()
83 TEST_ASSERT(hdrp->e_phentsize == sizeof(Elf64_Phdr), in elfhdr_get()
88 TEST_ASSERT(hdrp->e_shentsize == sizeof(Elf64_Shdr), in elfhdr_get()
121 TEST_ASSERT(fd >= 0, "Failed to open ELF file,\n" in kvm_vm_elf_load()
140 TEST_ASSERT(offset_rv == offset, in kvm_vm_elf_load()
[all …]
Dkvm_util.c63 TEST_ASSERT(r < path_size, in get_module_param_bool()
69 TEST_ASSERT(r == 1, "read(%s) failed", path); in get_module_param_bool()
72 TEST_ASSERT(!r, "close(%s) failed", path); in get_module_param_bool()
115 TEST_ASSERT(ret >= 0, KVM_IOCTL_ERROR(KVM_CHECK_EXTENSION, ret)); in kvm_check_cap()
138 TEST_ASSERT(vm->fd >= 0, KVM_IOCTL_ERROR(KVM_CREATE_VM, vm->fd)); in vm_open()
163 TEST_ASSERT(i < NUM_VM_MODES, "Guest mode ID %d too big", i); in vm_guest_mode_string()
196 TEST_ASSERT(vm != NULL, "Insufficient Memory"); in ____vm_create()
249 TEST_ASSERT(vm->va_bits == 48 || vm->va_bits == 57, in ____vm_create()
303 TEST_ASSERT(nr_runnable_vcpus, in vm_nr_pages_required()
306 TEST_ASSERT(nr_runnable_vcpus <= kvm_check_cap(KVM_CAP_MAX_VCPUS), in vm_nr_pages_required()
[all …]
Dio.c51 TEST_ASSERT(count >= 0, "Unexpected count, count: %li", count); in test_write()
58 TEST_ASSERT(errno == EAGAIN || errno == EINTR, in test_write()
70 TEST_ASSERT(rc >= 0, "Unexpected ret from write,\n" in test_write()
128 TEST_ASSERT(count >= 0, "Unexpected count, count: %li", count); in test_read()
135 TEST_ASSERT(errno == EAGAIN || errno == EINTR, in test_read()
147 TEST_ASSERT(rc > 0, "Unexpected ret from read,\n" in test_read()
Dtest_util.c29 TEST_ASSERT(size && isdigit(size[0]), "Need at least one digit in '%s'", size); in parse_size()
33 TEST_ASSERT(base != ULLONG_MAX, "Overflow parsing size!"); in parse_size()
53 TEST_ASSERT(false, "Unknown size letter %c", *scale); in parse_size()
56 TEST_ASSERT((base << shift) >> shift == base, "Overflow scaling size!"); in parse_size()
123 TEST_ASSERT(ret == 0 || (ret == -1 && errno == ENOENT), in thp_configured()
135 TEST_ASSERT(thp_configured(), "THP is not configured in host kernel"); in get_trans_hugepagesz()
138 TEST_ASSERT(f != NULL, "Error in opening transparent_hugepage/hpage_pmd_size"); in get_trans_hugepagesz()
142 TEST_ASSERT(ret < 1, "Error reading transparent_hugepage/hpage_pmd_size"); in get_trans_hugepagesz()
155 TEST_ASSERT(f != NULL, "Error in opening /proc/meminfo"); in get_def_hugetlb_pagesz()
261 TEST_ASSERT(i < NUM_SRC_TYPES, "Backing src type ID %d too big", i); in vm_mem_backing_src_alias()
/linux-6.1.9/tools/testing/selftests/kvm/aarch64/
Dvgic_init.c46 TEST_ASSERT(ret && errno == want, "%s; want errno = %d", msg, want); in v3_redist_reg_get_errno()
56 TEST_ASSERT(val == want, "%s; want '0x%x', got '0x%x'", msg, want, val); in v3_redist_reg_get()
152 TEST_ASSERT(ret && errno == ENXIO, "attribute not supported"); in subtest_dist_rdist()
158 TEST_ASSERT(ret && errno == EINVAL, "GIC dist base not aligned"); in subtest_dist_rdist()
163 TEST_ASSERT(ret && errno == EINVAL, "GIC redist/cpu base not aligned"); in subtest_dist_rdist()
169 TEST_ASSERT(ret && errno == E2BIG, "dist address beyond IPA limit"); in subtest_dist_rdist()
173 TEST_ASSERT(ret && errno == E2BIG, "redist address beyond IPA limit"); in subtest_dist_rdist()
179 TEST_ASSERT(ret && errno == E2BIG, in subtest_dist_rdist()
191 TEST_ASSERT(ret && errno == EEXIST, "GIC redist base set again"); in subtest_dist_rdist()
200 TEST_ASSERT(ret && errno == EINVAL, in subtest_dist_rdist()
[all …]
Dvcpu_width_config.c95 TEST_ASSERT(ret == 0, in main()
98 TEST_ASSERT(ret == 0, in main()
104 TEST_ASSERT(ret == 0, in main()
107 TEST_ASSERT(ret == 0, in main()
114 TEST_ASSERT(ret != 0, in main()
117 TEST_ASSERT(ret != 0, in main()
/linux-6.1.9/tools/testing/selftests/kvm/x86_64/
Dsync_regs_test.c46 TEST_ASSERT(left->reg == right->reg, \ in compare_regs()
107 TEST_ASSERT(rv < 0 && errno == EINVAL, in main()
114 TEST_ASSERT(rv < 0 && errno == EINVAL, in main()
122 TEST_ASSERT(rv < 0 && errno == EINVAL, in main()
129 TEST_ASSERT(rv < 0 && errno == EINVAL, in main()
138 TEST_ASSERT(run->exit_reason == KVM_EXIT_IO, in main()
160 TEST_ASSERT(run->exit_reason == KVM_EXIT_IO, in main()
164 TEST_ASSERT(run->s.regs.regs.rbx == 0xBAD1DEA + 1, in main()
167 TEST_ASSERT(run->s.regs.sregs.apic_base == 1 << 11, in main()
187 TEST_ASSERT(run->exit_reason == KVM_EXIT_IO, in main()
[all …]
Dhyperv_cpuid.c53 TEST_ASSERT(hv_cpuid_entries->nent == nent_expected, in test_hv_cpuid()
61 TEST_ASSERT((entry->function >= 0x40000000) && in test_hv_cpuid()
66 TEST_ASSERT(entry->index == 0, in test_hv_cpuid()
69 TEST_ASSERT(entry->flags == 0, in test_hv_cpuid()
72 TEST_ASSERT(!entry->padding[0] && !entry->padding[1] && in test_hv_cpuid()
79 TEST_ASSERT(entry->eax == test_val, in test_hv_cpuid()
88 TEST_ASSERT(!!test_val == !smt_possible(), in test_hv_cpuid()
93 TEST_ASSERT(entry->eax & (1UL << 19), in test_hv_cpuid()
97 TEST_ASSERT((entry->eax & 0xffff) == 0x101, in test_hv_cpuid()
126 TEST_ASSERT(ret == -1 && errno == E2BIG, in test_hv_cpuid_e2big()
Ducna_injection_test.c146 TEST_ASSERT(exit_reason == KVM_EXIT_IO, in run_vcpu_expect_gp()
149 TEST_ASSERT(get_ucall(vcpu, &uc) == UCALL_SYNC, in run_vcpu_expect_gp()
151 TEST_ASSERT(uc.args[1] == SYNC_GP, "#GP is expected."); in run_vcpu_expect_gp()
188 TEST_ASSERT(r == 0, in run_ucna_injection()
195 TEST_ASSERT(exit_reason == KVM_EXIT_IO, in run_ucna_injection()
198 TEST_ASSERT(get_ucall(params->vcpu, &uc) == UCALL_SYNC, in run_ucna_injection()
200 TEST_ASSERT(uc.args[1] == SYNC_FIRST_UCNA, "Injecting first UCNA."); in run_ucna_injection()
208 TEST_ASSERT(exit_reason == KVM_EXIT_IO, in run_ucna_injection()
211 TEST_ASSERT(get_ucall(params->vcpu, &uc) == UCALL_SYNC, in run_ucna_injection()
213 TEST_ASSERT(uc.args[1] == SYNC_SECOND_UCNA, "Injecting second UCNA."); in run_ucna_injection()
[all …]
Dvmx_dirty_log_test.c119 TEST_ASSERT(run->exit_reason == KVM_EXIT_IO, in main()
135 TEST_ASSERT(test_bit(0, bmap), "Page 0 incorrectly reported clean\n"); in main()
136 TEST_ASSERT(host_test_mem[0] == 1, "Page 0 not written by guest\n"); in main()
138 TEST_ASSERT(!test_bit(0, bmap), "Page 0 incorrectly reported dirty\n"); in main()
139 TEST_ASSERT(host_test_mem[0] == 0xaaaaaaaaaaaaaaaaULL, "Page 0 written by guest\n"); in main()
142 TEST_ASSERT(!test_bit(1, bmap), "Page 1 incorrectly reported dirty\n"); in main()
143 TEST_ASSERT(host_test_mem[4096 / 8] == 0xaaaaaaaaaaaaaaaaULL, "Page 1 written by guest\n"); in main()
144 TEST_ASSERT(!test_bit(2, bmap), "Page 2 incorrectly reported dirty\n"); in main()
145 TEST_ASSERT(host_test_mem[8192 / 8] == 0xaaaaaaaaaaaaaaaaULL, "Page 2 written by guest\n"); in main()
Demulator_error_test.c58 TEST_ASSERT(run->exit_reason == KVM_EXIT_INTERNAL_ERROR, in process_exit_on_emulation_error()
63 TEST_ASSERT(run->emulation_failure.suberror == KVM_INTERNAL_ERROR_EMULATION, in process_exit_on_emulation_error()
74 TEST_ASSERT(insn_size <= 15 && insn_size > 0, in process_exit_on_emulation_error()
78 TEST_ASSERT(is_flds(insn_bytes, insn_size), in process_exit_on_emulation_error()
115 TEST_ASSERT(run->exit_reason == KVM_EXIT_IO, in process_ucall_done()
120 TEST_ASSERT(get_ucall(vcpu, &uc) == UCALL_DONE, in process_ucall_done()
130 TEST_ASSERT(run->exit_reason == KVM_EXIT_IO, in process_ucall()
145 TEST_ASSERT(false, "Unexpected ucall"); in process_ucall()
169 TEST_ASSERT(rc, "KVM_CAP_EXIT_ON_EMULATION_FAILURE is unavailable"); in main()
177 TEST_ASSERT(gpa == MEM_REGION_GPA, "Failed vm_phy_pages_alloc\n"); in main()
[all …]
Dxen_shinfo_test.c458 TEST_ASSERT(zero_fd != -1, "Failed to open /dev/zero"); in main()
491 TEST_ASSERT(m == shinfo, "Failed to map /dev/zero over shared info"); in main()
613 TEST_ASSERT(run->exit_reason == KVM_EXIT_IO, in main()
627 TEST_ASSERT(rs->state_entry_time == rs->time[0] + in main()
640 TEST_ASSERT(!evtchn_irq_expected, "Event channel IRQ not seen"); in main()
709 TEST_ASSERT(!evtchn_irq_expected, in main()
722 TEST_ASSERT(!evtchn_irq_expected, in main()
742 TEST_ASSERT(!evtchn_irq_expected, in main()
753 TEST_ASSERT(!evtchn_irq_expected, in main()
764 TEST_ASSERT(!evtchn_irq_expected, in main()
[all …]
Duserspace_msr_exit_test.c413 TEST_ASSERT(run->exit_reason == KVM_EXIT_X86_RDMSR, in process_rdmsr()
417 TEST_ASSERT(run->msr.index == msr_index, in process_rdmsr()
438 TEST_ASSERT(false, "Unexpected MSR: 0x%04x", run->msr.index); in process_rdmsr()
448 TEST_ASSERT(run->exit_reason == KVM_EXIT_X86_WRMSR, in process_wrmsr()
452 TEST_ASSERT(run->msr.index == msr_index, in process_wrmsr()
469 TEST_ASSERT(false, "Unexpected MSR: 0x%04x", run->msr.index); in process_wrmsr()
480 TEST_ASSERT(run->exit_reason == KVM_EXIT_IO, in process_ucall_done()
485 TEST_ASSERT(get_ucall(vcpu, &uc) == UCALL_DONE, in process_ucall_done()
497 TEST_ASSERT(run->exit_reason == KVM_EXIT_IO, in process_ucall()
512 TEST_ASSERT(false, "Unexpected ucall"); in process_ucall()
[all …]
Dsev_migrate_tests.c45 TEST_ASSERT(ret == 0 && fw_error == SEV_RET_SUCCESS, in sev_ioctl()
94 TEST_ASSERT(!ret, "Migration failed, ret: %d, errno: %d\n", ret, errno); in sev_migrate_from()
115 TEST_ASSERT(ret == -1 && errno == EIO, in test_sev_migrate_from()
174 TEST_ASSERT(ret == -1 && errno == EINVAL, in test_sev_migrate_parameters()
188 TEST_ASSERT( in test_sev_migrate_parameters()
194 TEST_ASSERT( in test_sev_migrate_parameters()
200 TEST_ASSERT( in test_sev_migrate_parameters()
206 TEST_ASSERT( in test_sev_migrate_parameters()
230 TEST_ASSERT(!ret, "Copying context failed, ret: %d, errno: %d\n", ret, errno); in sev_mirror_create()
260 TEST_ASSERT( in verify_mirror_allowed_cmds()
[all …]
Dxapic_ipi_test.c204 TEST_ASSERT(r == 0, in vcpu_thread()
212 TEST_ASSERT(exit_reason == KVM_EXIT_IO, in vcpu_thread()
217 TEST_ASSERT(false, in vcpu_thread()
242 TEST_ASSERT(r == 0, in cancel_join_vcpu_thread()
247 TEST_ASSERT(r == 0, in cancel_join_vcpu_thread()
250 TEST_ASSERT(retval == PTHREAD_CANCELED, in cancel_join_vcpu_thread()
277 TEST_ASSERT(r == 0, "get_mempolicy failed errno=%d", errno); in do_migrations()
294 TEST_ASSERT(nodes > 1, in do_migrations()
349 TEST_ASSERT(ipis_sent != data->ipis_sent && in do_migrations()
383 TEST_ASSERT(false, in get_cmdline_args()
[all …]
/linux-6.1.9/tools/testing/selftests/kvm/lib/s390x/
Dprocessor.c17 TEST_ASSERT(vm->page_size == 4096, "Unsupported page size: 0x%x", in virt_arch_pgd_alloc()
54 TEST_ASSERT((gva % vm->page_size) == 0, in virt_arch_pg_map()
58 TEST_ASSERT(sparsebit_is_set(vm->vpages_valid, in virt_arch_pg_map()
62 TEST_ASSERT((gpa % vm->page_size) == 0, in virt_arch_pg_map()
66 TEST_ASSERT((gpa >> vm->page_shift) <= vm->max_gfn, in virt_arch_pg_map()
93 TEST_ASSERT(vm->page_size == 4096, "Unsupported page size: 0x%x", in addr_arch_gva2gpa()
99 TEST_ASSERT(!(entry[idx] & REGION_ENTRY_INVALID), in addr_arch_gva2gpa()
107 TEST_ASSERT(!(entry[idx] & PAGE_INVALID), in addr_arch_gva2gpa()
167 TEST_ASSERT(vm->page_size == 4096, "Unsupported page size: 0x%x", in vm_arch_vcpu_add()
198 TEST_ASSERT(num >= 1 && num <= 5, "Unsupported number of args,\n" in vcpu_args_set()

1234