/openbmc/qemu/tests/unit/ |
H A D | test-keyval.c | 33 qdict = keyval_parse("", NULL, NULL, &error_abort); in test_keyval_parse() 72 qdict = keyval_parse(params + 2, NULL, NULL, &error_abort); in test_keyval_parse() 78 qdict = keyval_parse(params, NULL, NULL, &error_abort); in test_keyval_parse() 93 qdict = keyval_parse("a=1,b=2,,x,a=3", NULL, NULL, &error_abort); in test_keyval_parse() 100 qdict = keyval_parse("id=foo,id=bar", NULL, NULL, &error_abort); in test_keyval_parse() 106 qdict = keyval_parse("a.b.c=1,a.b.c=2,d=3", NULL, NULL, &error_abort); in test_keyval_parse() 127 qdict = keyval_parse("x=y,", NULL, NULL, &error_abort); in test_keyval_parse() 138 qdict = keyval_parse("x=,,id=bar", NULL, NULL, &error_abort); in test_keyval_parse() 144 qdict = keyval_parse("id=666", NULL, NULL, &error_abort); in test_keyval_parse() 160 qdict = keyval_parse("an,aus=off,noaus=", "implied", NULL, &error_abort); in test_keyval_parse() [all …]
|
H A D | test-authz-list.c | 30 &error_abort); in test_authz_default_deny() 32 g_assert(!qauthz_is_allowed(QAUTHZ(auth), "fred", &error_abort)); in test_authz_default_deny() 41 &error_abort); in test_authz_default_allow() 43 g_assert(qauthz_is_allowed(QAUTHZ(auth), "fred", &error_abort)); in test_authz_default_allow() 52 &error_abort); in test_authz_explicit_deny() 55 QAUTHZ_LIST_FORMAT_EXACT, &error_abort); in test_authz_explicit_deny() 57 g_assert(!qauthz_is_allowed(QAUTHZ(auth), "fred", &error_abort)); in test_authz_explicit_deny() 66 &error_abort); in test_authz_explicit_allow() 69 QAUTHZ_LIST_FORMAT_EXACT, &error_abort); in test_authz_explicit_allow() 71 g_assert(qauthz_is_allowed(QAUTHZ(auth), "fred", &error_abort)); in test_authz_explicit_allow() [all …]
|
H A D | test-bdrv-graph-mod.c | 69 return bdrv_new_open_driver(&bdrv_no_perm, name, BDRV_O_RDWR, &error_abort); in no_perm_node() 75 BDRV_O_RDWR, &error_abort); in pass_through_node() 81 BDRV_O_RDWR, &error_abort); in exclusive_writer_node() 138 blk_insert_bs(root, bs, &error_abort); in test_update_perm_tree() 142 BDRV_CHILD_DATA, &error_abort); in test_update_perm_tree() 203 blk_insert_bs(root, bs, &error_abort); in test_should_update_child() 205 bdrv_set_backing_hd(target, bs, &error_abort); in test_should_update_child() 210 BDRV_CHILD_DATA, &error_abort); in test_should_update_child() 212 bdrv_append(filter, bs, &error_abort); in test_should_update_child() 250 &error_abort); in test_parallel_exclusive_write() [all …]
|
H A D | test-replication.c | 149 BDRV_O_RDWR, true, &error_abort); in prepare_imgs() 153 BDRV_O_RDWR, true, &error_abort); in prepare_imgs() 155 BDRV_O_RDWR, true, &error_abort); in prepare_imgs() 157 BDRV_O_RDWR, true, &error_abort); in prepare_imgs() 189 blk = blk_new_open(NULL, NULL, qdict, BDRV_O_RDWR, &error_abort); in start_primary() 192 monitor_add_blk(blk, P_ID, &error_abort); in start_primary() 241 replication_start_all(REPLICATION_MODE_PRIMARY, &error_abort); in test_primary_start() 258 replication_start_all(REPLICATION_MODE_PRIMARY, &error_abort); in test_primary_stop() 260 replication_stop_all(failover, &error_abort); in test_primary_stop() 269 replication_start_all(REPLICATION_MODE_PRIMARY, &error_abort); in test_primary_do_checkpoint() [all …]
|
H A D | test-crypto-secret.c | 38 &error_abort, in test_secret_direct() 43 &error_abort); in test_secret_direct() 69 &error_abort, in test_secret_indirect_good() 74 &error_abort); in test_secret_indirect_good() 115 &error_abort, in test_secret_indirect_emptyfile() 120 &error_abort); in test_secret_indirect_emptyfile() 151 &error_abort, in test_secret_keyring_good() 157 &error_abort); in test_secret_keyring_good() 279 &error_abort, in test_secret_noconv_base64_good() 285 &error_abort); in test_secret_noconv_base64_good() [all …]
|
H A D | test-char.c | 88 1, &error_abort); in char_console_test_subprocess() 89 qemu_opt_set(opts, "backend", "console", &error_abort); in char_console_test_subprocess() 116 qemu_chr_fe_init(&be, chr, &error_abort); in char_stdio_test_subprocess() 140 1, &error_abort); in char_ringbuf_test() 141 qemu_opt_set(opts, "backend", "ringbuf", &error_abort); in char_ringbuf_test() 143 qemu_opt_set(opts, "size", "5", &error_abort); in char_ringbuf_test() 149 1, &error_abort); in char_ringbuf_test() 150 qemu_opt_set(opts, "backend", "ringbuf", &error_abort); in char_ringbuf_test() 151 qemu_opt_set(opts, "size", "2", &error_abort); in char_ringbuf_test() 152 chr = qemu_chr_new_from_opts(opts, NULL, &error_abort); in char_ringbuf_test() [all …]
|
H A D | test-logging.c | 38 qemu_set_dfilter_ranges("0x1000+0x100", &error_abort); in test_parse_range() 46 qemu_set_dfilter_ranges("0x1000-0x100", &error_abort); in test_parse_range() 53 qemu_set_dfilter_ranges("0x1000..0x1100", &error_abort); in test_parse_range() 60 qemu_set_dfilter_ranges("0x1000..0x1000", &error_abort); in test_parse_range() 67 &error_abort); in test_parse_range() 72 qemu_set_dfilter_ranges("0xffffffffffffffff-1", &error_abort); in test_parse_range() 76 qemu_set_dfilter_ranges("0..0xffffffffffffffff", &error_abort); in test_parse_range() 103 set_log_path_tmp(tmp_path, "qemu.log", &error_abort); in test_parse_path() 104 set_log_path_tmp(tmp_path, "qemu-%d.log", &error_abort); in test_parse_path() 105 set_log_path_tmp(tmp_path, "qemu.log.%d", &error_abort); in test_parse_path() [all …]
|
H A D | test-bdrv-drain.c | 192 &error_abort); in test_setup() 193 blk_insert_bs(blk, bs, &error_abort); in test_setup() 195 backing = bdrv_new_open_driver(&bdrv_test, "backing", 0, &error_abort); in test_setup() 196 bdrv_set_backing_hd(bs, backing, &error_abort); in test_setup() 383 &error_abort); in test_nested() 385 blk_insert_bs(blk, bs, &error_abort); in test_nested() 387 backing = bdrv_new_open_driver(&bdrv_test, "backing", 0, &error_abort); in test_nested() 389 bdrv_set_backing_hd(bs, backing, &error_abort); in test_nested() 433 &error_abort); in test_graph_change_drain_all() 435 blk_insert_bs(blk_a, bs_a, &error_abort); in test_graph_change_drain_all() [all …]
|
H A D | test-block-iothread.c | 477 bs = bdrv_new_open_driver(&bdrv_test, "base", BDRV_O_RDWR, &error_abort); in test_sync_op() 479 blk_insert_bs(blk, bs, &error_abort); in test_sync_op() 485 blk_set_aio_context(blk, ctx, &error_abort); in test_sync_op() 492 blk_set_aio_context(blk, qemu_get_aio_context(), &error_abort); in test_sync_op() 558 bs = bdrv_new_open_driver(&bdrv_test, "base", BDRV_O_RDWR, &error_abort); in test_attach_blockjob() 559 blk_insert_bs(blk, bs, &error_abort); in test_attach_blockjob() 563 0, 0, NULL, NULL, &error_abort); in test_attach_blockjob() 570 blk_set_aio_context(blk, ctx, &error_abort); in test_attach_blockjob() 577 blk_set_aio_context(blk, qemu_get_aio_context(), &error_abort); in test_attach_blockjob() 584 blk_set_aio_context(blk, ctx, &error_abort); in test_attach_blockjob() [all …]
|
H A D | test-qemu-opts.c | 144 opts = qemu_opts_create(list, NULL, 0, &error_abort); in test_qemu_opts_create() 175 opts = qemu_opts_create(list, NULL, 0, &error_abort); in test_qemu_opt_get() 183 qemu_opt_set(opts, "str2", "value", &error_abort); in test_qemu_opt_get() 189 qemu_opt_set(opts, "str2", "value2", &error_abort); in test_qemu_opt_get() 218 opts = qemu_opts_create(list, NULL, 0, &error_abort); in test_qemu_opt_get_bool() 226 qemu_opt_set_bool(opts, "bool1", true, &error_abort); in test_qemu_opt_get_bool() 233 qemu_opt_set_bool(opts, "bool1", false, &error_abort); in test_qemu_opt_get_bool() 261 opts = qemu_opts_create(list, NULL, 0, &error_abort); in test_qemu_opt_get_number() 269 qemu_opt_set_number(opts, "number1", 10, &error_abort); in test_qemu_opt_get_number() 276 qemu_opt_set_number(opts, "number1", 15, &error_abort); in test_qemu_opt_get_number() [all …]
|
H A D | test-qobject-input-visitor.c | 106 qobject_from_json(json_string, &error_abort)); in visitor_input_test_init_raw() 119 visit_type_int(v, NULL, &res, &error_abort); in test_visitor_in_int() 122 visit_type_number(v, NULL, &dbl, &error_abort); in test_visitor_in_int() 137 visit_type_uint64(v, NULL, &res, &error_abort); in test_visitor_in_uint() 140 visit_type_int(v, NULL, &i64, &error_abort); in test_visitor_in_uint() 143 visit_type_number(v, NULL, &dbl, &error_abort); in test_visitor_in_uint() 149 visit_type_uint64(v, NULL, &res, &error_abort); in test_visitor_in_uint() 154 visit_type_uint64(v, NULL, &res, &error_abort); in test_visitor_in_uint() 157 visit_type_number(v, NULL, &dbl, &error_abort); in test_visitor_in_uint() 199 visit_type_int(v, NULL, &res, &error_abort); in test_visitor_in_int_str_keyval() [all …]
|
H A D | test-string-input-visitor.c | 55 visit_type_int(v, NULL, &res, &error_abort); in test_visitor_in_int() 75 visit_type_int64List(v, NULL, &res, &error_abort); in check_ilist() 93 visit_type_uint64List(v, NULL, &res, &error_abort); in check_ulist() 174 visit_type_int64List(v, NULL, &res, &error_abort); in test_visitor_in_intList() 189 visit_start_list(v, NULL, NULL, 0, &error_abort); in test_visitor_in_intList() 190 visit_type_int64(v, NULL, &val, &error_abort); in test_visitor_in_intList() 192 visit_type_int64(v, NULL, &val, &error_abort); in test_visitor_in_intList() 203 visit_start_list(v, NULL, NULL, 0, &error_abort); in test_visitor_in_intList() 209 visit_check_list(v, &error_abort); in test_visitor_in_intList() 286 visit_type_uint64List(v, NULL, &res, &error_abort); in test_visitor_in_uintList() [all …]
|
H A D | test-authz-simple.c | 32 &error_abort); in test_authz_simple() 34 g_assert(!qauthz_is_allowed(QAUTHZ(authz), "cthul", &error_abort)); in test_authz_simple() 35 g_assert(qauthz_is_allowed(QAUTHZ(authz), "cthulu", &error_abort)); in test_authz_simple() 36 g_assert(!qauthz_is_allowed(QAUTHZ(authz), "cthuluu", &error_abort)); in test_authz_simple() 37 g_assert(!qauthz_is_allowed(QAUTHZ(authz), "fred", &error_abort)); in test_authz_simple()
|
H A D | test-authz-listfile.c | 59 g_assert(!qauthz_is_allowed(QAUTHZ(auth), "fred", &error_abort)); in test_authz_default_deny() 77 g_assert(qauthz_is_allowed(QAUTHZ(auth), "fred", &error_abort)); in test_authz_default_allow() 100 g_assert(!qauthz_is_allowed(QAUTHZ(auth), "fred", &error_abort)); in test_authz_explicit_deny() 123 g_assert(qauthz_is_allowed(QAUTHZ(auth), "fred", &error_abort)); in test_authz_explicit_allow() 157 g_assert(qauthz_is_allowed(QAUTHZ(auth), "fred", &error_abort)); in test_authz_complex() 158 g_assert(qauthz_is_allowed(QAUTHZ(auth), "bob", &error_abort)); in test_authz_complex() 159 g_assert(!qauthz_is_allowed(QAUTHZ(auth), "dan", &error_abort)); in test_authz_complex() 160 g_assert(qauthz_is_allowed(QAUTHZ(auth), "danb", &error_abort)); in test_authz_complex()
|
/openbmc/qemu/hw/microblaze/ |
H A D | xlnx-zynqmp-pmu.c | 81 XLNX_ZYNQMP_PMU_ROM_ADDR, &error_abort); in xlnx_zynqmp_pmu_soc_realize() 83 &error_abort); in xlnx_zynqmp_pmu_soc_realize() 84 object_property_set_uint(OBJECT(&s->cpu), "use-fpu", 0, &error_abort); in xlnx_zynqmp_pmu_soc_realize() 85 object_property_set_uint(OBJECT(&s->cpu), "use-hw-mul", 0, &error_abort); in xlnx_zynqmp_pmu_soc_realize() 87 &error_abort); in xlnx_zynqmp_pmu_soc_realize() 89 &error_abort); in xlnx_zynqmp_pmu_soc_realize() 91 &error_abort); in xlnx_zynqmp_pmu_soc_realize() 92 object_property_set_bool(OBJECT(&s->cpu), "use-mmu", false, &error_abort); in xlnx_zynqmp_pmu_soc_realize() 94 &error_abort); in xlnx_zynqmp_pmu_soc_realize() 96 &error_abort); in xlnx_zynqmp_pmu_soc_realize() [all …]
|
H A D | petalogix_ml605_mmu.c | 86 object_property_set_str(OBJECT(cpu), "version", "8.10.a", &error_abort); in petalogix_ml605_init() 90 object_property_set_int(OBJECT(cpu), "use-fpu", 1, &error_abort); in petalogix_ml605_init() 92 &error_abort); in petalogix_ml605_init() 93 object_property_set_bool(OBJECT(cpu), "little-endian", true, &error_abort); in petalogix_ml605_init() 94 qdev_realize(DEVICE(cpu), NULL, &error_abort); in petalogix_ml605_init() 151 &error_abort); in petalogix_ml605_init() 153 &error_abort); in petalogix_ml605_init() 164 &error_abort); in petalogix_ml605_init() 166 &error_abort); in petalogix_ml605_init()
|
/openbmc/qemu/hw/intc/ |
H A D | arm_gicv3_its_kvm.c | 104 KVM_DEV_ARM_VGIC_CTRL_INIT, NULL, true, &error_abort); in kvm_arm_its_realize() 143 &error_abort); in kvm_arm_its_pre_save() 147 GITS_CTLR, &s->ctlr, false, &error_abort); in kvm_arm_its_pre_save() 150 GITS_CBASER, &s->cbaser, false, &error_abort); in kvm_arm_its_pre_save() 153 GITS_CREADR, &s->creadr, false, &error_abort); in kvm_arm_its_pre_save() 156 GITS_CWRITER, &s->cwriter, false, &error_abort); in kvm_arm_its_pre_save() 159 GITS_IIDR, &s->iidr, false, &error_abort); in kvm_arm_its_pre_save() 170 GITS_IIDR, &s->iidr, true, &error_abort); in kvm_arm_its_post_load() 177 GITS_CBASER, &s->cbaser, true, &error_abort); in kvm_arm_its_post_load() 180 GITS_CREADR, &s->creadr, true, &error_abort); in kvm_arm_its_post_load() [all …]
|
/openbmc/qemu/tests/qtest/ |
H A D | tpm-emu.c | 55 if (!qio_channel_read(ioc, (char *)s->tpm_msg, minhlen, &error_abort)) { in tpm_emu_tpm_thread() 64 s->tpm_msg->len - minhlen, &error_abort); in tpm_emu_tpm_thread() 84 &error_abort); in tpm_emu_tpm_thread() 100 qio_channel_socket_listen_sync(lioc, s->addr, 1, &error_abort); in tpm_emu_ctrl_thread() 108 ioc = QIO_CHANNEL(qio_channel_socket_accept(lioc, &error_abort)); in tpm_emu_ctrl_thread() 118 qio_channel_readv_full(ioc, &iov, 1, &pfd, &nfd, 0, &error_abort); in tpm_emu_ctrl_thread() 122 s->tpm_ioc = QIO_CHANNEL(qio_channel_socket_new_fd(*pfd, &error_abort)); in tpm_emu_ctrl_thread() 126 qio_channel_write(ioc, (char *)&cmd, sizeof(cmd), &error_abort); in tpm_emu_ctrl_thread() 144 qio_channel_write(ioc, (char *)&cap, sizeof(cap), &error_abort); in tpm_emu_ctrl_thread() 150 &error_abort); in tpm_emu_ctrl_thread() [all …]
|
/openbmc/qemu/hw/arm/ |
H A D | fsl-imx7.c | 188 &error_abort); in fsl_imx7_realize() 197 &error_abort); in fsl_imx7_realize() 200 qdev_realize(DEVICE(o), NULL, &error_abort); in fsl_imx7_realize() 207 &error_abort); in fsl_imx7_realize() 209 FSL_IMX7_MAX_IRQ + GIC_INTERNAL, &error_abort); in fsl_imx7_realize() 211 sysbus_realize(SYS_BUS_DEVICE(&s->a7mpcore), &error_abort); in fsl_imx7_realize() 253 sysbus_realize(SYS_BUS_DEVICE(&s->gpt[i]), &error_abort); in fsl_imx7_realize() 294 sysbus_realize(SYS_BUS_DEVICE(&s->gpio[i]), &error_abort); in fsl_imx7_realize() 318 sysbus_realize(SYS_BUS_DEVICE(&s->ccm), &error_abort); in fsl_imx7_realize() 324 sysbus_realize(SYS_BUS_DEVICE(&s->analog), &error_abort); in fsl_imx7_realize() [all …]
|
H A D | npcm7xx.c | 491 NPCM7XX_GIC_CPU_IF_ADDR, &error_abort); in npcm7xx_realize() 493 &error_abort); in npcm7xx_realize() 497 &error_abort); in npcm7xx_realize() 506 &error_abort); in npcm7xx_realize() 508 &error_abort); in npcm7xx_realize() 509 sysbus_realize(SYS_BUS_DEVICE(&s->a9mpcore), &error_abort); in npcm7xx_realize() 524 nc->disabled_modules, &error_abort); in npcm7xx_realize() 532 sysbus_realize(SYS_BUS_DEVICE(&s->clk), &error_abort); in npcm7xx_realize() 536 sysbus_realize(SYS_BUS_DEVICE(&s->key_storage), &error_abort); in npcm7xx_realize() 538 sysbus_realize(SYS_BUS_DEVICE(&s->fuse_array), &error_abort); in npcm7xx_realize() [all …]
|
H A D | fsl-imx6ul.c | 171 qdev_realize(DEVICE(&s->cpu), NULL, &error_abort); in fsl_imx6ul_realize() 176 object_property_set_int(OBJECT(&s->a7mpcore), "num-cpu", 1, &error_abort); in fsl_imx6ul_realize() 178 FSL_IMX6UL_MAX_IRQ + GIC_INTERNAL, &error_abort); in fsl_imx6ul_realize() 179 sysbus_realize(SYS_BUS_DEVICE(&s->a7mpcore), &error_abort); in fsl_imx6ul_realize() 241 sysbus_realize(SYS_BUS_DEVICE(&s->gpt[i]), &error_abort); in fsl_imx6ul_realize() 266 sysbus_realize(SYS_BUS_DEVICE(&s->epit[i]), &error_abort); in fsl_imx6ul_realize() 304 sysbus_realize(SYS_BUS_DEVICE(&s->gpio[i]), &error_abort); in fsl_imx6ul_realize() 329 sysbus_realize(SYS_BUS_DEVICE(&s->ccm), &error_abort); in fsl_imx6ul_realize() 335 sysbus_realize(SYS_BUS_DEVICE(&s->src), &error_abort); in fsl_imx6ul_realize() 341 sysbus_realize(SYS_BUS_DEVICE(&s->gpcv2), &error_abort); in fsl_imx6ul_realize() [all …]
|
H A D | fby35.c | 81 FBY35_BMC_RAM_SIZE, &error_abort); in fby35_bmc_init() 84 &error_abort); in fby35_bmc_init() 86 &error_abort); in fby35_bmc_init() 88 &error_abort); in fby35_bmc_init() 90 &error_abort); in fby35_bmc_init() 92 &error_abort); in fby35_bmc_init() 94 qdev_realize(DEVICE(&s->bmc), NULL, &error_abort); in fby35_bmc_init() 106 rom_size, &error_abort); in fby35_bmc_init() 112 rom_size, &error_abort); in fby35_bmc_init() 132 &error_abort); in fby35_bic_init() [all …]
|
/openbmc/qemu/hw/mips/ |
H A D | cps.c | 81 &error_abort); in mips_cps_realize() 85 &error_abort); in mips_cps_realize() 110 &error_abort); in mips_cps_realize() 112 &error_abort); in mips_cps_realize() 124 &error_abort); in mips_cps_realize() 126 &error_abort); in mips_cps_realize() 137 &error_abort); in mips_cps_realize() 139 &error_abort); in mips_cps_realize() 152 &error_abort); in mips_cps_realize() 154 &error_abort); in mips_cps_realize() [all …]
|
/openbmc/qemu/ui/ |
H A D | spice-app.c | 179 qopts = qemu_opts_create(list, NULL, 0, &error_abort); in spice_app_display_early_init() 180 qemu_opt_set(qopts, "disable-ticketing", "on", &error_abort); in spice_app_display_early_init() 181 qemu_opt_set(qopts, "unix", "on", &error_abort); in spice_app_display_early_init() 182 qemu_opt_set(qopts, "addr", sock_path, &error_abort); in spice_app_display_early_init() 183 qemu_opt_set(qopts, "image-compression", "off", &error_abort); in spice_app_display_early_init() 184 qemu_opt_set(qopts, "streaming-video", "off", &error_abort); in spice_app_display_early_init() 186 qemu_opt_set(qopts, "gl", opts->has_gl ? "on" : "off", &error_abort); in spice_app_display_early_init() 200 be, NULL, &error_abort); in spice_app_display_init() 203 qemu_opt_set(qopts, "chardev", "org.qemu.monitor.qmp", &error_abort); in spice_app_display_init() 204 qemu_opt_set(qopts, "mode", "control", &error_abort); in spice_app_display_init()
|
/openbmc/qemu/chardev/ |
H A D | char.c | 374 qemu_opt_set(opts, "mux", "on", &error_abort); in qemu_chr_parse_compat() 381 qemu_opt_set(opts, "signal", "off", &error_abort); in qemu_chr_parse_compat() 392 qemu_opt_set(opts, "backend", filename, &error_abort); in qemu_chr_parse_compat() 396 qemu_opt_set(opts, "backend", "vc", &error_abort); in qemu_chr_parse_compat() 400 qemu_opt_set(opts, "width", width, &error_abort); in qemu_chr_parse_compat() 401 qemu_opt_set(opts, "height", height, &error_abort); in qemu_chr_parse_compat() 404 qemu_opt_set(opts, "cols", width, &error_abort); in qemu_chr_parse_compat() 405 qemu_opt_set(opts, "rows", height, &error_abort); in qemu_chr_parse_compat() 413 qemu_opt_set(opts, "backend", "console", &error_abort); in qemu_chr_parse_compat() 417 qemu_opt_set(opts, "backend", "serial", &error_abort); in qemu_chr_parse_compat() [all …]
|