/qemu/tests/docker/dockerfiles/debian-microblaze-cross.d/ |
H A D | build-toolchain.sh | 3 set -e 5 TARGET=microblaze-linux-musl 11 CROSS_SYSROOT=${TOOLCHAIN_INSTALL}/$TARGET/sys-root 13 …m/Xilinx/meta-xilinx/refs/tags/xlnx-rel-v2024.1/meta-microblaze/recipes-devtools/gcc/gcc-12/0009-P… 21 wget https://ftp.gnu.org/gnu/binutils/binutils-2.37.tar.xz 22 wget https://ftp.gnu.org/gnu/gcc/gcc-11.2.0/gcc-11.2.0.tar.xz 23 wget https://www.musl-libc.org/releases/musl-1.2.2.tar.gz 24 wget https://cdn.kernel.org/pub/linux/kernel/v5.x/linux-5.10.70.tar.xz 26 tar axf binutils-2.37.tar.xz 27 tar axf gcc-11.2.0.tar.xz [all …]
|
/qemu/docs/system/ |
H A D | target-riscv.rst | 1 .. _RISC-V-System-emulator: 3 RISC-V System emulator 6 QEMU can emulate both 32-bit and 64-bit RISC-V CPUs. Use the 7 ``qemu-system-riscv64`` executable to simulate a 64-bit RISC-V machine, 8 ``qemu-system-riscv32`` executable to simulate a 32-bit RISC-V machine. 10 QEMU has generally good support for RISC-V guests. It has support for 12 RISC-V hardware is much more widely varying than x86 hardware. RISC-V 13 CPUs are generally built into "system-on-chip" (SoC) designs created by 23 ---------------------- 25 For QEMU's RISC-V system emulation, you must specify which board [all …]
|
H A D | cpu-hotplug.rst | 5 A complete example of vCPU hotplug (and hot-unplug) using QMP 9 ------------ 14 $ qemu-system-x86_64 -display none -no-user-config -m 2048 \ 15 -nodefaults -monitor stdio -machine pc,accel=kvm,usb=off \ 16 -smp 1,maxcpus=2 -cpu IvyBridge-IBRS \ 17 -qmp unix:/tmp/qmp-sock,server=on,wait=off 19 (2) Run 'qmp-shell' (located in the source tree, under: "scripts/qmp/) 20 to connect to the just-launched QEMU:: 22 $> ./qmp-shell -p -v /tmp/qmp-sock 28 (QEMU) query-hotpluggable-cpus [all …]
|
H A D | replay.rst | 4 Copyright (c) 2010-2022 Institute for System Programming 8 See the COPYING file in the top-level directory. 14 Execution recording writes a non-deterministic events log, which can be later 17 Execution replaying reads the log and replays all non-deterministic events 26 * Supports i386, x86_64, ARM, AArch64, Risc-V, MIPS, MIPS64, S390X, Alpha, 36 .. parsed-literal:: 38 -icount shift=auto,rr=record,rrfile=replay.bin \\ 39 -drive file=disk.qcow2,if=none,snapshot,id=img-direct \\ 40 -drive driver=blkreplay,if=none,image=img-direct,id=img-blkreplay \\ 41 -device ide-hd,drive=img-blkreplay \\ [all …]
|
/qemu/tests/qemu-iotests/ |
H A D | 240.out | 2 {"execute": "blockdev-add", "arguments": {"driver": "null-co", "node-name": "hd0", "read-zeroes": t… 4 {"execute": "object-add", "arguments": {"id": "iothread0", "qom-type": "iothread"}} 6 {"execute": "device_add", "arguments": {"driver": "virtio-scsi", "id": "scsi0", "iothread": "iothre… 8 {"execute": "device_add", "arguments": {"drive": "hd0", "driver": "scsi-hd", "id": "scsi-hd0"}} 10 {"execute": "device_del", "arguments": {"id": "scsi-hd0"}} 12 {"execute": "device_add", "arguments": {"drive": "hd0", "driver": "scsi-hd", "id": "scsi-hd0"}} 14 {"execute": "device_del", "arguments": {"id": "scsi-hd0"}} 16 {"execute": "blockdev-del", "arguments": {"node-name": "hd0"}} 19 {"execute": "blockdev-add", "arguments": {"driver": "null-co", "node-name": "hd0", "read-only": tru… 21 {"execute": "object-add", "arguments": {"id": "iothread0", "qom-type": "iothread"}} [all …]
|
H A D | 040.out | 2 ----------------------------------------------------------------------
|
H A D | 232 | 4 # Test for auto-read-only 51 if ! test -t 0; then 57 ) | $QEMU -nographic -monitor stdio -nodefaults "$@" 69 echo "info block -n" | run_qemu "$@" | grep -e "(file" -e "QEMU_PROG" 76 if [ -n "$TEST_IMG_FILE" ]; then 80 chmod a-w $TEST_IMG 87 echo "=== -drive with read-write image: read-only/auto-read-only combinations ===" 90 run_qemu_info_block -drive driver=file,file="$TEST_IMG",if=none,read-only=on,auto-read-only=off 91 run_qemu_info_block -drive driver=file,file="$TEST_IMG",if=none,read-only=on,auto-read-only=on 92 run_qemu_info_block -drive driver=file,file="$TEST_IMG",if=none,read-only=on [all …]
|
H A D | 051 | 4 # Test command line configuration of block devices and driver-specific options 57 if ! test -t 0; then 63 ) | $QEMU -nographic -monitor stdio -serial none "$@" 79 _make_test_img -b "$TEST_IMG.base" -F $IMGFMT $size 85 run_qemu -drive file="$TEST_IMG",format=qcow2,unknown_opt=,if=none,id=$device_id 86 run_qemu -drive file="$TEST_IMG",format=qcow2,unknown_opt=on,if=none,id=$device_id 87 run_qemu -drive file="$TEST_IMG",format=qcow2,unknown_opt=1234,if=none,id=$device_id 88 run_qemu -drive file="$TEST_IMG",format=qcow2,unknown_opt=foo,if=none,id=$device_id 94 run_qemu -drive file="$TEST_IMG",format=qcow2,file.unknown_opt= 95 run_qemu -drive file="$TEST_IMG",format=qcow2,file.unknown_opt=on [all …]
|
H A D | 041.out | 2 ----------------------------------------------------------------------
|
H A D | 051.pc.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 | 106.out | 4 --- create_mode=off growth_mode=off --- 8 --- create_mode=off growth_mode=falloc --- 12 --- create_mode=off growth_mode=full --- 16 --- create_mode=falloc growth_mode=off --- 20 --- create_mode=falloc growth_mode=falloc --- 24 --- create_mode=falloc growth_mode=full --- 28 --- create_mode=full growth_mode=off --- 32 --- create_mode=full growth_mode=falloc --- 36 --- create_mode=full growth_mode=full --- 42 --- growth_mode=falloc --- [all …]
|
H A D | 295.out | 1 {"execute": "job-dismiss", "arguments": {"id": "job_add_key"}} 3 {"execute": "job-dismiss", "arguments": {"id": "job_add_key"}} 5 {"execute": "job-dismiss", "arguments": {"id": "job_erase_key"}} 7 .{"execute": "job-dismiss", "arguments": {"id": "job_add_key"}} 9 {"execute": "job-dismiss", "arguments": {"id": "job_erase_key"}} 12 {"execute": "job-dismiss", "arguments": {"id": "job_add_key"}} 14 {"execute": "job-dismiss", "arguments": {"id": "job_add_key"}} 16 .{"execute": "job-dismiss", "arguments": {"id": "job_add_key"}} 18 {"execute": "job-dismiss", "arguments": {"id": "job_add_key"}} 20 Job failed: Refusing to overwrite active keyslot 2 - please erase it first [all …]
|
/qemu/docs/devel/ |
H A D | tcg-ops.rst | 1 .. _tcg-ops-ref: 43 a sequence of basic blocks connected by the fall-through paths of 60 .. code-block:: none 62 add_i32 t0, t1, t2 /* (t0 <- t1 + t2) */ 109 A 32-bit integer. 113 A 64-bit integer. For 32-bit hosts, such variables are split into a pair 116 host-endian representation. 131 A 128-bit integer. For all hosts, such variables are split into a number 134 host-endian representation. 138 A 64-bit vector. This type is valid only if the TCG target [all …]
|
H A D | zoned-storage.rst | 2 zoned-storage 10 https://zonedstorage.io/docs/introduction/zoned-storage 13 ------------------------------------- 15 - BLK_Z_HM: The host-managed zoned model only allows sequential writes access 16 to zones. It supports ZBD-specific I/O commands that can be used by a host to 18 - BLK_Z_HA: The host-aware zoned model allows random write operations in 20 - BLK_Z_NONE: The non-zoned model has no zones support. It includes both 21 regular and drive-managed ZBD devices. ZBD-specific I/O commands are not 27 a BlockDriverState graph(for example, raw format on top of file-posix). The 29 the way up to the BlockBackend. If the zoned storage model in file-posix is [all …]
|
H A D | multi-thread-tcg.rst | 2 Copyright (c) 2015-2020 Linaro Ltd. 5 later. See the COPYING file in the top-level directory. 10 Multi-threaded TCG 13 This document outlines the design for multi-threaded TCG (a.k.a MTTCG) 14 system-mode emulation. user-mode emulation has always mirrored the 17 linux-user emulation. 19 The original system-mode TCG implementation was single threaded and 20 dealt with multiple CPUs with simple round-robin scheduling. This 22 being emulated gained additional cores and per-core performance gains 29 user-space thread. This is enabled by default for all FE/BE [all …]
|
H A D | rcu.rst | 1 Using RCU (Read-Copy-Update) for synchronization 4 Read-copy update (RCU) is a synchronization mechanism that is used to 5 protect read-mostly data structures. RCU is very efficient and scalable 6 on the read side (it is wait-free), and thus can make the read paths 10 thus it is not used alone. Typically, the write-side will use a lock to 17 RCU is fundamentally a "wait-to-finish" mechanism. The read side marks 26 for example, reader-writer locks. It is so much more scalable that 43 ------------------- ------------------------ ------------------- 61 ------- 67 entering an RCU read-side critical section. [all …]
|
/qemu/linux-user/xtensa/ |
H A D | cpu_loop.c | 4 * Copyright (c) 2003-2008 Fabrice Bellard 22 #include "user-internals.h" 24 #include "signal-common.h" 29 env->pc = env->sregs[EPC1]; in xtensa_rfw() 34 env->sregs[WINDOW_START] |= (1 << env->sregs[WINDOW_BASE]); in xtensa_rfwu() 40 env->sregs[WINDOW_START] &= ~(1 << env->sregs[WINDOW_BASE]); in xtensa_rfwo() 46 put_user_ual(env->regs[0], env->regs[5] - 16); in xtensa_overflow4() 47 put_user_ual(env->regs[1], env->regs[5] - 12); in xtensa_overflow4() 48 put_user_ual(env->regs[2], env->regs[5] - 8); in xtensa_overflow4() 49 put_user_ual(env->regs[3], env->regs[5] - 4); in xtensa_overflow4() [all …]
|
/qemu/tests/qtest/ |
H A D | bios-tables-test.c | 10 * See the COPYING file in the top-level directory. 17 * 2. list any changed files in tests/qtest/bios-tables-test-allowed-diff.h 20 * Contributor or ACPI Maintainer (steps 4-7 need to be redone to resolve conflicts 23 * After 1-3 above tests will pass but ignore differences with the expected files. 24 * You will also notice that tests/qtest/bios-tables-test-allowed-diff.h lists 31 * output. If not - disassemble them yourself in any way you like. 32 * Look at the differences - make sure they make sense and match what the 38 * $(SRC_PATH)/tests/data/acpi/rebuild-expected-aml.sh 48 * tests/qtest/bios-tables-test-allowed-diff.h is empty - this will ensure 52 * - patch 1: list changed files in tests/qtest/bios-tables-test-allowed-diff.h. [all …]
|
/qemu/tests/migration-stress/guestperf/ |
H A D | comparison.py | 30 Comparison("pause-iters", scenarios = [ 31 Scenario("pause-iters-0", 33 Scenario("pause-iters-1", 35 Scenario("pause-iters-5", 37 Scenario("pause-iters-20", 42 # Looking at use of post-copy in relation to bandwidth 44 Comparison("post-copy-bandwidth", scenarios = [ 45 Scenario("post-copy-bw-100mbs", 47 Scenario("post-copy-bw-300mbs", 49 Scenario("post-copy-bw-1gbs", [all …]
|
/qemu/tests/docker/ |
H A D | Makefile.include | 3 .PHONY: docker docker-help docker-test docker-clean docker-image docker-qemu-src 9 HOST_ARCH = $(shell uname -m) 10 USER = $(if $(NOUSER),,$(shell id -un)) 11 UID = $(if $(NOUSER),,$(shell id -u)) 15 DOCKER_DEFAULT_REGISTRY := registry.gitlab.com/qemu-project/qemu 19 RUNC ?= $(if $(shell command -v docker), docker, podman) 20 DOCKER_SCRIPT=$(SRC_PATH)/tests/docker/docker.py --engine $(RUNC) 22 CUR_TIME := $(shell date +%Y-%m-%d-%H.%M.%S.$$$$) 23 DOCKER_SRC_COPY := $(BUILD_DIR)/docker-src.$(CUR_TIME) 29 $(call quiet-command, cp "$(SRC_ARCHIVE)" $@/qemu.tar, \ [all …]
|
/qemu/dump/ |
H A D | dump.c | 10 * See the COPYING file in the top-level directory. 24 #include "qapi/qapi-commands-dump.h" 25 #include "qapi/qapi-events-dump.h" 27 #include "qemu/error-report.h" 28 #include "qemu/main-loop.h" 40 #include <snappy-c.h> 57 return s->dump_info.d_class == ELFCLASS64; in dump_is_64bit() 62 return s->filter_area_length > 0; in dump_has_filter() 67 if (s->dump_info.d_endian == ELFDATA2LSB) { in cpu_to_dump16() 78 if (s->dump_info.d_endian == ELFDATA2LSB) { in cpu_to_dump32() [all …]
|
/qemu/docs/system/s390x/ |
H A D | vfio-ap.rst | 7 ------------ 19 ------------------------- 51 An AP queue is the means by which an AP command-request message is sent to an 57 which the AP command-request message is to be sent for processing. 63 * NQAP: to enqueue an AP command-request message to a queue 64 * DQAP: to dequeue an AP command-reply message from a queue 73 ---------------------------------------------- 84 an APID from 0-255. If a bit is set, the corresponding adapter is valid for 89 corresponds to an AP queue index (APQI) from 0-255. If a bit is set, the 94 changed by an AP command-request message sent to a usage domain from the [all …]
|
/qemu/fpu/ |
H A D | softfloat.c | 5 * IEC/IEEE Floating-point Arithmetic Package. Those parts of the code (and 9 * the SoftFloat-2a license 11 * GPL-v2-or-later 14 * taken to be licensed under the Softfloat-2a license unless specifically 20 This C source file is part of the SoftFloat IEC/IEEE Floating-point 26 National Science Foundation under grant MIP-9311980. The original version 27 of this code was written as part of a project to build a fixed-point vector 79 * version 2 or later. See the COPYING file in the top-level directory. 89 /*---------------------------------------------------------------------------- 90 | Primitive arithmetic functions, including multi-word arithmetic, and [all …]
|
/qemu/docs/interop/ |
H A D | qemu-ga.rst | 1 .. _qemu-ga: 7 -------- 9 **qemu-ga** [*OPTIONS*] 12 ----------- 18 - get information from the guest 19 - set the guest's system time 20 - read/write a file 21 - sync and freeze the filesystems 22 - suspend the guest 23 - reconfigure guest local processors [all …]
|
/qemu/hw/scsi/ |
H A D | mptendian.c | 37 sge->FlagsLength = le32_to_cpu(sge->FlagsLength); in mptsas_fix_sgentry_endianness() 38 if (sge->FlagsLength & MPI_SGE_FLAGS_64_BIT_ADDRESSING) { in mptsas_fix_sgentry_endianness() 39 sge->u.Address64 = le64_to_cpu(sge->u.Address64); in mptsas_fix_sgentry_endianness() 41 sge->u.Address32 = le32_to_cpu(sge->u.Address32); in mptsas_fix_sgentry_endianness() 47 if (sge->FlagsLength & MPI_SGE_FLAGS_64_BIT_ADDRESSING) { in mptsas_fix_sgentry_endianness_reply() 48 sge->u.Address64 = cpu_to_le64(sge->u.Address64); in mptsas_fix_sgentry_endianness_reply() 50 sge->u.Address32 = cpu_to_le32(sge->u.Address32); in mptsas_fix_sgentry_endianness_reply() 52 sge->FlagsLength = cpu_to_le32(sge->FlagsLength); in mptsas_fix_sgentry_endianness_reply() 57 req->MsgContext = le32_to_cpu(req->MsgContext); in mptsas_fix_scsi_io_endianness() 58 req->Control = le32_to_cpu(req->Control); in mptsas_fix_scsi_io_endianness() [all …]
|