Lines Matching full:vm

36      iotests.VM() as vm:
38 iotests.log("=== Create backing chain and start VM ===")
51 vm.add_object('throttle-group,x-bps-read=4096,id=throttle0')
52 vm.add_blockdev('file,filename=%s,node-name=base' % (base_path))
53 vm.add_blockdev('throttle,throttle-group=throttle0,file=base,node-name=throttled')
54 vm.add_blockdev('file,filename=%s,node-name=mid-file' % (mid_path))
55 vm.add_blockdev('qcow2,file=mid-file,node-name=mid,backing=throttled')
56 vm.add_drive_raw('if=none,id=overlay,driver=qcow2,file=%s,backing=mid' % (disk_path))
58 vm.launch()
64 vm.hmp_qemu_io('overlay', 'aio_read 0 4k')
65 vm.hmp_qemu_io('overlay', 'aio_read 0 4k')
72 result = vm.qmp_log('block-commit', job_id='job0', auto_finalize=False,
75 vm.run_job('job0', auto_finalize=False, pre_finalize=start_requests,
78 vm.shutdown()
81 iotests.log('Closing the VM while a job is being cancelled')
87 iotests.VM() as vm:
89 iotests.log('=== Create images and start VM ===')
100 vm.add_object('throttle-group,x-bps-read=4096,id=throttle0')
102 vm.add_blockdev('file,node-name=src-file,filename=%s' % (src_path))
103 vm.add_blockdev('%s,node-name=src,file=src-file' % (iotests.imgfmt))
105 vm.add_blockdev('file,node-name=dst-file,filename=%s' % (dst_path))
106 vm.add_blockdev('%s,node-name=dst,file=dst-file' % (iotests.imgfmt))
108 vm.add_blockdev('throttle,node-name=src-throttled,' +
111 vm.add_device('virtio-blk,drive=src-throttled')
113 vm.launch()
118 vm.qmp_log('blockdev-mirror', job_id='job0', device='src-throttled',
121 vm.qmp_log('block-job-cancel', device='job0')
122 vm.qmp_log('quit')
124 vm.shutdown()