/qemu/.gitlab/issue_templates/ |
H A D | bug.md | 1 <!-- 10 https://www.qemu.org/. Problems with distro-packaged versions of QEMU 13 See https://www.qemu.org/contribute/report-a-bug/ for additional 17 https://www.qemu.org/contribute/security-process/ 18 --> 21 - Operating system: <!-- Windows 10 21H1, Fedora 37, etc. --> 22 - OS/kernel version: <!-- For POSIX hosts, use `uname -a` --> 23 - Architecture: <!-- x86, ARM, s390x, etc. --> 24 - QEMU flavor: <!-- qemu-system-x86_64, qemu-aarch64, qemu-img, etc. --> 25 - QEMU version: <!-- e.g. `qemu-system-x86_64 --version` --> [all …]
|
/qemu/tests/qemu-iotests/ |
H A D | 223 | 6 # Copyright (C) 2018-2020 Red Hat, Inc. 32 rm -f "$SOCK_DIR/nbd" 51 $QEMU -nographic -qmp stdio -serial none "$@" 68 # check for read-only interactions 69 _make_test_img -o cluster_size=4k 4M 70 $QEMU_IO -c 'w -P 0x11 1M 2M' "$TEST_IMG" | _filter_qemu_io 73 { "execute": "blockdev-add", 76 "node-name": "n", 83 { "execute": "block-dirty-bitmap-add", 91 { "execute": "block-dirty-bitmap-add", [all …]
|
H A D | 103 | 44 _unsupported_imgopts 'refcount_bits=1[^0-9]' data_file 49 $QEMU_IO -c 'write -P 42 0 64k' "$TEST_IMG" | _filter_qemu_io 56 $QEMU_IO -c "open -o cache-size=1.25M,l2-cache-size=1M,refcount-cache-size=0.25M $TEST_IMG" \ 58 # l2-cache-size may not exceed cache-size 59 $QEMU_IO -c "open -o cache-size=1M,l2-cache-size=2M $TEST_IMG" 2>&1 \ 61 # refcount-cache-size may not exceed cache-size 62 $QEMU_IO -c "open -o cache-size=1M,refcount-cache-size=2M $TEST_IMG" 2>&1 \ 66 $QEMU_IO -c "open -o cache-size=0,l2-cache-size=0,refcount-cache-size=0 $TEST_IMG" \ 70 $QEMU_IO -c "open -o l2-cache-entry-size=256 $TEST_IMG" \ 72 $QEMU_IO -c "open -o l2-cache-entry-size=4242 $TEST_IMG" \ [all …]
|
H A D | 051.out | 7 Testing: -drive file=TEST_DIR/t.qcow2,format=qcow2,unknown_opt=,if=none,id=drive0 8 QEMU_PROG: -drive file=TEST_DIR/t.qcow2,format=qcow2,unknown_opt=,if=none,id=drive0: Block format '… 10 Testing: -drive file=TEST_DIR/t.qcow2,format=qcow2,unknown_opt=on,if=none,id=drive0 11 QEMU_PROG: -drive file=TEST_DIR/t.qcow2,format=qcow2,unknown_opt=on,if=none,id=drive0: Block format… 13 Testing: -drive file=TEST_DIR/t.qcow2,format=qcow2,unknown_opt=1234,if=none,id=drive0 14 QEMU_PROG: -drive file=TEST_DIR/t.qcow2,format=qcow2,unknown_opt=1234,if=none,id=drive0: Block form… 16 Testing: -drive file=TEST_DIR/t.qcow2,format=qcow2,unknown_opt=foo,if=none,id=drive0 17 QEMU_PROG: -drive file=TEST_DIR/t.qcow2,format=qcow2,unknown_opt=foo,if=none,id=drive0: Block forma… 22 Testing: -drive file=TEST_DIR/t.qcow2,format=qcow2,file.unknown_opt= 23 QEMU_PROG: -drive file=TEST_DIR/t.qcow2,format=qcow2,file.unknown_opt=: Block protocol 'file' doesn… [all …]
|
H A D | 184.out | 31 "backing-image": { 32 "virtual-size": 1073741824, 33 "filename": "null-co://", 34 "format": "null-co", 35 "actual-size": 0 37 "virtual-size": 1073741824, 38 …"filename": "json:{\"throttle-group\": \"group0\", \"driver\": \"throttle\", \"file\": {\"driver\"… 40 "actual-size": 0 44 "node-name": "throttle0", 54 "no-flush": false, [all …]
|
/qemu/target/avr/ |
H A D | cpu.c | 4 * Copyright (c) 2019-2020 Michael Rolnik 18 * <http://www.gnu.org/licenses/lgpl-2.1.html> 23 #include "qemu/qemu-print.h" 24 #include "exec/translation-block.h" 25 #include "system/address-spaces.h" 27 #include "disas/dis-asm.h" 28 #include "tcg/debug-assert.h" 29 #include "hw/qdev-properties.h" 30 #include "accel/tcg/cpu-ops.h" 36 cpu->env.pc_w = value / 2; /* internally PC points to words */ in avr_cpu_set_pc() [all …]
|
/qemu/pc-bios/s390-ccw/ |
H A D | Makefile | 1 all: build-all 5 include config-host.mak 6 CFLAGS = -O2 -g -I $(SRC_PATH)/../../include/hw/s390x/ipl 8 MAKEFLAGS += -rR 16 quiet-@ = $(if $(V),,@$(if $1,printf "%s\n" "$(TARGET_PREFIX)$1" && )) 17 quiet-command = $(call quiet-@,$2 $@)$1 20 set-vpath = $(if $1,$(foreach PATTERN,$(VPATH_SUFFIXES),$(eval vpath $(PATTERN) $1))) 21 $(call set-vpath, $(SRC_PATH)) 24 QEMU_DGFLAGS = -MMD -MP -MT $@ -MF $(@D)/$(*F).d 27 $(call quiet-command,$(CC) $(EXTRA_CFLAGS) $(QEMU_DGFLAGS) $(CFLAGS) \ [all …]
|
/qemu/tests/qtest/ |
H A D | cdrom-test.c | 2 * Various tests for emulated CD-ROM drives. 10 * or later. See the COPYING file in the top-level directory. 15 #include "boot-sector.h" 18 static char isoimage[] = "cdrom-boot-iso-XXXXXX"; 23 gint exit_status = -1; in exec_xorrisofs() 30 return -ENOENT; in exec_xorrisofs() 42 char srcdir[] = "cdrom-test-dir-XXXXXX"; in prepare_image() 44 int ifh, ret = -1; in prepare_image() 46 "xorrisofs", "-quiet", "-l", "-no-emul-boot", in prepare_image() 47 "-b", NULL, "-o", isoimagepath, srcdir, NULL in prepare_image() [all …]
|
H A D | readconfig-test.c | 2 * Validate -readconfig 7 * See the COPYING file in the top-level directory. 13 #include "qapi/qapi-visit-machine.h" 14 #include "qapi/qapi-visit-qom.h" 15 #include "qapi/qapi-visit-ui.h" 18 #include "qapi/qobject-input-visitor.h" 26 int cfgfd = -1; in qtest_init_with_config() 31 cfgfd = g_file_open_tmp("readconfig-test-XXXXXX", &cfgpath, &error); in qtest_init_with_config() 42 args = g_strdup_printf("-nodefaults -machine none -readconfig %s", cfgpath); in qtest_init_with_config() 62 g_assert(memdevs->value); in test_x86_memdev_resp() [all …]
|
/qemu/scripts/ci/setup/ |
H A D | gitlab-runner.yml | 7 # later. See the COPYING file in the top-level directory. 10 # gitlab-runner agent. 11 --- 12 - name: Installation of gitlab-runner 15 - vars.yml 17 - debug: 21 - name: Create a group for the gitlab-runner service 23 name: gitlab-runner 25 - name: Create a user for the gitlab-runner service 27 user: gitlab-runner [all …]
|
/qemu/tests/qapi-schema/ |
H A D | qapi-schema-test.out | 11 module qapi-schema-test.json 25 object q_obj_Union-base 28 base q_obj_Union-base 34 command user-def-cmd0 Empty2 -> Empty2 75 member a-b: bool optional=True 87 object q_obj_UserDefFlatUnion2-base 92 base q_obj_UserDefFlatUnion2-base 108 member value-a 109 member value-b 111 member value-a1 [all …]
|
/qemu/docs/devel/ |
H A D | replay.rst | 13 execution. Execution recording writes a non-deterministic events log, which 16 non-deterministic events including external input, hardware clocks, 21 Devices' models that have non-deterministic input from external devices were 26 All non-deterministic events are coming from these devices. But to 33 …th Multi-target QEMU Simulator for Dynamic Analysis and Reverse Debugging <https://www.computer.or… 50 -------------------- 55 non-deterministic events. The number of instructions elapsed from the last event 60 ---------------------------------- 68 another lock to keep things in lock-step. This role is now handled by 71 in a deterministic ping-pong between the two main threads. [all …]
|
H A D | qapi-code-gen.rst | 7 Copyright (C) 2012-2016 Red Hat, Inc. 10 later. See the COPYING file in the top-level directory. 17 QAPI is a native C API within QEMU which provides management-level 19 users/processes, this interface is made available by a JSON-based wire 43 There are several kinds of types: simple types (a number of built-in 50 ------------- 67 syntax in an EBNF-like notation: 69 * Production rules look like ``non-terminal = expression`` 85 * ALL-CAPS words other than ``STRING`` are non-terminals 90 A QAPI schema consists of a series of top-level expressions:: [all …]
|
/qemu/tests/tcg/arm/ |
H A D | Makefile.softmmu-target | 1 # -*- Mode: makefile -*- 3 # ARM SoftMMU tests - included from tests/tcg/Makefile 13 test-armv6m-undef: test-armv6m-undef.S 14 $(CC) -mcpu=cortex-m0 -mfloat-abi=soft \ 15 -Wl,--build-id=none -x assembler-with-cpp \ 16 $< -o $@ -nostdlib -static \ 17 -T $(ARM_SRC)/$@.ld 19 run-test-armv6m-undef: QEMU_OPTS=-semihosting-config enable=on,target=native,chardev=output -M micr… 21 ARM_TESTS+=test-armv6m-undef 31 LDFLAGS=-Wl,-T$(LINK_SCRIPT) [all …]
|
/qemu/qapi/ |
H A D | virtio.json | 1 # -*- Mode: Python -*- 25 # @x-query-virtio: 37 # .. qmp-example:: 39 # -> { "execute": "x-query-virtio" } 40 # <- { "return": [ 42 # "name": "virtio-input", 43 # "path": "/machine/peripheral-anon/device[4]/virtio-backend" 46 # "name": "virtio-crypto", 47 # "path": "/machine/peripheral/crypto0/virtio-backend" 50 # "name": "virtio-scsi", [all …]
|
/qemu/util/ |
H A D | readline.c | 4 * Copyright (c) 2003-2004 Fabrice Bellard 37 rs->printf_func(rs->opaque, "%s", rs->prompt); in readline_show_prompt() 38 rs->flush_func(rs->opaque); in readline_show_prompt() 39 rs->last_cmd_buf_index = 0; in readline_show_prompt() 40 rs->last_cmd_buf_size = 0; in readline_show_prompt() 41 rs->esc_state = IS_NORM; in readline_show_prompt() 49 if (rs->cmd_buf_size != rs->last_cmd_buf_size || in readline_update() 50 memcmp(rs->cmd_buf, rs->last_cmd_buf, rs->cmd_buf_size) != 0) { in readline_update() 51 for (i = 0; i < rs->last_cmd_buf_index; i++) { in readline_update() 52 rs->printf_func(rs->opaque, "\033[D"); in readline_update() [all …]
|
/qemu/hw/nvme/ |
H A D | ns.c | 11 * COPYING file in the top-level directory. 18 #include "qemu/error-report.h" 22 #include "system/block-backend.h" 32 NvmeIdNs *id_ns = &ns->id_ns; in nvme_ns_init_format() 33 NvmeIdNsNvm *id_ns_nvm = &ns->id_ns_nvm; in nvme_ns_init_format() 38 ns->lbaf = id_ns->lbaf[NVME_ID_NS_FLBAS_INDEX(id_ns->flbas)]; in nvme_ns_init_format() 39 ns->lbasz = 1 << ns->lbaf.ds; in nvme_ns_init_format() 41 nlbas = ns->size / (ns->lbasz + ns->lbaf.ms); in nvme_ns_init_format() 43 id_ns->nsze = cpu_to_le64(nlbas); in nvme_ns_init_format() 46 id_ns->ncap = id_ns->nsze; in nvme_ns_init_format() [all …]
|
/qemu/hw/virtio/ |
H A D | meson.build | 2 system_virtio_ss.add(files('virtio-bus.c')) 3 system_virtio_ss.add(files('iothread-vq-mapping.c')) 4 system_virtio_ss.add(when: 'CONFIG_VIRTIO_PCI', if_true: files('virtio-pci.c')) 5 system_virtio_ss.add(when: 'CONFIG_VIRTIO_MMIO', if_true: files('virtio-mmio.c')) 6 system_virtio_ss.add(when: 'CONFIG_VIRTIO_CRYPTO', if_true: files('virtio-crypto.c')) 7 system_virtio_ss.add(when: 'CONFIG_VHOST_VSOCK_COMMON', if_true: files('vhost-vsock-common.c')) 8 system_virtio_ss.add(when: 'CONFIG_VIRTIO_IOMMU', if_true: files('virtio-iommu.c')) 9 system_virtio_ss.add(when: 'CONFIG_VHOST_VDPA_DEV', if_true: files('vdpa-dev.c')) 13 specific_virtio_ss.add(files('virtio-config-io.c', 'virtio-qmp.c')) 17 specific_virtio_ss.add(files('vhost-backend.c', 'vhost-iova-tree.c')) [all …]
|
/qemu/docs/system/ |
H A D | introduction.rst | 7 --------------------------- 14 .. list-table:: Supported Accelerators 15 :header-rows: 1 17 * - Accelerator 18 - Host OS 19 - Host Architectures 20 * - KVM 21 - Linux 22 - Arm (64 bit only), MIPS, PPC, RISC-V, s390x, x86 23 * - Xen [all …]
|
/qemu/hw/dma/ |
H A D | omap_dma.c | 4 * Copyright (C) 2006-2008 Andrzej Zaborowski <balrog@zabor.org> 5 * Copyright (C) 2007-2008 Lauro Ramos Venancio <lauro.venancio@indt.org.br> 140 s->intr_update(s); in omap_dma_interrupts_update() 145 struct omap_dma_reg_set_s *a = &ch->active_set; in omap_dma_channel_load() 147 int omap_3_1 = !ch->omap_3_1_compatible_disable; in omap_dma_channel_load() 154 a->src = ch->addr[0]; in omap_dma_channel_load() 155 a->dest = ch->addr[1]; in omap_dma_channel_load() 156 a->frames = ch->frames; in omap_dma_channel_load() 157 a->elements = ch->elements; in omap_dma_channel_load() 158 a->pck_elements = ch->frame_index[!ch->src_sync]; in omap_dma_channel_load() [all …]
|
/qemu/docs/devel/testing/ |
H A D | main.rst | 7 everything from unit testing and exercising specific sub-systems all 9 tests you can run ``make check-help`` from either the source or build 16 [./pyvenv/bin/]meson test --suite qemu:softfloat 38 ------------------------- 49 Different sub-types of "make check" tests will be explained below. 55 .. _unit-tests: 68 In QEMU, unit tests can be invoked with ``make check-unit``. They are 76 1. Create a new source file. For example, ``tests/unit/foo-test.c``. 86 is in ``tests/unit/foo-test.c``, it is enough to add an entry like:: 90 'foo-test': [], [all …]
|
/qemu/ui/ |
H A D | console-vc.c | 2 * SPDX-License-Identifier: MIT 14 #include "console-priv.h" 127 return c->chr ? c->chr->label : NULL; in qemu_text_console_get_label() 139 pixman_image_fill_rectangles(PIXMAN_OP_SRC, surface->image, in qemu_console_fill_rect() 151 surface->image, NULL, surface->image, in qemu_console_bitblt() 163 if (t_attrib->invers) { in vga_putcharxy() 164 bgcol = color_table_rgb[t_attrib->bold][t_attrib->fgcol]; in vga_putcharxy() 165 fgcol = color_table_rgb[t_attrib->bold][t_attrib->bgcol]; in vga_putcharxy() 167 fgcol = color_table_rgb[t_attrib->bold][t_attrib->fgcol]; in vga_putcharxy() 168 bgcol = color_table_rgb[t_attrib->bold][t_attrib->bgcol]; in vga_putcharxy() [all …]
|
/qemu/tests/qtest/libqos/ |
H A D | virtio-pci.c | 7 * See the COPYING file in the top-level directory. 13 #include "virtio-pci.h" 15 #include "pci-pc.h" 16 #include "libqos-malloc.h" 17 #include "malloc-pc.h" 19 #include "standard-headers/linux/virtio_ring.h" 20 #include "standard-headers/linux/virtio_pci.h" 25 #include "virtio-pci-modern.h" 27 /* virtio-pci is a superclass of all virtio-xxx-pci devices; 28 * the relation between virtio-pci and virtio-xxx-pci is implicit, [all …]
|
/qemu/ |
H A D | MAINTAINERS | 10 consult qemu-devel and not any specific individual privately. 23 W: Web-page with status/info 59 ------------------------------ 63 L: qemu-devel@nongnu.org 72 R: Philippe Mathieu-Daudé <philmd@linaro.org> 75 F: docs/devel/build-environment.rst 76 F: docs/devel/code-of-conduct.rst 78 F: docs/devel/conflict-resolution.rst 80 F: docs/devel/submitting-a-patch.rst 81 F: docs/devel/submitting-a-pull-request.rst [all …]
|
/qemu/linux-user/hexagon/ |
H A D | signal.c | 5 * Copyright(c) 2019-2021 Qualcomm Innovation Center, Inc. All Rights Reserved. 22 #include "user-internals.h" 23 #include "signal-common.h" 24 #include "linux-user/trace.h" 70 sp = target_sigsp(sp, ka) - framesize; in get_sigframe() 79 __put_user(env->gpr[HEX_REG_R00], &sc->r0); in setup_sigcontext() 80 __put_user(env->gpr[HEX_REG_R01], &sc->r1); in setup_sigcontext() 81 __put_user(env->gpr[HEX_REG_R02], &sc->r2); in setup_sigcontext() 82 __put_user(env->gpr[HEX_REG_R03], &sc->r3); in setup_sigcontext() 83 __put_user(env->gpr[HEX_REG_R04], &sc->r4); in setup_sigcontext() [all …]
|