/qemu/.gitlab-ci.d/ |
H A D | crossbuild-template.yml | 7 - ccache 12 - source scripts/ci/gitlab-ci-section 13 - section_start setup "Pre-script setup" 14 - JOBS=$(expr $(nproc) + 1) 15 - cat /packages.txt 16 - section_end setup 18 - export CCACHE_BASEDIR="$(pwd)" 19 - export CCACHE_DIR="$CCACHE_BASEDIR/ccache" 20 - export CCACHE_MAXSIZE="500M" 21 - export PATH="$CCACHE_WRAPPERSDIR:$PATH" [all …]
|
H A D | buildtest-template.yml | 7 - ccache 11 - source scripts/ci/gitlab-ci-section 12 - section_start setup "Pre-script setup" 13 - JOBS=$(expr $(nproc) + 1) 14 - cat /packages.txt 15 - section_end setup 17 - export CCACHE_BASEDIR="$(pwd)" 18 - export CCACHE_DIR="$CCACHE_BASEDIR/ccache" 19 - export CCACHE_MAXSIZE="500M" 20 - export PATH="$CCACHE_WRAPPERSDIR:$PATH" [all …]
|
/qemu/scripts/ |
H A D | meson-buildoptions.py | 28 # Options with nonstandard names (e.g. --with/--without) or OS-dependent 40 "coroutine_backend": "with-coroutine", 41 "debug": "debug-info", 42 "malloc": "enable-malloc", 43 "pkgversion": "with-pkgversion", 45 "qemu_suffix": "with-suffix", 46 "trace_backends": "enable-trace-backends", 47 "trace_file": "with-trace-file", 53 "werror", 58 # via -D, because it's a mix of CFLAGS and --extra-cflags); for specific [all …]
|
H A D | meson-buildoptions.sh | 1 # This file is generated by meson-buildoptions.py, do not edit! 3 printf "%s\n" ' --audio-drv-list=CHOICES Set audio driver list [default] (choices: alsa/co' 6 printf "%s\n" ' --bindir=VALUE Executable directory [bin]' 7 printf "%s\n" ' --block-drv-ro-whitelist=VALUE' 8 printf "%s\n" ' set block driver read-only whitelist (by default' 9 printf "%s\n" ' affects only QEMU, not tools like qemu-img)' 10 printf "%s\n" ' --block-drv-rw-whitelist=VALUE' 11 printf "%s\n" ' set block driver read-write whitelist (by default' 12 printf "%s\n" ' affects only QEMU, not tools like qemu-img)' 13 printf "%s\n" ' --datadir=VALUE Data file directory [share]' [all …]
|
H A D | kernel-doc | 2 # SPDX-License-Identifier: GPL-2.0-only 10 ## Copyright (C) 2005-2012 Randy Dunlap ## 19 # 18/01/2001 - Cleanups 22 # -- huggie@earth.li 24 # 27/06/2001 - Allowed whitespace after initial "/**" and 26 # -- Christian Kreibich <ck@whoop.org> 29 # - add perldoc documentation 30 # - Look more closely at some of the scarier bits :) 32 # 26/05/2001 - Support for separate source and object trees. 36 # 23/09/2001 - Added support for typedefs, structs, enums and unions [all …]
|
/qemu/scripts/oss-fuzz/ |
H A D | build.sh | 1 #!/bin/bash -e 3 # OSS-Fuzz build script. See: 4 # https://google.github.io/oss-fuzz/getting-started/new-project-guide/#buildsh 7 # https://github.com/google/oss-fuzz/blob/master/projects/qemu/Dockerfiles 10 # the COPYING file in the top-level directory. 17 # make -j$(nproc) all 21 # $CXX $CXXFLAGS -std=c++11 -Iinclude \ 22 # /path/to/name_of_fuzzer.cc -o $OUT/name_of_fuzzer \ 23 # -fsanitize=fuzzer /path/to/library.a 30 OSS_FUZZ_BUILD_DIR="./build-oss-fuzz/" [all …]
|
/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/.gitlab-ci.d/cirrus/ |
H A D | build.yml | 22 - @UPDATE_COMMAND@ 23 - @INSTALL_COMMAND@ @PKGS@ 24 …- if test -n "@PYPI_PKGS@" ; then PYLIB=$(@PYTHON@ -c 'import sysconfig; print(sysconfig.get_path(… 26 - git clone --depth 100 "$CI_REPOSITORY_URL" . 27 - git fetch origin "$CI_COMMIT_REF_NAME" 28 - git reset --hard "$CI_COMMIT_SHA" 30 - mkdir build 31 - cd build 32 - ../configure --enable-werror $CONFIGURE_ARGS 33 || { cat config.log meson-logs/meson-log.txt; exit 1; } [all …]
|
/qemu/tests/docker/ |
H A D | test-tsan | 1 #!/bin/bash -e 10 # Originally based on test-quick from Fam Zheng <famz@redhat.com> 14 # the top-level directory. 21 tsan_log_dir="/tmp/qemu-test/build/tsan" 22 mkdir -p $tsan_log_dir > /dev/null || true 23 EXTRA_CONFIGURE_OPTS="${EXTRA_CONFIGURE_OPTS} --enable-tsan \ 24 --cc=clang --cxx=clang++ \ 25 --disable-werror --extra-cflags=-O0" 31 tsan_opts="suppressions=/tmp/qemu-test/src/tests/tsan/suppressions.tsan\ 40 TARGET_LIST=${TARGET_LIST:-$DEF_TARGET_LIST} \
|
H A D | common.rc | 12 # the top-level directory. 16 # "none" to allow for other options like --disable-tcg to restrict the 21 DEF_TARGET_LIST=${DEF_TARGET_LIST:-"x86_64-softmmu,aarch64-softmmu"} 30 if test -f "$d/$c" 45 config_opts="--enable-werror \ 46 ${TARGET_LIST:+--target-list=${TARGET_LIST}} \ 47 --prefix=$INSTALL_DIR \ 66 INVOCATION="${TEST_COMMAND:-make $MAKEFLAGS check}" 90 rm -rf $PWD/=destdir
|
/qemu/target/loongarch/ |
H A D | README | 1 - Introduction 7 …https://github.com/loongson/LoongArch-Documentation/releases/download/2021.08.17/LoongArch-Vol1-v1… 9 …We can get the latest loongarch documents at https://github.com/loongson/LoongArch-Documentation/t… 12 - System emulation 16 - Linux-user emulation 18 …We already support Linux user emulation. We can use LoongArch cross-tools to build LoongArch execu… 19 and We can also use qemu-loongarch64 to run LoongArch executables. 21 1. Config cross-tools env. 27 …./configure --static --prefix=/usr --disable-werror --target-list="loongarch64-linux-user" --en… 31 make && make check-tcg [all …]
|
/qemu/tests/tcg/ |
H A D | Makefile.target | 1 # -*- Mode: makefile -*- 7 # ones we have cross-compilers for or docker images with 8 # cross-compilers. 11 # cross-compilers don't always have a large amount of libraries 17 # CC - the C compiler command 18 # EXTRA_CFLAGS - any extra CFLAGS 19 # BUILD_STATIC - are we building static binaries 23 # cross-compiler can only build dynamic libraries the user might need 27 # We also accept SPEED=slow to enable slower running tests 29 # We also expect to be in the tests build dir for the FOO-(linux-user|softmmu). [all …]
|
/qemu/docs/sphinx/ |
H A D | kerneldoc.py | 1 # coding=utf-8 51 """Extract kernel-doc comments from the specified file""" 64 cmd = env.config.kerneldoc_bin + ['-rst', '-enable-lineno'] 66 # Pass the version string to kernel-doc, as it needs to use a different 69 cmd += ['-sphinx-version', sphinx.__version__] 71 # Pass through the warnings-as-errors flag 73 cmd += ['-Werror'] 81 tab_width = self.options.get('tab-width', self.state.document.settings.tab_width) 85 cmd += ['-export'] 88 cmd += ['-internal'] [all …]
|
/qemu/ |
H A D | configure | 14 source_path=$(cd "$(dirname -- "$0")"; pwd) 16 if test "$PWD" -ef "$source_path" 20 MARKER=build/auto-created-by-configure 22 if test -e build 24 if test -f $MARKER 26 rm -rf build 36 echo "your source directory, or try doing an out-of-tree build." 41 # This file is auto-generated by configure to support in-source tree 46 @$(MAKE) -C build -f Makefile $(MAKECMDGOALS) 48 test -e build/auto-created-by-configure ; \ [all …]
|
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 …]
|
H A D | meson.build | 15 meson.add_postconf_script(find_program('scripts/symlink-install-tree.py')) 28 config_host = keyval.load(meson.current_build_dir() / 'config-host.mak') 35 tmpdir = meson.current_build_dir() / 'meson-private/temp' 66 have_linux_user = have_linux_user or target.endswith('linux-user') 67 have_bsd_user = have_bsd_user or target.endswith('bsd-user') 68 have_system = have_system or target.endswith('-softmmu') 113 …dgen.version() + ' is unsupported. You can install a new version with "cargo install bindgen-cli"') 120 message('To use Rust you can install a new version with "cargo install bindgen-cli"') 128 '--rustc-version', rustc.version(), 129 '--workspace', meson.project_source_root() / 'rust'] [all …]
|
H A D | qemu-options.hx | 14 "-h or -help display this help and exit\n", QEMU_ARCH_ALL) 16 ``-h`` 21 "-version display version information and exit\n", QEMU_ARCH_ALL) 23 ``-version`` 28 "-machine [type=]name[,prop[=value][,...]]\n" 29 " selects emulated machine ('-machine help' for list)\n" 33 " dump-guest-core=on|off include guest memory in a core dump (default=on)\n" 34 " mem-merge=on|off controls memory merge support (default: on)\n" 35 " aes-key-wrap=on|off controls support for AES key wrapping (default=on)\n" 36 " dea-key-wrap=on|off controls support for DEA key wrapping (default=on)\n" [all …]
|
H A D | hmp-commands.hx | 27 .help = "commit changes to the disk images (if -snapshot is used) or backing files", 33 Commit changes to the disk images (if -snapshot is used) or backing files. 70 available during the preconfig state (i.e. when the --preconfig command 122 .args_type = "force:-f,device:B", 123 .params = "[-f] device", 124 .help = "stop an active background block operation (use -f" 181 .args_type = "force:-f,device:B", 182 .params = "[-f] device", 183 .help = "eject a removable medium (use -f to force it)", 188 ``eject [-f]`` *device* [all …]
|
/qemu/util/ |
H A D | qemu-thread-posix.c | 10 * See the COPYING file in the top-level directory. 17 #include "qemu-thread-common.h" 27 void qemu_thread_naming(bool enable) in qemu_thread_naming() argument 29 name_threads = enable; in qemu_thread_naming() 35 if (enable) { in qemu_thread_naming() 59 ts->tv_nsec += (ms % 1000) * 1000000; in compute_abs_deadline() 60 ts->tv_sec += ms / 1000; in compute_abs_deadline() 61 if (ts->tv_nsec >= 1000000000) { in compute_abs_deadline() 62 ts->tv_sec++; in compute_abs_deadline() 63 ts->tv_nsec -= 1000000000; in compute_abs_deadline() [all …]
|
/qemu/tests/qtest/ |
H A D | ahci-test.c | 29 #include "libqos/libqos-pc.h" 31 #include "libqos/pci-pc.h" 34 #include "qemu/host-utils.h" 72 while (bytes--) { in string_bswap16() 88 ahci_fingerprint = qpci_config_readl(ahci->dev, PCI_VENDOR_ID); in verify_state() 89 g_assert_cmphex(ahci_fingerprint, ==, ahci->fingerprint); in verify_state() 92 if (!ahci->enabled) { in verify_state() 96 hba_base = (uint64_t)qpci_config_readl(ahci->dev, PCI_BASE_ADDRESS_5); in verify_state() 99 g_assert_cmphex(ahci_rreg(ahci, AHCI_CAP), ==, ahci->cap); in verify_state() 100 g_assert_cmphex(ahci_rreg(ahci, AHCI_CAP2), ==, ahci->cap2); in verify_state() [all …]
|
/qemu/docs/ |
H A D | qdev-device-use.txt | 1 = How to convert to -device & friends = 7 -device parameter bus. 10 where this address can be configured, devices provide a bus-specific 16 SCSI scsi-id %u 19 virtio-serial-bus nr %u 20 ccid-bus slot %u 23 Example: device i440FX-pcihost is on the root bus, and provides a PCI 24 bus named pci.0. To put a FOO device into its slot 4, use -device 25 FOO,bus=/i440FX-pcihost/pci.0,addr=4. The abbreviated form bus=pci.0 46 -drive, and guest device(s) with -device. [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/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 …]
|
/qemu/tcg/ |
H A D | tcg.c | 30 #include "qemu/error-report.h" 32 #include "qemu/host-utils.h" 33 #include "qemu/qemu-print.h" 38 #include "exec/translation-block.h" 39 #include "exec/tlb-common.h" 41 #include "tcg/tcg-op-common.h" 56 #include "tcg/tcg-ldst.h" 57 #include "tcg/tcg-temp-internal.h" 58 #include "tcg-internal.h" 60 #include "tcg-has.h" [all …]
|