Lines Matching +full:host +full:- +full:command
34 """Benchmark block-job
36 cmd -- qmp command to run block-job (like blockdev-backup)
37 cmd_args -- dict of qmp command arguments
38 qemu_args -- list of Qemu command line arguments, including path to Qemu
42 contain additional 'vm-log' field. Return value is compatible with
59 return {'error': '"{}" command failed: {}'.format(cmd, str(res))}
71 return {'error': 'block-job failed: ' + str(e),
72 'vm-log': vm.get_log()}
75 return {'error': 'block-job failed: ' + e['data']['error'],
76 'vm-log': vm.get_log()}
82 return {'seconds': (end_ms - start_ms) / 1000000.0}
86 out = subprocess.run(['qemu-img', 'info', '--out=json', path],
88 return json.loads(out)['virtual-size']
99 assert cmd in ('blockdev-backup', 'blockdev-mirror')
107 subprocess.run(['qemu-img', 'create', '-f', 'qcow2',
113 source['node-name'] = 'source'
114 target['node-name'] = 'target'
116 cmd_options['job-id'] = 'job0'
123 '-blockdev', json.dumps(source),
124 '-blockdev', json.dumps(target)])
136 def drv_nbd(host, port): argument
138 'server': {'type': 'inet', 'host': host, 'port': port}}
149 print('USAGE: {} <qmp block-job command name> '
150 '<json string of arguments for the command> '