/qemu/tests/qemu-iotests/ |
H A D | 257.out | 4 --- Preparing image & VM --- 6 {"execute": "blockdev-add", "arguments": {"driver": "qcow2", "file": {"driver": "file", "filename":… 9 --- Write #0 --- 11 write -P0x49 0x0000000 0x10000 13 write -P0x6c 0x0100000 0x10000 15 write -P0x6f 0x2000000 0x10000 17 write -P0x76 0x3ff0000 0x10000 23 --- Reference Backup #0 --- 26 {"execute": "job-dismiss", "arguments": {"id": "bdc-file-job"}} 30 {"execute": "job-dismiss", "arguments": {"id": "bdc-fmt-job"}} [all …]
|
H A D | 258.out | 5 {"execute": "object-add", "arguments": {"id": "tg", "limits": {"iops-write": 1, "iops-write-max": 1… 7 …-add", "arguments": {"backing": {"backing": {"backing": {"backing": {"driver": "raw", "file": {"dr… 9 …k-commit", "arguments": {"auto-finalize": false, "base-node": "node0", "device": "node4", "filter-… 11 {"execute": "block-stream", "arguments": {"base-node": "commit-filter", "device": "node3", "job-id"… 13 {"execute": "job-finalize", "arguments": {"id": "commit"}} 16 {"data": {"device": "commit", "len": 67108864, "offset": 67108864, "speed": 0, "type": "commit"}, "… 17 {"data": {"device": "stream", "len": 67108864, "offset": 67108864, "speed": 0, "type": "stream"}, "… 21 {"execute": "object-add", "arguments": {"id": "tg", "limits": {"iops-write": 1, "iops-write-max": 1… 23 …-add", "arguments": {"backing": {"backing": {"backing": {"backing": {"driver": "raw", "file": {"dr… 25 …k-commit", "arguments": {"auto-finalize": false, "base-node": "node0", "device": "node4", "filter-… [all …]
|
H A D | 219 | 21 # Check using the job-* QMP commands with block jobs 32 result = vm.qmp('query-jobs') 37 # Test that block-job-pause/resume and job-pause/resume can be mixed 39 for pause_cmd, pause_arg in [('block-job-pause', 'device'), 40 ('job-pause', 'id')]: 41 for resume_cmd, resume_arg in [('block-job-resume', 'device'), 42 ('job-resume', 'id')]: 48 result = vm.qmp('query-jobs') 51 old_progress = result['return'][0]['current-progress'] 52 total_progress = result['return'][0]['total-progress'] [all …]
|
H A D | 185.out | 11 { 'execute': 'blockdev-snapshot-sync', 13 'snapshot-file': 'TEST_DIR/t.IMGFMT.mid', 15 'mode': 'absolute-paths' } } 18 { 'execute': 'human-monitor-command', 19 'arguments': { 'command-line': 20 'qemu-io disk "write 0 4M"' } } 24 { 'execute': 'blockdev-snapshot-sync', 26 'snapshot-file': 'TEST_DIR/t.IMGFMT', 28 'mode': 'absolute-paths' } } 34 { 'execute': 'block-commit', [all …]
|
H A D | 185 | 37 if [ -f "$TEST_DIR/qsd.pid" ]; then 38 kill -SIGKILL "$(cat "$TEST_DIR/qsd.pid")" 39 rm -f "$TEST_DIR/qsd.pid" 41 rm -f "$SOCK_DIR/qsd.sock" 64 -drive file="${TEST_IMG}.base",cache=$CACHEMODE,aio=$AIOMODE,driver=$IMGFMT,id=disk 73 "{ 'execute': 'blockdev-snapshot-sync', 75 'snapshot-file': '$TEST_IMG.mid', 77 'mode': 'absolute-paths' } }" \ 81 "{ 'execute': 'human-monitor-command', 82 'arguments': { 'command-line': [all …]
|
H A D | 151 | 38 qemu_img('create', '-f', iotests.imgfmt, source_img, '128M') 39 qemu_img('create', '-f', iotests.imgfmt, target_img, '128M') 43 'node-name': 'source-node', 49 blk_target = {'node-name': 'target-node', 57 self.vm.add_device('virtio-blk,id=vblk,drive=source') 73 'write -P 1 0 %i' % self.image_len); 77 self.vm.hmp_qemu_io('source', 'aio_write -P 2 %i 1M' % offset) 79 self.vm.hmp_qemu_io('source', 'aio_write -z %i 1M' % offset) 82 self.vm.cmd('blockdev-mirror', 84 filter_node_name='mirror-node', [all …]
|
H A D | 220 | 4 # max limits on compression in huge qcow2 files 51 _make_test_img -o 'cluster_size=2M,refcount_bits=1' 513T 62 truncate --size=38m "$TEST_IMG" 64 $QEMU_IO_PROG -f raw -c "w -P 0xff 4m 2m" "$TEST_IMG" | _filter_qemu_io 68 $QEMU_IO_PROG -f raw -c "w -P 0xff $offs 2m" "$TEST_IMG" | _filter_qemu_io 72 # FIXME: 'qemu-img check' doesn't diagnose refcounts beyond the end of 75 stat -c 'image size %s' "$TEST_IMG" 80 $QEMU_IO_PROG -c 'w -c 0 2m' "$TEST_IMG" | _filter_qemu_io 82 stat -c 'image size %s' "$TEST_IMG" 86 $QEMU_IO_PROG -c 'w 0 2m' "$TEST_IMG" | _filter_qemu_io [all …]
|
/qemu/tests/bench/ |
H A D | bufferiszero-bench.c | 2 * QEMU buffer_is_zero speed benchmark 6 * top-level directory. 14 size_t max = 64 * KiB; in test() local 15 void *buf = g_malloc0(max); in test() 22 for (size_t len = 1 * KiB; len <= max; len *= 4) { in test() 45 g_test_add_data_func("/cutils/bufferiszero/speed", NULL, test); in main()
|
/qemu/tests/qemu-iotests/tests/ |
H A D | migrate-during-backup | 40 qemu_img_create('-f', iotests.imgfmt, disk_a, size) 41 qemu_img_create('-f', iotests.imgfmt, disk_b, size) 42 qemu_io('-c', f'write 0 {size}', disk_a) 46 self.vm.cmd('blockdev-add', { 47 'node-name': 'target', 56 self.vm.cmd('blockdev-backup', device='drive0', 58 speed=1, x_perf={ 59 'max-workers': 1, 60 'max-chunk': 64 * 1024 63 self.vm.cmd('job-pause', id='drive0') [all …]
|
/qemu/include/standard-headers/linux/ |
H A D | pci_regs.h | 1 /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ 5 * Copyright 1997--1999 Martin Mares <mj@ucw.cz> 25 * Conventional PCI and PCI-X Mode 1 devices have 256 bytes of 26 * configuration space. PCI-X Mode 2 and PCIe devices have 4096 bytes of 50 #define PCI_COMMAND_FAST_BACK 0x200 /* Enable back-to-back writes */ 59 #define PCI_STATUS_FAST_BACK 0x80 /* Accept fast-back to back */ 83 #define PCI_HEADER_TYPE_MFD 0x80 /* Multi-Function Device (possible) */ 124 /* 0x35-0x3b are reserved */ 130 /* Header type 1 (PCI-to-PCI bridges) */ 158 /* 0x35-0x3b is reserved */ [all …]
|
H A D | virtio_net.h | 28 #include "standard-headers/linux/types.h" 29 #include "standard-headers/linux/virtio_ids.h" 30 #include "standard-headers/linux/virtio_config.h" 31 #include "standard-headers/linux/virtio_types.h" 32 #include "standard-headers/linux/if_ether.h" 59 #define VIRTIO_NET_F_DEVICE_STATS 50 /* Device can provide device-level statistics. */ 105 * speed, in units of 1Mb. All values 0 to INT_MAX are legal. 108 uint32_t speed; member 110 * 0x00 - half duplex 111 * 0x01 - full duplex [all …]
|
/qemu/include/qemu/ |
H A D | ratelimit.h | 10 * See the COPYING.LIB file in the top-level directory. 45 QEMU_LOCK_GUARD(&limit->lock); in ratelimit_calculate_delay() 46 if (!limit->slice_quota) { in ratelimit_calculate_delay() 50 assert(limit->slice_ns); in ratelimit_calculate_delay() 52 if (limit->slice_end_time < now) { in ratelimit_calculate_delay() 55 limit->slice_start_time = now; in ratelimit_calculate_delay() 56 limit->slice_end_time = now + limit->slice_ns; in ratelimit_calculate_delay() 57 limit->dispatched = 0; in ratelimit_calculate_delay() 60 limit->dispatched += n; in ratelimit_calculate_delay() 61 if (limit->dispatched < limit->slice_quota) { in ratelimit_calculate_delay() [all …]
|
/qemu/block/ |
H A D | backup.c | 11 * See the COPYING file in the top-level directory. 22 #include "block/block-copy.h" 23 #include "block/dirty-bitmap.h" 26 #include "system/block-backend.h" 28 #include "qemu/error-report.h" 30 #include "block/copy-before-write.h" 59 bool sync = (((ret == 0) || (job->bitmap_mode == BITMAP_SYNC_MODE_ALWAYS)) \ in backup_cleanup_sync_bitmap() 60 && (job->bitmap_mode != BITMAP_SYNC_MODE_NEVER)); in backup_cleanup_sync_bitmap() 67 bm = bdrv_dirty_bitmap_abdicate(job->sync_bitmap, NULL); in backup_cleanup_sync_bitmap() 73 bm = bdrv_reclaim_dirty_bitmap(job->sync_bitmap, NULL); in backup_cleanup_sync_bitmap() [all …]
|
/qemu/qapi/ |
H A D | block-core.json | 1 # -*- Mode: Python -*- 20 # @vm-state-size: size of the VM state 22 # @date-sec: UTC date of the snapshot in seconds 24 # @date-nsec: fractional part in nano seconds to be used with date-sec 26 # @vm-clock-sec: VM clock relative to boot in seconds 28 # @vm-clock-nsec: fractional part in nano seconds to be used with 29 # vm-clock-sec 32 # record/replay is enabled. Used for "time-traveling" to match 34 # counter may be obtained through @query-replay command 40 'data': { 'id': 'str', 'name': 'str', 'vm-state-size': 'int', [all …]
|
H A D | migration.json | 1 # -*- Mode: Python -*- 28 # @normal-bytes: number of normal bytes sent (since 1.2) 30 # @dirty-pages-rate: number of pages dirtied by second by the guest 35 # @dirty-sync-count: number of times that dirty ram was synchronized 38 # @postcopy-requests: The number of page requests received from the 41 # @page-size: The number of bytes per page for the various page-based 44 # @multifd-bytes: The number of bytes sent through multifd (since 3.0) 46 # @pages-per-second: the number of memory pages transferred per second 49 # @precopy-bytes: The number of bytes sent in the pre-copy phase 52 # @downtime-bytes: The number of bytes sent while the guest is paused [all …]
|
/qemu/ |
H A D | blockdev.c | 4 * Copyright (c) 2003-2008 Fabrice Bellard 7 * later. See the COPYING file in the top-level directory. 12 * Copyright (c) 2003-2008 Fabrice Bellard 34 #include "system/block-backend.h" 38 #include "block/dirty-bitmap.h" 40 #include "block/throttle-groups.h" 42 #include "qemu/error-report.h" 44 #include "qemu/qemu-print.h" 45 #include "qemu/config-file.h" 46 #include "qapi/qapi-commands-block.h" [all …]
|
/qemu/tests/tcg/i386/ |
H A D | Makefile.target | 8 config-cc.mak: Makefile 9 $(quiet-@)( \ 10 $(call cc-option,-fno-pie, CROSS_CC_HAS_I386_NOPIE)) 3> config-cc.mak 12 -include config-cc.mak 16 SKIP_I386_TESTS=test-i386-ssse3 test-avx test-3dnow test-mmx test-flags 17 X86_64_TESTS:=$(filter test-i386-adcox test-i386-bmi2 $(SKIP_I386_TESTS), $(ALL_X86_TESTS)) 19 test-i386-sse-exceptions: CFLAGS += -msse4.1 -mfpmath=sse 20 run-test-i386-sse-exceptions: QEMU_OPTS += -cpu max 22 test-i386-pcmpistri: CFLAGS += -msse4.2 23 run-test-i386-pcmpistri: QEMU_OPTS += -cpu max [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 110 uint16_t speed; member 302 .name = "max-speed", 304 .help = "max speed in MHz", 306 .name = "current-speed", 308 .help = "speed at system boot in MHz", [all …]
|
/qemu/hw/usb/ |
H A D | bus.c | 2 #include "hw/qdev-properties.h" 5 #include "qapi/qapi-commands-machine.h" 6 #include "qapi/type-helpers.h" 7 #include "qemu/error-report.h" 24 DEFINE_PROP_BIT("msos-desc", USBDevice, flags, 34 k->print_dev = usb_bus_dev_print; in usb_bus_class_init() 35 k->get_dev_path = usb_get_dev_path; in usb_bus_class_init() 36 k->get_fw_dev_path = usb_get_fw_dev_path; in usb_bus_class_init() 37 hc->unplug = qdev_simple_device_unplug_cb; in usb_bus_class_init() 58 if (dev->state == USB_STATE_NOTATTACHED) { in usb_device_post_load() [all …]
|
/qemu/tests/qtest/migration/ |
H A D | framework.h | 2 * Copyright (c) 2016-2018 Red Hat, Inc. and/or its affiliates 3 * based on the vhost-user-test.c that is: 7 * See the COPYING file in the top-level directory. 15 #include <qapi/qapi-types-migration.h> 52 * before QEMU has terminated (unless it self-terminated 72 * low value, with tiny max downtime too. This basically 76 * so we can't let the entire migration pass run at this speed. 81 * Before migration starts, we write a 64-bit magic marker 85 * proof that start_address -> MAGIC_OFFSET_BASE has been 90 * is proof that start_address -> MAGIC_OFFSET_BASE [all …]
|
/qemu/docs/ |
H A D | rdma.txt | 31 data copies by bypassing the host networking stack. In particular, a TCP-based 32 migration, under certain types of memory-bound workloads, may take a more 38 over Converged Ethernet) as well as Infiniband-based. This implementation of 56 of RDMA migration may in fact be harmful to co-located VMs or other 65 bulk-phase round of the migration and can be enabled for extremely 66 high-performance RDMA hardware using the following command: 69 $ migrate_set_capability rdma-pin-all on # disabled by default 74 On the other hand, this will also significantly speed up the bulk round 89 First, set the migration speed to match your hardware's capabilities: 92 $ migrate_set_parameter max-bandwidth 40g # or whatever is the MAX of your RDMA device [all …]
|
H A D | qcow2-cache.txt | 3 Copyright (C) 2015, 2018-2020 Igalia, S.L. 7 later. See the COPYING file in the top-level directory. 10 ------------ 18 Please refer to the docs/interop/qcow2.rst file for an in-depth 23 -------- 30 The 'qemu-img create' command supports specifying the size using the 33 qemu-img create -f qcow2 -o cluster_size=128K hd.qcow2 4G 37 ------------- 38 The qcow2 format uses a two-level structure to map the virtual disk as 50 an L2 cache in memory to speed up disk access. [all …]
|
/qemu/hw/char/ |
H A D | cadence_uart.c | 5 * - http://www.xilinx.com/support/documentation/user_guides/ug585-Zynq-7000-TRM.pdf 6 * - Chapter 19 UART Controller 7 * - Appendix B for Register details 27 #include "chardev/char-fe.h" 28 #include "chardev/char-serial.h" 34 #include "hw/qdev-clock.h" 35 #include "hw/qdev-properties-system.h" 127 s->r[R_SR] = 0; in uart_update_status() 129 s->r[R_SR] |= s->rx_count == CADENCE_UART_RX_FIFO_SIZE ? UART_SR_INTR_RFUL in uart_update_status() 131 s->r[R_SR] |= !s->rx_count ? UART_SR_INTR_REMPTY : 0; in uart_update_status() [all …]
|
/qemu/migration/ |
H A D | options.c | 4 * Copyright (c) 2012-2023 Red Hat Inc 11 * See the COPYING file in the top-level directory. 15 #include "qemu/error-report.h" 17 #include "qapi/clone-visitor.h" 19 #include "qapi/qapi-commands-migration.h" 20 #include "qapi/qapi-visit-migration.h" 28 #include "migration-stats.h" 29 #include "qemu-file.h" 38 #define MAX_THROTTLE (128 << 20) /* Migration transfer speed throttling */ 57 /* 0: means nocompress, 1: best speed, ... 9: best compress ratio */ [all …]
|
/qemu/ui/ |
H A D | cocoa.m | 31 #include "qemu/help-texts.h" 32 #include "qemu-main.h" 36 #include "ui/kbd-state.h" 39 #include "system/runstate-action.h" 40 #include "system/cpu-throttle.h" 42 #include "qapi/qapi-commands-block.h" 43 #include "qapi/qapi-commands-machine.h" 44 #include "qapi/qapi-commands-misc.h" 46 #include "qemu-version.h" 48 #include "qemu/main-loop.h" [all …]
|