235 (3af8c4be90e1e125e4269181c5de4f2f3fc16cb1) | 235 (2c26e648e4350079b0c86a6627b2d3566c3709c0) |
---|---|
1#!/usr/bin/env python 2# 3# Simple mirror test 4# 5# Copyright (c) 2018 Virtuozzo International GmbH. All rights reserved. 6# 7# This program is free software; you can redistribute it and/or modify 8# it under the terms of the GNU General Public License as published by --- 35 unchanged lines hidden (view full) --- 44 45disk = file_path('disk') 46 47# prepare source image 48qemu_img_create('-f', iotests.imgfmt, '-o', 'preallocation=metadata', disk, 49 str(size)) 50 51vm = QEMUMachine(iotests.qemu_prog) | 1#!/usr/bin/env python 2# 3# Simple mirror test 4# 5# Copyright (c) 2018 Virtuozzo International GmbH. All rights reserved. 6# 7# This program is free software; you can redistribute it and/or modify 8# it under the terms of the GNU General Public License as published by --- 35 unchanged lines hidden (view full) --- 44 45disk = file_path('disk') 46 47# prepare source image 48qemu_img_create('-f', iotests.imgfmt, '-o', 'preallocation=metadata', disk, 49 str(size)) 50 51vm = QEMUMachine(iotests.qemu_prog) |
52vm.add_args('-machine', 'pc,accel=kvm') | 52vm.add_args('-machine', 'accel=kvm') 53if iotests.qemu_default_machine == 's390-ccw-virtio': 54 vm.add_args('-no-shutdown') |
53vm.add_args('-drive', 'id=src,file=' + disk) 54vm.launch() 55 56log(vm.qmp('object-add', qom_type='throttle-group', id='tg0', 57 props={ 'x-bps-total': size })) 58 59log(vm.qmp('blockdev-add', 60 **{ 'node-name': 'target', --- 16 unchanged lines hidden --- | 55vm.add_args('-drive', 'id=src,file=' + disk) 56vm.launch() 57 58log(vm.qmp('object-add', qom_type='throttle-group', id='tg0', 59 props={ 'x-bps-total': size })) 60 61log(vm.qmp('blockdev-add', 62 **{ 'node-name': 'target', --- 16 unchanged lines hidden --- |