/kvm-unit-tests/powerpc/ |
H A D | interrupts.c | 55 handle_exception(0x300, fault_handler, NULL); in test_mce() 56 handle_exception(0x380, fault_handler, NULL); in test_mce() 57 handle_exception(0x400, fault_handler, NULL); in test_mce() 58 handle_exception(0x480, fault_handler, NULL); in test_mce() 103 mmu_enable(NULL); in test_mce() 105 handle_exception(0x200, NULL, NULL); in test_mce() 106 handle_exception(0x300, NULL, NULL); in test_mce() 107 handle_exception(0x380, NULL, NULL); in test_mce() 108 handle_exception(0x400, NULL, NULL); in test_mce() 109 handle_exception(0x480, NULL, NULL); in test_mce() [all …]
|
H A D | mmu.c | 34 setup_mmu(0, NULL); in tlbie_fn() 68 handle_exception(0x700, &trap_handler, NULL); in test_tlbie() 78 ptep = install_page(NULL, p[0], memory); in test_tlbie() 80 assert(ptep == install_page(NULL, p[1], memory)); in test_tlbie() 82 assert(ptep == install_page(NULL, p[0], memory)); in test_tlbie() 114 handle_exception(0x700, NULL, NULL); in test_tlbie() 142 ptep = install_page(NULL, p[0], memory); in test_tlbie_this_cpu() 144 assert(ptep == install_page(NULL, p[1], memory)); in test_tlbie_this_cpu() 146 assert(ptep == install_page(NULL, p[0], memory)); in test_tlbie_this_cpu() 196 { NULL, NULL } [all …]
|
H A D | timebase.c | 48 ret = dt_for_each_cpu_node(cpu_dec_bits, NULL); in find_dec_bits() 101 handle_exception(0x900, &dec_handler, NULL); in test_dec() 184 handle_exception(0x900, NULL, NULL); in test_dec() 196 handle_exception(0x900, &dec_stop_handler, NULL); in test_hdec() 197 handle_exception(0x980, &dec_handler, NULL); in test_hdec() 296 handle_exception(0x900, NULL, NULL); in test_hdec() 297 handle_exception(0x980, NULL, NULL); in test_hdec() 307 { NULL, NULL } 335 for (i = 0; hctests[i].name != NULL; i++) { in main()
|
/kvm-unit-tests/lib/ |
H A D | acpi.c | 5 struct acpi_table_rsdp *efi_rsdp = NULL; 14 if (efi_rsdp == NULL) in get_rsdp() 32 return NULL; in get_rsdp() 40 struct acpi_table_rsdt_rev1 *rsdt = NULL; in find_acpi_table_addr() 41 struct acpi_table_xsdt *xsdt = NULL; in find_acpi_table_addr() 52 return NULL; in find_acpi_table_addr() 57 if (rsdp == NULL) { in find_acpi_table_addr() 59 return NULL; in find_acpi_table_addr() 67 rsdt = NULL; in find_acpi_table_addr() 75 xsdt = NULL; in find_acpi_table_addr() [all …]
|
H A D | efi.c | 29 efi_system_table_t *efi_system_table = NULL; 48 status = efi_bs_call(locate_protocol, &boot_protocol_guid, NULL, in efi_get_boot_hartid() 63 efi_memory_desc_t *m = NULL; in efi_get_memory_map() 69 NULL, &key, &desc_size, &desc_ver); in efi_get_memory_map() 129 efi_rs_call(reset_system, EFI_RESET_SHUTDOWN, code, 0, NULL); in efi_exit() 198 return NULL; in efi_convert_cmdline() 294 *buffer = NULL; in efi_grow_buffer() 303 void *val = NULL; in efi_get_var() 308 status = efi_rs_call(get_variable, var, &efi_var_guid, NULL, &val_size, val); in efi_get_var() 320 void *fdt = NULL; in efi_get_fdt() [all …]
|
H A D | virtio-mmio.c | 68 return NULL; in vm_setup_vq() 90 callbacks ? callbacks[i] : NULL, in vm_find_vqs() 92 if (vqs[i] == NULL) in vm_find_vqs() 152 return NULL; in virtio_mmio_dt_bind() 165 return NULL; in virtio_mmio_dt_bind() 168 assert(vm_dev != NULL); in virtio_mmio_dt_bind()
|
H A D | chr-testdev.c | 57 if (vcon == NULL) in chr_testdev_init() 60 ret = vcon->config->find_vqs(vcon, 2, vqs, NULL, io_names); in chr_testdev_init() 64 vcon = NULL; in chr_testdev_init()
|
H A D | devicetree.c | 29 if (prop == NULL) in dt_get_nr_cells() 36 if (prop == NULL) in dt_get_nr_cells() 63 if (prop == NULL) in dt_get_reg() 165 dt_device_init(&dev, &dt_default_bus, NULL); in dt_pbus_get_base_compatible() 227 if (prop == NULL) in dt_for_each_cpu_node() 252 *bootargs = NULL; in dt_get_bootargs() 295 *initrd = NULL; in dt_get_initrd()
|
H A D | virtio.c | 45 vq->data[i] = NULL; in vring_init_virtqueue() 47 vq->data[i] = NULL; in vring_init_virtqueue() 56 assert(buf != NULL); in virtqueue_add_outbuf() 94 vq->data[head] = NULL; in detach_buf()
|
/kvm-unit-tests/s390x/ |
H A D | exittime.c | 25 smp_sigp(destcpu, SIGP_SENSE_RUNNING, 0, NULL); in test_sigp_sense_running() 184 * When non-null, will be called once before running the test loop. 192 {"nop", true, NULL, test_nop, 0, 200000 }, 193 {"sigp sense running(0)", true, NULL, test_sigp_sense_running, 0, 20000 }, 194 {"sigp sense running(1)", true, NULL, test_sigp_sense_running, 1, 20000 }, 196 {"diag9c(0)", false, NULL, test_diag9c, 0, 2000 }, 197 {"diag9c(1)", false, NULL, test_diag9c, 1, 2000 }, 198 {"diag44", true, NULL, test_diag44, 0, 2000 }, 199 {"stnsm", true, NULL, test_stnsm, 0, 200000 }, 200 {"stosm", true, NULL, test_stosm, 0, 200000 }, [all …]
|
H A D | spec_ex.c | 261 { "odd_ex_target", &odd_ex_target, true, NULL }, 262 { "bad_alignment_lqp", &bad_alignment_lqp, true, NULL }, 263 { "bad_alignment_lrl", &bad_alignment_lrl, true, NULL }, 264 { "not_even", ¬_even, true, NULL }, 265 { NULL, NULL, false, NULL }, 275 register_pgm_cleanup_func(NULL); in test_spec_ex() 286 * NULL must not be passed to __builtin_tbegin via variable, only constant, 287 * forbid diagnose from being NULL at all to keep things simple 365 register_pgm_cleanup_func(NULL); in test_spec_ex_trans()
|
H A D | intercept.c | 211 { NULL, NULL, false } 230 } else for (ti = 0; tests[ti].name != NULL; ti++) { in parse_intercept_test_args() 235 } else if (tests[ti + 1].name == NULL) { in parse_intercept_test_args() 243 for (ti = 0; tests[ti].name != NULL; ti++) in parse_intercept_test_args() 262 for (ti = 0; tests[ti].name != NULL; ti++) { in main()
|
H A D | smp.c | 221 smp_sigp(1, SIGP_STORE_STATUS_AT_ADDRESS, (uintptr_t)status, NULL); in test_store_status() 339 smp_sigp(1, current_sigp_call_case->call, 0, NULL); in test_calls() 373 register_ext_cleanup_func(NULL); in call_in_wait_cleanup() 413 smp_sigp(1, current_sigp_call_case->call, 0, NULL); in test_calls_in_wait() 470 smp_sigp(1, SIGP_INITIAL_CPU_RESET, 0, NULL); in test_reset_initial() 471 smp_sigp(1, SIGP_STORE_STATUS_AT_ADDRESS, (uintptr_t)status, NULL); in test_reset_initial() 507 smp_sigp(1, SIGP_EMERGENCY_SIGNAL, 0, NULL); in test_reset() 508 smp_sigp(1, SIGP_EXTERNAL_CALL, 0, NULL); in test_reset() 511 smp_sigp(1, SIGP_CPU_RESET, 0, NULL); in test_reset()
|
/kvm-unit-tests/lib/libfdt/ |
H A D | fdt_ro.c | 85 /* missing terminating NULL */ in fdt_get_string() 97 return NULL; in fdt_get_string() 102 return fdt_get_string(fdt, stroffset, NULL); in fdt_string() 122 offset = fdt_next_node(fdt, offset, NULL); in fdt_find_max_phandle() 167 return NULL; in fdt_mem_rsv() 170 return NULL; in fdt_mem_rsv() 194 for (i = 0; (re = fdt_mem_rsv(fdt, i)) != NULL; i++) { in fdt_num_mem_rsv() 320 if (leaf == NULL) { in fdt_get_name() 335 return NULL; in fdt_get_name() 367 return NULL; in fdt_get_property_by_offset_() [all …]
|
/kvm-unit-tests/scripts/ |
H A D | arch-run.bash | 38 errors=$("${@}" $INITRD </dev/null 2> >(tee /dev/stderr) > /dev/fd/$stdout) 150 if ! command -v ncat >/dev/null 2>&1; then 169 src_qmpout=/dev/null 170 dst_qmpout=/dev/null 203 while ps -p ${live_pid} > /dev/null ; do 243 if ! ps -p ${live_pid} > /dev/null ; then 245 qmp ${dst_qmp} '"quit"'> ${dst_qmpout} 2>/dev/null 247 qmp ${src_qmp} '"quit"'> ${src_qmpout} 2>/dev/null 256 qmp ${dst_qmp} '"quit"'> ${dst_qmpout} 2>/dev/null 258 qmp ${src_qmp} '"quit"'> ${src_qmpout} 2>/dev/null [all …]
|
/kvm-unit-tests/lib/s390x/ |
H A D | smp.c | 65 return NULL; in smp_cpu_from_addr() 91 if (smp_sigp(idx, SIGP_SENSE_RUNNING, 0, NULL) != SIGP_CC_STATUS_STORED) in smp_sense_running_status() 105 if (smp_sigp(idx, order, 0, NULL)) in smp_cpu_stop_nolock() 141 if (sigp(cpus[idx].addr, SIGP_STOP, 0, NULL)) { in smp_cpu_stop_nowait() 177 rc = smp_sigp(idx, SIGP_RESTART, 0, NULL); in smp_cpu_restart_nolock() 195 rc = smp_cpu_restart_nolock(idx, NULL); in smp_cpu_restart() 212 if (sigp(cpus[idx].addr, SIGP_RESTART, 0, NULL)) { in smp_cpu_restart_nowait() 257 smp_sigp(idx, SIGP_INITIAL_CPU_RESET, 0, NULL); in smp_cpu_setup_nolock() 261 smp_sigp(idx, SIGP_SET_PREFIX, (unsigned long )lc, NULL); in smp_cpu_setup_nolock() 280 smp_cpu_restart_nolock(idx, NULL); in smp_cpu_setup_nolock() [all …]
|
H A D | malloc_io.h | 21 * the function rewinds the partial allocation and a NULL pointer 32 * Returns a pointer to the first page in case of success, NULL otherwise.
|
/kvm-unit-tests/arm/ |
H A D | micro-bench.c | 90 on_cpu_async(1, gic_secondary_entry, NULL); in test_init() 309 {"hvc", NULL, hvc_exec, NULL, 65536, true}, 310 {"mmio_read_user", mmio_read_user_prep, mmio_read_user_exec, NULL, 65536, true}, 311 {"mmio_read_vgic", NULL, mmio_read_vgic_exec, NULL, 65536, true}, 312 {"eoi", NULL, eoi_exec, NULL, 65536, true}, 313 {"ipi", ipi_prep, ipi_exec, NULL, 65536, true}, 314 {"ipi_hw", ipi_hw_prep, ipi_exec, NULL, 65536, true}, 315 {"lpi", lpi_prep, lpi_exec, NULL, 65536, true},
|
H A D | selftest.c | 159 install_exception_handler(EXCPTN_UND, NULL); in check_und() 201 install_exception_handler(EXCPTN_SVC, NULL); in check_svc() 225 install_exception_handler(EXCPTN_PABT, NULL); in check_pabt() 323 install_exception_handler(v, ESR_EL1_EC_UNKNOWN, NULL); in check_und() 344 install_exception_handler(v, ESR_EL1_EC_SVC64, NULL); in check_svc() 373 install_exception_handler(v, ESR_EL1_EC_IABT_EL1, NULL); in check_pabt() 440 check_vectors(NULL); in main() 444 start_usr(check_vectors, NULL, in main() 450 on_cpus(cpu_report, NULL); in main()
|
/kvm-unit-tests/lib/ppc64/ |
H A D | mmu.c | 33 return current_cpu()->pgtable != NULL; in mmu_enabled() 53 cpu->pgtable = NULL; in mmu_disable() 113 return NULL; in follow_pte() 117 return NULL; in follow_pte() 121 return NULL; in follow_pte() 127 return NULL; in follow_pte() 218 * Avoid mapping page 0 so NULL dereferences fault. Test images in setup_mmu()
|
/kvm-unit-tests/lib/powerpc/ |
H A D | processor.c | 125 handle_exception(0x900, &dec_handler_oneshot, NULL); in sleep_tb() 139 handle_exception(0x900, NULL, NULL); in sleep_tb() 197 handle_exception(0xc00, usermode_sc_handler, NULL); in enter_usermode() 206 handle_exception(0xc00, NULL, NULL); in exit_usermode()
|
H A D | setup.c | 81 "i-cache-line-size", NULL); in cpu_set() 82 assert(prop != NULL); in cpu_set() 87 "d-cache-line-size", NULL); in cpu_set() 88 assert(prop != NULL); in cpu_set() 93 "timebase-frequency", NULL); in cpu_set() 94 assert(prop != NULL); in cpu_set() 211 cpu->pgtable = NULL; in cpu_init() 233 cpu->pgtable = NULL; in setup()
|
/kvm-unit-tests/x86/ |
H A D | run | 17 if ! ${qemu} -device '?' 2>&1 | grep -F -e \"testdev\" -e \"pc-testdev\" > /dev/null; 24 ${qemu} -device '?' 2>&1 | grep -F "pci-testdev" > /dev/null; 32 ${qemu} -device '?' 2>&1 | grep -F "pc-testdev" > /dev/null;
|
H A D | svm_npt.c | 371 { NULL, NULL, NULL, NULL, NULL, NULL, NULL }
|
/kvm-unit-tests/riscv/ |
H A D | sbi.c | 144 *paddr = strtoull(getenv("INVALID_ADDR"), NULL, 0); in get_invalid_addr() 161 install_irq_handler(IRQ_S_TIMER, NULL); in timer_teardown() 177 expected = (long)strtoul(getenv("SBI_SPEC_VERSION"), NULL, 0); in check_base() 193 expected = (long)strtoul(getenv("SBI_IMPL_ID"), NULL, 0); in check_base() 201 expected = (long)strtoul(getenv("SBI_IMPL_VERSION"), NULL, 0); in check_base() 208 expected = getenv("SBI_PROBE_EXT") ? (long)strtoul(getenv("SBI_PROBE_EXT"), NULL, 0) : 1; in check_base() 218 expected = (long)strtoul(getenv("MVENDORID"), NULL, 0); in check_base() 227 expected = (long)strtoul(getenv("MARCHID"), NULL, 0); in check_base() 235 expected = (long)strtoul(getenv("MIMPID"), NULL, 0); in check_base() 281 unsigned long d = getenv("SBI_TIMER_DELAY") ? strtol(getenv("SBI_TIMER_DELAY"), NULL, 0) : 200000; in timer_check_set_timer() [all …]
|