Home
last modified time | relevance | path

Searched refs:opts (Results 1 – 25 of 307) sorted by relevance

12345678910>>...13

/qemu/tests/qemu-iotests/
H A D245103 opts = copy.deepcopy(opts)
110 subdict = opts
138 opts = hd_opts(0)
143 self.reopen(opts)
180 opts = hd_opts(1)
392 opts = []
483 opts = []
766 opts = opts['file']
957 opts['backing'] = opts['backing']['backing']
1139 opts = [
[all …]
H A D14655 $QEMU_IMG map --output=json --image-opts \
63 $QEMU_IMG map --output=json --image-opts \
71 $QEMU_IMG map --output=json --image-opts \
82 $QEMU_IMG map --output=json --image-opts \
90 $QEMU_IMG map --output=json --image-opts \
98 $QEMU_IMG map --output=json --image-opts \
109 $QEMU_IMG map --output=json --image-opts \
117 $QEMU_IMG map --output=json --image-opts \
125 $QEMU_IMG map --output=json --image-opts \
143 $QEMU_IMG map --output=json --image-opts \
[all …]
H A D19864 $QEMU_IO --object $SECRET0 -c "write -P 0xa 0 $size" --image-opts $IMGSPECBASE | _filter_qemu_io | …
71 $QEMU_IO --object $SECRET0 --object $SECRET1 -c "write -P 0x9 0 $size" --image-opts $IMGSPEC | _fil…
75 $QEMU_IO --object $SECRET0 -c "read -P 0xa 0 $size" --image-opts $IMGSPECBASE | _filter_qemu_io | _…
79 $QEMU_IO --object $SECRET0 --object $SECRET1 -c "read -P 0x9 0 $size" --image-opts $IMGSPEC | _filt…
83 $QEMU_IMG commit --object $SECRET0 --object $SECRET1 --image-opts $IMGSPEC | _filter_testdir
87 $QEMU_IO --object $SECRET0 -c "read -P 0x9 0 $size" --image-opts $IMGSPECBASE | _filter_qemu_io | _…
91 $QEMU_IO --object $SECRET0 --object $SECRET1 -c "read -P 0x9 0 $size" --image-opts $IMGSPEC | _filt…
95 $QEMU_IMG info --image-opts $IMGSPECBASE | _filter_img_info --format-specific \
103 $QEMU_IMG info --image-opts $IMGSPECLAYER | _filter_img_info --format-specific \
H A D13457 $QEMU_IO --object $SECRET -c "read 0 $size" --image-opts $IMGSPEC | _filter_qemu_io | _filter_testd…
61 $QEMU_IO --object $SECRET -c "write -P 0xb 512 512" --image-opts $IMGSPEC | _filter_qemu_io | _filt…
65 $QEMU_IO --object $SECRET -c "read -P 0 0 512" --image-opts $IMGSPEC | _filter_qemu_io | _filter_t…
66 $QEMU_IO --object $SECRET -c "read -P 0xb 512 512" --image-opts $IMGSPEC | _filter_qemu_io | _filt…
70 $QEMU_IO --object $SECRET -c "write -P 0xa 0 $size" --image-opts $IMGSPEC | _filter_qemu_io | _filt…
74 $QEMU_IO --object $SECRET -c "read -P 0xa 0 $size" --image-opts $IMGSPEC | _filter_qemu_io | _filt…
78 $QEMU_IO --object $SECRETALT -c "read -P 0xa 0 $size" --image-opts $IMGSPEC | _filter_qemu_io | _fi…
/qemu/tests/unit/
H A Dtest-qemu-opts.c132 QemuOpts *opts; in test_qemu_opts_create() local
162 QemuOpts *opts; in test_qemu_opt_get() local
205 QemuOpts *opts; in test_qemu_opt_get_bool() local
248 QemuOpts *opts; in test_qemu_opt_get_number() local
291 QemuOpts *opts; in test_qemu_opt_get_size() local
347 QemuOpts *opts; in test_qemu_opt_unset() local
379 QemuOpts *opts; in test_qemu_opts_reset() local
431 QemuOpts *opts; in test_opts_parse() local
533 QemuOpts *opts; in test_opts_parse_bool() local
551 QemuOpts *opts; in test_opts_parse_number() local
[all …]
H A Dtest-char.c83 QemuOpts *opts; in char_console_test_subprocess() local
95 qemu_opts_del(opts); in char_console_test_subprocess()
132 QemuOpts *opts; in char_ringbuf_test() local
145 qemu_opts_del(opts); in char_ringbuf_test()
182 QemuOpts *opts; in char_mux_test() local
779 QemuOpts *opts; in char_socket_server_test() local
913 QemuOpts *opts; in char_socket_client_dupid_test() local
966 QemuOpts *opts; in char_socket_client_test() local
1111 QemuOpts *opts; in char_socket_server_two_clients_test() local
1189 QemuOpts *opts; in char_serial_test() local
[all …]
H A Dtest-opts-visitor.c39 QemuOpts *opts; in setup_fixture() local
44 g_assert(opts != NULL); in setup_fixture()
46 v = opts_visitor_new(opts); in setup_fixture()
49 qemu_opts_del(opts); in setup_fixture()
181 QemuOpts *opts; in test_opts_range_unvisited() local
187 v = opts_visitor_new(opts); in test_opts_range_unvisited()
212 qemu_opts_del(opts); in test_opts_range_unvisited()
221 QemuOpts *opts; in test_opts_range_beyond() local
249 qemu_opts_del(opts); in test_opts_range_beyond()
256 QemuOpts *opts; in test_opts_dict_unvisited() local
[all …]
/qemu/util/
H A Dqemu-option.c276 iter->opts = opts; in qemu_opt_iter_init()
488 opt->opts = opts; in opt_create()
540 opt->opts = opts; in qemu_opt_set_bool()
563 opt->opts = opts; in qemu_opt_set_number()
601 if (opts->id && id && !strcmp(opts->id, id)) { in qemu_opts_find()
637 opts = g_malloc0(sizeof(*opts)); in qemu_opts_create()
643 return opts; in qemu_opts_create()
685 QTAILQ_REMOVE(&opts->list->head, opts, next); in qemu_opts_del()
904 return opts; in opts_parse()
938 if (!opts) { in qemu_opts_parse_noisily()
[all …]
H A Dqemu-config.c45 QemuOpts *opts; in qemu_find_opts_singleton() local
49 opts = qemu_opts_find(list, NULL); in qemu_find_opts_singleton()
50 if (!opts) { in qemu_find_opts_singleton()
51 opts = qemu_opts_create(list, NULL, 0, &error_abort); in qemu_find_opts_singleton()
53 return opts; in qemu_find_opts_singleton()
210 prefix = g_strdup_printf("%s.", opts->name); in config_parse_qdict_section()
218 subopts = qemu_opts_create(opts, NULL, 0, errp); in config_parse_qdict_section()
230 qdict_first(subqdict)->key, opts->name); in config_parse_qdict_section()
245 qdict_first(subqdict)->key, opts->name); in config_parse_qdict_section()
255 "keys", opts->name, i); in config_parse_qdict_section()
[all …]
/qemu/include/qemu/
H A Doption.h75 char *qemu_opt_get_del(QemuOpts *opts, const char *name);
87 bool qemu_opt_has_help_opt(QemuOpts *opts);
88 QemuOpt *qemu_opt_find(QemuOpts *opts, const char *name);
97 int qemu_opt_unset(QemuOpts *opts, const char *name);
111 QemuOpts *opts; member
123 void qemu_opts_loc_restore(QemuOpts *opts);
124 const char *qemu_opts_id(QemuOpts *opts);
125 void qemu_opts_set_id(QemuOpts *opts, char *id);
126 void qemu_opts_del(QemuOpts *opts);
138 QDict *qemu_opts_to_qdict(QemuOpts *opts, QDict *qdict);
[all …]
/qemu/system/
H A Dvl.c153 QDict *opts; member
662 QemuOpts *opts; in default_drive() local
1069 while (*opts) { in select_vgahw()
1246 QemuOpts *opts; in monitor_parse() local
1256 if (!opts) { in monitor_parse()
1503 QemuOpts *opts; in debugcon_parse() local
1510 if (!opts) { in debugcon_parse()
1584 QDict *opts; in machine_merge_property() local
1819 QemuOpts *opts; in object_option_parse() local
2257 QemuOpts *opts; in qemu_set_option() local
[all …]
/qemu/fsdev/
H A Dqemu-fsdev-throttle.c38 qemu_opt_get_number(opts, "throttling.bps-total", 0); in fsdev_throttle_parse_opts()
40 qemu_opt_get_number(opts, "throttling.bps-read", 0); in fsdev_throttle_parse_opts()
42 qemu_opt_get_number(opts, "throttling.bps-write", 0); in fsdev_throttle_parse_opts()
44 qemu_opt_get_number(opts, "throttling.iops-total", 0); in fsdev_throttle_parse_opts()
46 qemu_opt_get_number(opts, "throttling.iops-read", 0); in fsdev_throttle_parse_opts()
48 qemu_opt_get_number(opts, "throttling.iops-write", 0); in fsdev_throttle_parse_opts()
51 qemu_opt_get_number(opts, "throttling.bps-total-max", 0); in fsdev_throttle_parse_opts()
53 qemu_opt_get_number(opts, "throttling.bps-read-max", 0); in fsdev_throttle_parse_opts()
55 qemu_opt_get_number(opts, "throttling.bps-write-max", 0); in fsdev_throttle_parse_opts()
59 qemu_opt_get_number(opts, "throttling.iops-read-max", 0); in fsdev_throttle_parse_opts()
[all …]
H A Dqemu-fsdev.c37 const char **opts; member
54 .opts = (const char * []) {
87 .opts = (const char * []) {
95 .opts = (const char * []) {
111 for (opt = drv->opts; *opt; opt++) { in validate_opt()
121 int qemu_fsdev_add(QemuOpts *opts, Error **errp) in qemu_fsdev_add() argument
125 const char *fsdev_id = qemu_opts_id(opts); in qemu_fsdev_add()
126 const char *fsdriver = qemu_opt_get(opts, "fsdriver"); in qemu_fsdev_add()
127 const char *writeout = qemu_opt_get(opts, "writeout"); in qemu_fsdev_add()
128 bool ro = qemu_opt_get_bool(opts, "readonly", 0); in qemu_fsdev_add()
[all …]
/qemu/chardev/
H A Dchar.c359 QemuOpts *opts; in qemu_chr_parse_compat() local
393 return opts; in qemu_chr_parse_compat()
410 return opts; in qemu_chr_parse_compat()
414 return opts; in qemu_chr_parse_compat()
419 return opts; in qemu_chr_parse_compat()
424 return opts; in qemu_chr_parse_compat()
429 return opts; in qemu_chr_parse_compat()
456 return opts; in qemu_chr_parse_compat()
479 return opts; in qemu_chr_parse_compat()
692 QemuOpts *opts; in qemu_chr_new_noreplay() local
[all …]
/qemu/hw/smbios/
H A Dsmbios.c1245 const char *val = qemu_opt_get(opts, name); in save_opt()
1326 val = qemu_opt_get(opts, "file"); in smbios_entry_add()
1384 val = qemu_opt_get(opts, "type"); in smbios_entry_add()
1409 val = qemu_opt_get(opts, "release"); in smbios_entry_add()
1430 val = qemu_opt_get(opts, "uuid"); in smbios_entry_add()
1447 save_opt(&type2.asset, opts, "asset"); in smbios_entry_add()
1458 save_opt(&type3.sku, opts, "sku"); in smbios_entry_add()
1472 save_opt(&type4.part, opts, "part"); in smbios_entry_add()
1515 save_opt(&t->pcidev, opts, "pcidev"); in smbios_entry_add()
1532 save_opt(&type17.bank, opts, "bank"); in smbios_entry_add()
[all …]
/qemu/
H A Dqemu-img-cmds.hx15 …"amend [--object objectdef] [--image-opts] [-p] [-q] [-f fmt] [-t cache] [--force] -o options file…
17 .. option:: amend [--object OBJECTDEF] [--image-opts] [-p] [-q] [-f FMT] [-t CACHE] [--force] -o OP…
39 …"commit [--object objectdef] [--image-opts] [-q] [-f fmt] [-t cache] [-b base] [-r rate_limit] [-d…
41 .. option:: commit [--object OBJECTDEF] [--image-opts] [-q] [-f FMT] [-t CACHE] [-b BASE] [-r RATE_…
45 …"compare [--object objectdef] [--image-opts] [-f fmt] [-F fmt] [-T src_cache] [-p] [-q] [-s] [-U] …
63 …"dd [--image-opts] [-U] [-f fmt] [-O output_fmt] [bs=block_size] [count=blocks] [skip=blocks] if=i…
65 .. option:: dd [--image-opts] [-U] [-f FMT] [-O OUTPUT_FMT] [bs=BLOCK_SIZE] [count=BLOCKS] [skip=BL…
69 …"info [--object objectdef] [--image-opts] [-f fmt] [--output=ofmt] [--backing-chain] [-U] filename…
71 .. option:: info [--object OBJECTDEF] [--image-opts] [-f FMT] [--output=OFMT] [--backing-chain] [-U…
87 …"snapshot [--object objectdef] [--image-opts] [-U] [-q] [-l | -a snapshot | -c snapshot | -d snaps…
[all …]
H A Dqemu-nbd.c343 if (opts->verbose && !opts->fork_process) { in nbd_client_thread()
345 opts->device, opts->srcpath); in nbd_client_thread()
606 struct NbdClientOpts opts = { in main() local
772 opts.verbose = true; in main()
829 if (opts.fork_process) { in main()
873 if (opts.device) { in main()
942 if ((opts.device && !opts.verbose) || opts.fork_process) { in main()
1091 opts.srcpath = argv[optind]; in main()
1175 if (opts.device) { in main()
1202 if (opts.fork_process) { in main()
[all …]
H A Dqemu-io.c86 QDict *opts) in openfile() argument
92 qobject_unref(opts); in openfile()
97 if (!opts) { in openfile()
98 opts = qdict_new(); in openfile()
100 if (qdict_haskey(opts, BDRV_OPT_FORCE_SHARE) in openfile()
103 qobject_unref(opts); in openfile()
175 QDict *opts; in open_f() local
259 qobject_unref(opts); in open_f()
525 QDict *opts = NULL; in main() local
665 opts = qdict_new(); in main()
[all …]
/qemu/block/
H A Drbd.c268 if (opts->key_secret) { in qemu_rbd_set_auth()
416 opts = &luks_opts; in qemu_rbd_encryption_format()
645 if (!specs[i].opts) { in qemu_rbd_encryption_load2()
693 if (opts->encrypt) { in qemu_rbd_do_create()
718 ret = rbd_create(io_ctx, opts->location->image, opts->size, &obj_order); in qemu_rbd_do_create()
725 if (opts->encrypt) { in qemu_rbd_do_create()
759 QemuOpts *opts, in qemu_rbd_extract_encryption_create_options() argument
871 if (!opts->has_server) { in qemu_rbd_mon_host()
979 if (opts->q_namespace && strlen(opts->q_namespace) > 0) { in qemu_rbd_connect()
1030 if (!opts) { in qemu_rbd_convert_options()
[all …]
H A Dcopy-before-write.c377 BlockdevOptions *opts = NULL; in cbw_parse_options() local
387 visit_type_BlockdevOptions(v, NULL, &opts, errp); in cbw_parse_options()
388 if (!opts) { in cbw_parse_options()
404 return opts; in cbw_parse_options()
415 BlockdevOptionsCbw *opts; in cbw_open() local
423 opts = &full_opts->u.copy_before_write; in cbw_open()
438 if (opts->bitmap) { in cbw_open()
445 s->on_cbw_error = opts->has_on_cbw_error ? opts->on_cbw_error : in cbw_open()
447 s->cbw_timeout_ns = opts->has_cbw_timeout ? in cbw_open()
529 QDict *opts; in bdrv_cbw_append() local
[all …]
/qemu/ui/
H A Dspice-core.c531 if (!spice_server || !opts) { in qmp_query_spice_real()
539 addr = qemu_opt_get(opts, "addr"); in qmp_query_spice_real()
540 port = qemu_opt_get_number(opts, "port", 0); in qmp_query_spice_real()
672 if (!opts) { in qemu_spice_init()
675 port = qemu_opt_get_number(opts, "port", 0); in qemu_spice_init()
692 x509_dir = qemu_opt_get(opts, "x509-dir"); in qemu_spice_init()
726 addr = qemu_opt_get(opts, "addr"); in qemu_spice_init()
728 if (qemu_opt_get_bool(opts, "ipv4", 0)) { in qemu_spice_init()
755 if (qemu_opt_get_bool(opts, "sasl", 0)) { in qemu_spice_init()
796 str = qemu_opt_get(opts, "streaming-video"); in qemu_spice_init()
[all …]
H A Dui-qmp-cmds.c32 void qmp_set_password(SetPasswordOptions *opts, Error **errp) in qmp_set_password() argument
36 if (opts->protocol == DISPLAY_PROTOCOL_SPICE) { in qmp_set_password()
40 rc = qemu_spice.set_passwd(opts->password, in qmp_set_password()
41 opts->connected == SET_PASSWORD_ACTION_FAIL, in qmp_set_password()
44 assert(opts->protocol == DISPLAY_PROTOCOL_VNC); in qmp_set_password()
45 if (opts->connected != SET_PASSWORD_ACTION_KEEP) { in qmp_set_password()
55 rc = vnc_display_password(opts->u.vnc.display, opts->password); in qmp_set_password()
67 const char *whenstr = opts->time; in qmp_expire_password()
92 if (opts->protocol == DISPLAY_PROTOCOL_SPICE) { in qmp_expire_password()
98 assert(opts->protocol == DISPLAY_PROTOCOL_VNC); in qmp_expire_password()
[all …]
/qemu/tests/bench/
H A Dbenchmark-crypto-hash.c25 const QCryptoHashOpts *opts = opaque; in test_hash_speed() local
33 in = g_new0(uint8_t, opts->chunk_size); in test_hash_speed()
34 memset(in, g_test_rand_int(), opts->chunk_size); in test_hash_speed()
37 iov.iov_len = opts->chunk_size; in test_hash_speed()
42 ret = qcrypto_hash_bytesv(opts->alg, in test_hash_speed()
47 remain -= opts->chunk_size; in test_hash_speed()
52 QCryptoHashAlgorithm_str(opts->alg), in test_hash_speed()
53 opts->chunk_size, total / g_test_timer_last()); in test_hash_speed()
67 QCryptoHashOpts opts ## a ## c = { \ in main()
77 &opts ## a ## c, \ in main()
/qemu/tests/qtest/libqos/
H A Dqgraph.c88 if (!opts) { in add_edge()
89 opts = &def_opts; in add_edge()
96 edge->arg = g_memdup2(opts->arg, opts->size_arg); in add_edge()
99 opts->before_cmd_line ? g_strconcat(" ", opts->before_cmd_line, NULL) : NULL; in add_edge()
101 opts->extra_device_opts ? g_strconcat(",", opts->extra_device_opts, NULL) : NULL; in add_edge()
103 opts->after_cmd_line ? g_strconcat(" ", opts->after_cmd_line, NULL) : NULL; in add_edge()
598 if (!opts) { in qos_add_test()
599 opts = &def_opts; in qos_add_test()
650 if (opts == NULL) { in qos_node_contains()
655 va_start(va, opts); in qos_node_contains()
[all …]
/qemu/net/
H A Daf-xdp.c348 s->inhibit = opts->has_inhibit && opts->inhibit; in af_xdp_socket_create()
353 if (opts->has_force_copy && opts->force_copy) { in af_xdp_socket_create()
358 if (opts->has_start_queue && opts->start_queue > 0) { in af_xdp_socket_create()
359 queue_id += opts->start_queue; in af_xdp_socket_create()
362 if (opts->has_mode) { in af_xdp_socket_create()
454 ifindex = if_nametoindex(opts->ifname); in net_init_af_xdp()
457 opts->ifname); in net_init_af_xdp()
461 queues = opts->has_queues ? opts->queues : 1; in net_init_af_xdp()
464 queues, opts->ifname); in net_init_af_xdp()
468 if ((opts->has_inhibit && opts->inhibit) != !!opts->sock_fds) { in net_init_af_xdp()
[all …]

12345678910>>...13