/openbmc/qemu/tests/qemu-iotests/tests/ |
H A D | inactive-node-nbd | 53 iotests.VM() as vm: 66 iotests.log('Launching VM...') 67 vm.add_blockdev(f'file,node-name=disk-file,filename={path}') 68 vm.add_blockdev(f'{iotests.imgfmt},file=disk-file,node-name=disk-fmt,' 70 vm.add_blockdev(f'file,node-name=target-file,filename={target_path}') 71 vm.add_blockdev(f'{iotests.imgfmt},file=target-file,node-name=target-fmt') 72 vm.add_blockdev(f'file,node-name=snap-file,filename={snap_path}') 73 vm.add_blockdev(f'file,node-name=snap2-file,filename={snap2_path}') 75 # Actually running the VM activates all images 76 vm.add_paused() [all …]
|
H A D | iothreads-commit-active | 32 iotests.VM() as vm: 47 iotests.log('Launching VM...') 48 vm.add_object('iothread,id=iothread0') 49 vm.add_object('throttle-group,x-bps-write=1048576,id=tg0') 50 vm.add_blockdev(f'file,node-name=disk0-file,filename={img_path}') 51 vm.add_blockdev('qcow2,node-name=disk0-fmt,file=disk0-file') 52 vm.add_drive(snap_path, 'backing=disk0-fmt,node-name=disk0', 54 vm.add_device('virtio-scsi,iothread=iothread0') 55 vm.add_device('scsi-hd,drive=drive0') 57 vm.add_blockdev(f'file,filename={src_path},node-name=mirror-src-file') [all …]
|
/openbmc/qemu/docs/system/ |
H A D | vm-templating.rst | 1 QEMU VM templating 4 This document explains how to use VM templating in QEMU. 6 For now, the focus is on VM memory aspects, and not about how to save and 7 restore other VM state (i.e., migrate-to-file with ``x-ignore-shared``). 12 With VM templating, a single template VM serves as the starting point for 16 Conceptually, the VM state is frozen, to then be used as a basis for new 18 new VMs are able to read template VM memory; however, any modifications 19 stay private and don't modify the original template VM or any other 20 created VM. 25 When effectively cloning VMs by VM templating, hardware identifiers [all …]
|
/openbmc/qemu/tests/functional/ |
H A D | test_ppc_74xx.py | 20 self.vm.set_console() 21 self.vm.add_args('-cpu', '7400') 22 self.vm.launch() 29 self.vm.set_console() 30 self.vm.add_args('-cpu', '7410') 31 self.vm.launch() 38 self.vm.set_console() 39 self.vm.add_args('-cpu', '7441') 40 self.vm.launch() 47 self.vm.set_console() [all …]
|
H A D | test_mem_addr_space.py | 19 # the VM generates empty logs. A delay of 1 second is added for 49 we have 0.5 GiB of VM memory, see pc_q35_init()). This means total 52 actual memory size of 59 GiB. If the VM is started with 0.5 GiB of 62 self.vm.add_args('-S', '-m', '512,slots=1,maxmem=59.6G', 66 self.vm.set_qmp_monitor(enabled=False) 67 self.vm.launch() 68 self.vm.wait() 69 self.assertEqual(self.vm.exitcode(), 1, "QEMU exit code should be 1") 70 self.assertRegex(self.vm.get_log(), r'phys-bits too low') 80 self.vm.add_args('-S', '-m', '512,slots=1,maxmem=59.6G', [all …]
|
/openbmc/qemu/tests/qemu-iotests/ |
H A D | 240 | 35 self.vm = iotests.VM() 36 self.vm.launch() 39 self.vm.shutdown() 43 self.vm.qmp_log('blockdev-add', driver='null-co', read_zeroes=True, node_name='hd0') 44 self.vm.qmp_log('object-add', qom_type='iothread', id="iothread0") 45 …self.vm.qmp_log('device_add', id='scsi0', driver='virtio-scsi', iothread='iothread0', filters=[iot… 46 self.vm.qmp_log('device_add', id='scsi-hd0', driver='scsi-hd', drive='hd0') 47 self.vm.qmp_log('device_del', id='scsi-hd0') 48 self.vm.event_wait('DEVICE_DELETED') 49 self.vm.qmp_log('device_add', id='scsi-hd0', driver='scsi-hd', drive='hd0') [all …]
|
H A D | 218 | 36 # Launches the VM, adds two null-co nodes (source and target), and 41 def start_mirror(vm, speed=None, buf_size=None): argument 42 vm.launch() 44 vm.cmd('blockdev-add', 49 vm.cmd('blockdev-add', 55 vm.cmd('blockdev-mirror', 63 vm.cmd('blockdev-mirror', 77 with iotests.VM() as vm: 79 start_mirror(vm, 65536, 65536) 82 log(vm.qmp('block-job-cancel', device='mirror', force=False)) [all …]
|
H A D | 219 | 29 def pause_wait(vm, job_id): argument 32 result = vm.qmp('query-jobs') 38 def test_pause_resume(vm): argument 45 iotests.log(vm.qmp(pause_cmd, **{pause_arg: 'job0'})) 46 pause_wait(vm, 'job0') 47 iotests.log(iotests.filter_qmp_event(vm.event_wait('JOB_STATUS_CHANGE'))) 48 result = vm.qmp('query-jobs') 54 iotests.log(vm.qmp(resume_cmd, **{resume_arg: 'job0'})) 55 iotests.log(iotests.filter_qmp_event(vm.event_wait('JOB_STATUS_CHANGE'))) 59 result = vm.qmp('query-jobs') [all …]
|
H A D | 118 | 49 for event in self.vm.get_qmp_events(wait=False): 77 self.vm.cmd('blockdev-change-medium', 84 result = self.vm.qmp('query-block') 90 self.vm.cmd('eject', id=self.device_name, force=True) 94 result = self.vm.qmp('query-block') 100 self.vm.cmd('eject', id=self.device_name, force=True) 104 result = self.vm.qmp('query-block') 109 self.vm.cmd('blockdev-change-medium', id=self.device_name, 114 result = self.vm.qmp('query-block') 120 self.vm.cmd('blockdev-open-tray', [all …]
|
H A D | 246 | 32 def query_bitmaps(vm): argument 33 res = vm.qmp("query-block") 39 iotests.VM() as vm: 41 log('--- Preparing image & VM ---\n') 43 vm.add_drive(img_path) 47 vm.launch() 50 vm.qmp_log("block-dirty-bitmap-add", node="drive0", 52 vm.qmp_log("block-dirty-bitmap-add", node="drive0", 54 vm.qmp_log("block-dirty-bitmap-add", node="drive0", 56 vm.qmp_log("block-dirty-bitmap-add", node="drive0", [all …]
|
H A D | 206 | 33 iotests.VM() as vm: 35 vm.add_object('secret,id=keysec0,data=foo') 45 vm.launch() 46 vm.blockdev_create({ 'driver': 'file', 50 vm.qmp_log('blockdev-add', 55 vm.blockdev_create({ 'driver': imgfmt, 58 vm.shutdown() 71 vm.launch() 72 vm.blockdev_create({ 'driver': 'file', 78 vm.blockdev_create({ 'driver': imgfmt, [all …]
|
H A D | 237 | 34 iotests.VM() as vm: 44 vm.launch() 45 vm.blockdev_create({ 'driver': 'file', 49 vm.qmp_log('blockdev-add', driver='file', filename=disk_path, 52 vm.blockdev_create({ 'driver': imgfmt, 55 vm.shutdown() 68 vm.launch() 69 vm.blockdev_create({ 'driver': 'file', 73 vm.blockdev_create({ 'driver': imgfmt, 84 vm.shutdown() [all …]
|
H A D | 213 | 33 iotests.VM() as vm: 43 vm.launch() 44 vm.blockdev_create({ 'driver': 'file', 48 vm.qmp_log('blockdev-add', driver='file', filename=disk_path, 51 vm.blockdev_create({ 'driver': imgfmt, 54 vm.shutdown() 67 vm.launch() 68 vm.blockdev_create({ 'driver': 'file', 71 vm.blockdev_create({ 'driver': imgfmt, 81 vm.shutdown() [all …]
|
H A D | 307 | 36 iotests.VM() as vm: 41 iotests.log('=== Launch VM ===') 43 vm.add_object('iothread,id=iothread0') 44 vm.add_object('iothread,id=iothread1') 45 vm.add_blockdev(f'file,filename={img},node-name=file') 46 vm.add_blockdev(f'{iotests.imgfmt},file=file,node-name=fmt') 47 vm.add_blockdev('raw,file=file,node-name=ro,read-only=on') 48 vm.add_blockdev('null-co,node-name=null') 49 vm.add_device(f'id=scsi0,driver=virtio-scsi,iothread=iothread0') 50 vm.launch() [all …]
|
H A D | 280 | 21 # Test migration to file for taking an external snapshot with VM state. 34 iotests.VM() as vm: 38 iotests.log('=== Launch VM ===') 39 vm.add_object('iothread,id=iothread0') 40 vm.add_blockdev('file,filename=%s,node-name=base-file' % (base_path)) 41 vm.add_blockdev('%s,file=base-file,node-name=base-fmt' % (iotests.imgfmt)) 42 vm.add_device('virtio-blk,drive=base-fmt,iothread=iothread0,id=vda') 43 vm.launch() 45 vm.enable_migration_events('VM') 48 vm.qmp_log('migrate', uri='exec:cat > /dev/null') [all …]
|
H A D | 260 | 34 def print_bitmap(msg, vm): argument 35 result = vm.qmp('query-block')['return'][0] 52 vm = iotests.VM().add_drive(base) 53 vm.launch() 55 vm.qmp_log('block-dirty-bitmap-add', node='drive0', name='bitmap0', 57 vm.hmp_qemu_io('drive0', 'write 0 64K') 58 print_bitmap('initial bitmap', vm) 60 vm.qmp_log('blockdev-snapshot-sync', device='drive0', snapshot_file=top, 62 vm.hmp_qemu_io('drive0', 'write 64K 512') 63 print_bitmap('check that no bitmaps are in snapshot', vm) [all …]
|
H A D | 211 | 32 def blockdev_create(vm, options): argument 33 error = vm.blockdev_create(options) 38 iotests.VM() as vm: 48 vm.launch() 49 blockdev_create(vm, { 'driver': 'file', 53 vm.qmp_log('blockdev-add', driver='file', filename=disk_path, 56 blockdev_create(vm, { 'driver': imgfmt, 59 vm.shutdown() 72 vm.launch() 73 blockdev_create(vm, { 'driver': 'file', [all …]
|
H A D | 212 | 33 iotests.VM() as vm: 43 vm.launch() 44 vm.blockdev_create({ 'driver': 'file', 48 vm.qmp_log('blockdev-add', driver='file', filename=disk_path, 51 vm.blockdev_create({ 'driver': imgfmt, 54 vm.shutdown() 67 vm.launch() 68 vm.blockdev_create({ 'driver': 'file', 71 vm.blockdev_create({ 'driver': imgfmt, 78 vm.shutdown() [all …]
|
H A D | 041 | 51 self.vm = iotests.VM().add_drive(test_img, "node-name=top,backing.node-name=base") 53 self.vm.add_drive(None, 'media=cdrom', 'ide') 54 self.vm.launch() 57 self.vm.shutdown() 68 self.vm.cmd(self.qmp_cmd, device='drive0', sync='full', 72 result = self.vm.qmp('query-block') 74 self.vm.shutdown() 81 self.vm.cmd(self.qmp_cmd, device='drive0', sync='full', 85 result = self.vm.qmp('query-block') 91 self.vm.cmd(self.qmp_cmd, device='drive0', sync='full', [all …]
|
H A D | 255 | 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') [all …]
|
H A D | 055 | 52 self.vm = iotests.VM() 53 self.vm.add_drive('blkdebug::' + test_img, 'node-name=source') 54 self.vm.add_drive(blockdev_target_img, 'node-name=target', 57 self.vm.add_drive(None, 'media=cdrom', 'ide') 58 self.vm.launch() 61 self.vm.shutdown() 71 self.vm.pause_drive('drive0') 72 self.vm.cmd(cmd, device='drive0', target=target, sync='full') 86 self.vm.pause_drive('drive0') 87 self.vm.cmd(cmd, device='drive0', [all …]
|
H A D | 165 | 46 return iotests.VM().add_drive(disk, opts='node-name=node0') 49 return iotests.VM().add_drive(disk, opts='readonly=on,node-name=node0') 52 result = self.vm.qmp('x-debug-block-dirty-bitmap-sha256', 57 result = self.vm.qmp('x-debug-block-dirty-bitmap-sha256', 63 self.vm.hmp_qemu_io('drive0', 67 self.vm.qmp('block-dirty-bitmap-add', node='drive0', 71 self.vm = self.mkVm() 72 self.vm.launch() 78 self.vm.shutdown() 80 self.vm = self.mkVmRo() [all …]
|
H A D | 045 | 35 self.vm = iotests.VM() 46 self.vm.add_fd(self.file0.fileno(), 1, 'image0:r') 47 self.vm.add_fd(self.file1.fileno(), 1, 'image1:w+') 48 self.vm.add_fd(self.file2.fileno(), 0, 'image2:r') 49 self.vm.add_fd(self.file3.fileno(), 2, 'image3:r') 50 self.vm.add_fd(self.file4.fileno(), 2, 'image4:r') 51 self.vm.add_drive("/dev/fdset/1") 52 self.vm.launch() 55 self.vm.shutdown() 68 result = self.vm.qmp('query-fdsets') [all …]
|
/openbmc/qemu/tests/vm/ |
H A D | Makefile.include | 1 # Makefile for VM tests 12 .PHONY: vm-build-all vm-clean-all 31 IMAGES_DIR := $(HOME)/.cache/qemu-vm/images 40 # 'vm-help' target was historically named 'vm-test' 41 vm-help vm-test: 42 @echo "vm-help: Test QEMU in preconfigured virtual machines" 44 @echo " vm-build-freebsd - Build QEMU in FreeBSD VM" 45 @echo " vm-build-netbsd - Build QEMU in NetBSD VM" 46 @echo " vm-build-openbsd - Build QEMU in OpenBSD VM" 49 @echo " vm-build-ubuntu.aarch64 - Build QEMU in ubuntu aarch64 VM" [all …]
|
/openbmc/openbmc/meta-openembedded/meta-networking/recipes-support/open-vm-tools/open-vm-tools/ |
H A D | 0008-Rename-poll.h-to-vm_poll.h.patch | 11 musl libc's system headers pulls in open-vm-tools' poll.h. To avoid this 14 Update for open-vm-tools-11.2.5. 22 open-vm-tools/lib/asyncsocket/asyncsocket.c | 2 +- 23 open-vm-tools/lib/hgfsServer/hgfsServer.c | 2 +- 24 open-vm-tools/lib/include/asyncsocket.h | 2 +- 25 open-vm-tools/lib/include/pollImpl.h | 2 +- 26 open-vm-tools/lib/include/{poll.h => vm_poll.h} | 2 +- 27 open-vm-tools/lib/rpcIn/rpcin.c | 2 +- 29 rename open-vm-tools/lib/include/{poll.h => vm_poll.h} (99%) 31 diff --git a/open-vm-tools/lib/asyncsocket/asyncsocket.c b/open-vm-tools/lib/asyncsocket/asyncsocke… [all …]
|