/qemu/tests/qemu-iotests/ |
H A D | 082 | 4 # Test qemu-img command line parsing 56 # Last -f should win 57 run_qemu_img create -f foo -f $IMGFMT "$TEST_IMG" $size 60 # Multiple -o should be merged 61 run_qemu_img create -f $IMGFMT -o cluster_size=4k -o lazy_refcounts=on "$TEST_IMG" $size 62 _img_info --format-specific 64 # If the same -o key is specified more than once, the last one wins 65 run_qemu_img create -f $IMGFMT -o cluster_size=4k -o lazy_refcounts=on -o cluster_size=8k "$TEST_IM… 66 _img_info --format-specific 67 run_qemu_img create -f $IMGFMT -o cluster_size=4k,cluster_size=8k "$TEST_IMG" $size [all …]
|
H A D | 186.out | 6 Testing: -device floppy 7 QEMU X.Y.Z monitor - type 'help' for more information 9 /machine/peripheral-anon/device[1]: [not inserted] 10 Attached to: /machine/peripheral-anon/device[N] 14 Testing: -device floppy,id=qdev_id 15 QEMU X.Y.Z monitor - type 'help' for more information 22 Testing: -device ide-cd 23 QEMU X.Y.Z monitor - type 'help' for more information 25 /machine/peripheral-anon/device[1]: [not inserted] 26 Attached to: /machine/peripheral-anon/device[N] [all …]
|
H A D | check | 5 # Copyright (c) 2020-2021 Virtuozzo International GmbH 42 def make_argparser() -> argparse.ArgumentParser: 47 p.add_argument('-n', '--dry-run', action='store_true', 48 help='show me, do not run tests') 49 p.add_argument('-j', dest='jobs', type=int, default=1, 50 help='run tests in multiple parallel jobs') 52 p.add_argument('-d', dest='debug', action='store_true', help='debug') 53 p.add_argument('-p', dest='print', action='store_true', 54 help='redirects qemu\'s stdout and stderr to ' 56 p.add_argument('-gdb', action='store_true', [all …]
|
H A D | 051.pc.out | 7 Testing: -drive file=TEST_DIR/t.qcow2,format=qcow2,unknown_opt=,if=none,id=drive0 8 QEMU_PROG: -drive file=TEST_DIR/t.qcow2,format=qcow2,unknown_opt=,if=none,id=drive0: Block format '… 10 Testing: -drive file=TEST_DIR/t.qcow2,format=qcow2,unknown_opt=on,if=none,id=drive0 11 QEMU_PROG: -drive file=TEST_DIR/t.qcow2,format=qcow2,unknown_opt=on,if=none,id=drive0: Block format… 13 Testing: -drive file=TEST_DIR/t.qcow2,format=qcow2,unknown_opt=1234,if=none,id=drive0 14 QEMU_PROG: -drive file=TEST_DIR/t.qcow2,format=qcow2,unknown_opt=1234,if=none,id=drive0: Block form… 16 Testing: -drive file=TEST_DIR/t.qcow2,format=qcow2,unknown_opt=foo,if=none,id=drive0 17 QEMU_PROG: -drive file=TEST_DIR/t.qcow2,format=qcow2,unknown_opt=foo,if=none,id=drive0: Block forma… 22 Testing: -drive file=TEST_DIR/t.qcow2,format=qcow2,file.unknown_opt= 23 QEMU_PROG: -drive file=TEST_DIR/t.qcow2,format=qcow2,file.unknown_opt=: Block protocol 'file' doesn… [all …]
|
H A D | 051.out | 7 Testing: -drive file=TEST_DIR/t.qcow2,format=qcow2,unknown_opt=,if=none,id=drive0 8 QEMU_PROG: -drive file=TEST_DIR/t.qcow2,format=qcow2,unknown_opt=,if=none,id=drive0: Block format '… 10 Testing: -drive file=TEST_DIR/t.qcow2,format=qcow2,unknown_opt=on,if=none,id=drive0 11 QEMU_PROG: -drive file=TEST_DIR/t.qcow2,format=qcow2,unknown_opt=on,if=none,id=drive0: Block format… 13 Testing: -drive file=TEST_DIR/t.qcow2,format=qcow2,unknown_opt=1234,if=none,id=drive0 14 QEMU_PROG: -drive file=TEST_DIR/t.qcow2,format=qcow2,unknown_opt=1234,if=none,id=drive0: Block form… 16 Testing: -drive file=TEST_DIR/t.qcow2,format=qcow2,unknown_opt=foo,if=none,id=drive0 17 QEMU_PROG: -drive file=TEST_DIR/t.qcow2,format=qcow2,unknown_opt=foo,if=none,id=drive0: Block forma… 22 Testing: -drive file=TEST_DIR/t.qcow2,format=qcow2,file.unknown_opt= 23 QEMU_PROG: -drive file=TEST_DIR/t.qcow2,format=qcow2,file.unknown_opt=: Block protocol 'file' doesn… [all …]
|
H A D | 267.out | 7 QEMU X.Y.Z monitor - type 'help' for more information 17 === -drive if=none === 20 Testing: -drive driver=file,file=TEST_DIR/t.IMGFMT,if=none 21 QEMU X.Y.Z monitor - type 'help' for more information 31 Testing: -drive driver=IMGFMT,file=TEST_DIR/t.IMGFMT,if=none 32 QEMU X.Y.Z monitor - type 'help' for more information 37 -- snap0 SIZE yyyy-mm-dd hh:mm:ss 0000:00:00.000 -- 42 Testing: -drive driver=IMGFMT,file=TEST_DIR/t.IMGFMT,if=none -device virtio-blk,drive=none0 43 QEMU X.Y.Z monitor - type 'help' for more information 48 -- snap0 SIZE yyyy-mm-dd hh:mm:ss 0000:00:00.000 -- [all …]
|
/qemu/ |
H A D | hmp-commands-info.hx | 4 HXCOMM which specify the name, behaviour and help text for HMP commands. 24 .help = "show the version of QEMU", 38 .help = "show the network state", 51 .help = "show the character devices", 63 .args_type = "nodes:-n,verbose:-v,device:B?", 64 .params = "[-n] [-v] [device]", 65 .help = "show info of one block device or all block devices " 66 "(-n: show named nodes; -v: show details)", 79 .help = "show block device statistics", 89 .name = "block-jobs", [all …]
|
H A D | hmp-commands.hx | 4 HXCOMM which specify the name, behaviour and help text for HMP commands. 10 .name = "help|?", 13 .help = "show the help", 19 ``help`` or ``?`` [*cmd*] 20 Show the help for all commands or just for command *cmd*. 27 .help = "commit changes to the disk images (if -snapshot is used) or backing files", 33 Commit changes to the disk images (if -snapshot is used) or backing files. 46 .help = "quit the emulator", 60 .help = "exit the preconfig state", 70 available during the preconfig state (i.e. when the --preconfig command [all …]
|
H A D | Makefile | 10 # Before including a proper config-host.mak, assume we are in the source tree 15 MAKEFLAGS += -rR 17 SHELL = bash -o pipefail 19 # Usage: $(call quiet-command,command and args,"NAME","args to print") 25 quiet-command-run = $(if $(V),,$(if $2,printf " %-7s %s\n" $2 $3 && ))$1 26 quiet-@ = $(if $(V),,@) 27 quiet-command = $(quiet-@)$(call quiet-command-run,$1,$2,$3) 30 help check-help print-% \ 31 docker docker-% lcitool-refresh vm-help vm-test vm-build-% 34 .PHONY: all clean distclean recurse-all dist msi FORCE [all …]
|
/qemu/include/qemu/ |
H A D | throttle-options.h | 7 * See the COPYING file in the top-level directory for details. 13 #define QEMU_OPT_IOPS_TOTAL "iops-total" 14 #define QEMU_OPT_IOPS_TOTAL_MAX "iops-total-max" 15 #define QEMU_OPT_IOPS_TOTAL_MAX_LENGTH "iops-total-max-length" 16 #define QEMU_OPT_IOPS_READ "iops-read" 17 #define QEMU_OPT_IOPS_READ_MAX "iops-read-max" 18 #define QEMU_OPT_IOPS_READ_MAX_LENGTH "iops-read-max-length" 19 #define QEMU_OPT_IOPS_WRITE "iops-write" 20 #define QEMU_OPT_IOPS_WRITE_MAX "iops-write-max" 21 #define QEMU_OPT_IOPS_WRITE_MAX_LENGTH "iops-write-max-length" [all …]
|
/qemu/block/ |
H A D | crypto.h | 4 * Copyright (c) 2015-2017 Red Hat, Inc. 28 .help = helpstr, \ 31 #define BLOCK_CRYPTO_OPT_QCOW_KEY_SECRET "key-secret" 37 #define BLOCK_CRYPTO_OPT_LUKS_KEY_SECRET "key-secret" 38 #define BLOCK_CRYPTO_OPT_LUKS_CIPHER_ALG "cipher-alg" 39 #define BLOCK_CRYPTO_OPT_LUKS_CIPHER_MODE "cipher-mode" 40 #define BLOCK_CRYPTO_OPT_LUKS_IVGEN_ALG "ivgen-alg" 41 #define BLOCK_CRYPTO_OPT_LUKS_IVGEN_HASH_ALG "ivgen-hash-alg" 42 #define BLOCK_CRYPTO_OPT_LUKS_HASH_ALG "hash-alg" 43 #define BLOCK_CRYPTO_OPT_LUKS_ITER_TIME "iter-time" [all …]
|
H A D | iscsi-opts.c | 26 #include "qemu/config-file.h" 37 .help = "username for CHAP authentication to target", 41 .help = "password for CHAP authentication to target", 43 .name = "password-secret", 45 .help = "ID of the secret providing password for CHAP " 48 .name = "header-digest", 50 .help = "HeaderDigest setting. " 51 "{CRC32C|CRC32C-NONE|NONE-CRC32C|NONE}", 53 .name = "initiator-name", 55 .help = "Initiator iqn name to use when connecting", [all …]
|
/qemu/python/qemu/utils/ |
H A D | qom.py | 4 usage: qom [-h] {set,get,list,tree,fuse} ... 9 -h, --help show this help message and exit 28 # See the COPYING file in the top-level directory. 30 # Based on ./scripts/qmp/qom-[set|get|tree|list] 51 QOM Command - Set a property to a given value. 53 usage: qom-set [-h] [--socket SOCKET] <path>.<property> <value> 62 -h, --help show this help message and exit 63 --socket SOCKET, -s SOCKET 68 help = 'Set a QOM property value' variable in QOMSet 71 def configure_parser(cls, parser: argparse.ArgumentParser) -> None: [all …]
|
H A D | qom_common.py | 13 # See the COPYING file in the top-level directory. 15 # Based on ./scripts/qmp/qom-[set|get|tree|list] 36 Represents the return type from e.g. qom-list. 47 def make(cls, value: Dict[str, Any]) -> 'ObjectPropertyInfo': 52 assert value.keys() <= {'name', 'type', 'description', 'default-value'} 55 value.get('default-value')) 58 def child(self) -> bool: 63 def link(self) -> bool: 73 Represents a QOM sub-command. 78 help: str [all …]
|
/qemu/hw/smbios/ |
H A D | smbios.c | 4 * Copyright (C) 2009 Hewlett-Packard Development Company, L.P. 12 * the COPYING file in the top-level directory. 14 * Contributions after 2012-01-13 are licensed under the terms of the 21 #include "qemu/config-file.h" 34 * SMBIOS tables provided by user with '-smbios file=<foo>' option 151 .help = "binary file containing an SMBIOS element", 160 .help = "SMBIOS element type", 164 .help = "vendor name", 168 .help = "version number", 172 .help = "release date", [all …]
|
/qemu/include/qom/ |
H A D | object_interfaces.h | 5 #include "qapi/qapi-types-qom.h" 8 #define TYPE_USER_CREATABLE "user-creatable" 26 * Interface is designed to work with -object/object-add/object_add 29 * creatable (i.e. -object/object-add/object_add, will accept only 36 * For objects created without using -object/object-add/object_add, 52 * @uc: the user-creatable object whose complete() method is called if defined 106 * implicit key 'qom-type', converting the result to ObjectOptions. 108 * If a help option is given, print help instead. 111 * then) or help was printed (*errp is not set). 121 * with a keyval parser and implicit key 'qom-type', converting the [all …]
|
/qemu/tests/guest-debug/ |
H A D | run-test.py | 10 # See the COPYING file in the top-level directory. 12 # SPDX-License-Identifier: GPL-2.0-or-later 24 parser.add_argument("--qemu", help="Qemu binary for test", 26 parser.add_argument("--qargs", help="Qemu arguments for test") 27 parser.add_argument("--binary", help="Binary to debug", 29 parser.add_argument("--test", help="GDB test script") 31 help="Additional args for GDB test script. " 32 "The args should be preceded by -- to avoid confusion " 34 parser.add_argument("--gdb", help="The gdb binary to use", 36 parser.add_argument("--gdb-args", help="Additional gdb arguments") [all …]
|
/qemu/util/ |
H A D | keyval.c | 10 * See the COPYING file in the top-level directory. 16 * key-vals = [ key-val { ',' key-val } [ ',' ] ] 17 * key-val = key '=' val | help 18 * key = key-fragment { '.' key-fragment } 19 * key-fragment = qapi-name | index 20 * qapi-name = '__' / [a-z0-9.-]+ / '_' / [A-Za-z][A-Za-z0-9_-]* / 21 * index = / [0-9]+ / 23 * help = 'help' | '?' 27 * key-vals specifies a JSON object, i.e. a tree whose root is an 31 * Each key-val = key-fragment '.' ... '=' val specifies a path from [all …]
|
/qemu/tests/qemu-iotests/tests/ |
H A D | write-zeroes-unmap.out | 1 QA output created by write-zeroes-unmap 3 === defaults - write zeros === 6 QEMU X.Y.Z monitor - type 'help' for more information 7 (qemu) qemu-io none0 "write -z 0 1m" 13 === defaults - write zeros unmap === 16 QEMU X.Y.Z monitor - type 'help' for more information 17 (qemu) qemu-io none0 "write -zu 0 1m" 23 === defaults - write actual zeros === 26 QEMU X.Y.Z monitor - type 'help' for more information 27 (qemu) qemu-io none0 "write -P 0 0 1m" [all …]
|
/qemu/scripts/codeconverter/ |
H A D | converter.py | 10 # the COPYING file in the top-level directory. 29 def process_all_files(parser: argparse.ArgumentParser, args: argparse.Namespace) -> None: 55 parser.error("--pattern is required") 89 def main() -> None: 92 p.add_argument('--passes', type=int, default=1, 93 help="Number of passes (0 means unlimited)") 94 p.add_argument('--pattern', required=True, action='append', 96 help="Pattern to scan for") 97 p.add_argument('--inplace', '-i', action='store_true', 98 help="Patch file in place") [all …]
|
/qemu/scripts/qapi/ |
H A D | main.py | 2 # See the COPYING file in the top-level directory. 21 def invalid_prefix_char(prefix: str) -> Optional[str]: 22 match = must_match(r'([A-Za-z_.-][A-Za-z0-9_.-]*)?', prefix) 28 def create_backend(path: str) -> QAPIBackend: 34 raise QAPIError("argument of -B must be of the form MODULE.CLASS") 60 def main() -> int: 62 gapi-gen executable entry point. 63 Expects arguments via sys.argv, see --help for details. 69 parser.add_argument('-b', '--builtins', action='store_true', 70 help="generate code for built-in types") [all …]
|
/qemu/scripts/ |
H A D | qemu-trace-stap | 2 # -*- python -*- 31 return re.sub("-", ".", filename) + ".log" 76 script = """probe begin { print("Running script, <Ctrl>-c to quit\\n") } """ + script 80 stapargs = [stap, "-s", "8", "-I", tapsets ] 82 stapargs.extend(["-x", args.pid]) 83 stapargs.extend(["-e", script]) 101 proc = subprocess.Popen([stap, "-I", tapsets, "-l", script], 122 parser.add_argument("-v", "--verbose", help="Print verbose progress info", 125 subparser = parser.add_subparsers(help="commands") 129 runparser = subparser.add_parser("run", help="Run a trace session", [all …]
|
/qemu/tests/docker/ |
H A D | docker.py | 12 # the top-level directory. 65 return _bytes_checksum(text.encode('utf-8')) 68 return open(path, 'rt', encoding='utf-8').read() 81 commands += [["docker"], ["sudo", "-n", "docker"]] 121 ldd_re = re.compile(r"(?:\S+ => )?(\S*) \(:?0x[0-9a-f]+\)") 123 ldd_output = subprocess.check_output(["ldd", executable]).decode('utf-8') 145 This does rely on the host file-system being fairly multi-arch 199 # special case for Debian linux-user images 201 img_name = "debian-bootstrap" 250 cmd = ["ps", "-q"] [all …]
|
/qemu/tests/unit/ |
H A D | test-keyval.c | 10 * See the COPYING file in the top-level directory. 19 #include "qapi/qobject-input-visitor.h" 20 #include "test-qapi-visit.h" 30 bool help; in test_keyval_parse() local 50 /* Invalid non-empty key (qemu_opts_parse() doesn't care) */ in test_keyval_parse() 143 /* Anti-social ID is left to caller (qemu_opts_parse() rejects it) */ in test_keyval_parse() 196 /* "help" by itself, without implied key */ in test_keyval_parse() 197 qdict = keyval_parse("help", NULL, &help, &error_abort); in test_keyval_parse() 199 g_assert(help); in test_keyval_parse() 202 /* "help" by itself, with implied key */ in test_keyval_parse() [all …]
|
/qemu/scripts/simplebench/ |
H A D | bench-backup.py | 3 # Bench backup block-job 31 cmd_options = env['cmd-options'] if 'cmd-options' in env else {} 32 return bench_block_copy(env['qemu-binary'], env['cmd'], 57 raise ValueError("'nbd' label used but --nbd is not given") 62 source = drv_qcow2(drv_file(dirs[src] + '/test-source.qcow2')) 64 source = drv_file(dirs[src] + '/test-source') 77 fname = dirs[dst] + '/test-target' 129 elif opt == 'copy-range=on': 130 x_perf['use-copy-range'] = True 131 elif opt == 'copy-range=off': [all …]
|