/qemu/.gitlab-ci.d/ |
H A D | buildtest.yml | 2 - local: '/.gitlab-ci.d/buildtest-template.yml' 4 build-system-alpine: 6 - .native_build_job_template 7 - .native_build_artifact_template 9 - job: amd64-alpine-container 12 TARGETS: avr-softmmu loongarch64-softmmu mips64-softmmu mipsel-softmmu 13 MAKE_CHECK_ARGS: check-build 14 CONFIGURE_ARGS: --enable-docs --enable-trace-backends=log,simple,syslog 16 check-system-alpine: 19 - job: build-system-alpine [all …]
|
/qemu/ |
H A D | .travis.yml | 5 - gcc 9 # - OS name (currently only linux) 10 # - OS distribution (e.g. "jammy" for Linux) 11 # - Names and values of visible environment variables set in .travis.yml or Settings panel 19 # $ travis encrypt -r "qemu/qemu" "irc.oftc.net#qemu" 23 …- secure: "F7GDRgjuOo5IUyRLqSkmDL7kvdU4UcH3Lm/W2db2JnDHTGCqgEdaYEYKciyCLZ57vOTsTsOgesN8iUT7hNHBd1K… 30 - SRC_DIR=".." 31 - BUILD_DIR="build" 32 - BASE_CONFIG="--disable-docs --disable-tools" 33 - TEST_BUILD_CMD="" [all …]
|
H A D | .patchew.yml | 1 --- 91 {% elif test == "docker-mingw@fedora" or test == "docker-quick@centos8" or test == "asan" %} 94 This series failed the {{ test }} build test. Please find the testing commands and 104 This series failed build test on {{test}} host. Please find the details below. 115 --- 117 Please send your feedback to patchew-devel@redhat.com 126 time make docker-test-debug@fedora TARGET_LIST=x86_64-softmmu J=14 NETWORK=1 127 docker-quick@centos8: 133 time make docker-test-quick@centos8 SHOW_ENV=1 J=14 NETWORK=1 140 git rev-parse base > /dev/null || exit 0 [all …]
|
H A D | configure | 14 source_path=$(cd "$(dirname -- "$0")"; pwd) 16 if test "$PWD" -ef "$source_path" 18 echo "Using './build' as the directory for build output" 20 MARKER=build/auto-created-by-configure 22 if test -e build 24 if test -f $MARKER 26 rm -rf build 28 echo "ERROR: ./build dir already exists and was not previously created by configure" 33 if ! mkdir build || ! touch $MARKER 35 echo "ERROR: Could not create ./build directory. Check the permissions on" [all …]
|
H A D | .gitignore | 2 /build/ 7 .stgit-* 8 .git-submodule-status 9 .clang-format
|
/qemu/tests/docker/ |
H A D | test-fuzz | 1 #!/bin/bash -e 3 # Compile and check with oss-fuzz. 10 # SPDX-License-Identifier: GPL-2.0-or-later 14 requires_binary clang 16 # the build script runs out of $src so we need to copy across 18 cp -a $QEMU_SRC . 20 mkdir build-oss-fuzz 21 export LSAN_OPTIONS=suppressions=scripts/oss-fuzz/lsan_suppressions.txt 22 env CC="clang" CXX="clang++" CFLAGS="-fsanitize=address" ./scripts/oss-fuzz/build.sh 24 for fuzzer in $(find ./build-oss-fuzz/DEST_DIR/ -executable -type f | grep -v slirp); do [all …]
|
H A D | test-tsan | 1 #!/bin/bash -e 3 # This test will use TSan as part of a build and a make check. 10 # Originally based on test-quick from Fam Zheng <famz@redhat.com> 14 # the top-level directory. 20 requires_binary clang 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" [all …]
|
/qemu/.gitlab-ci.d/custom-runners/ |
H A D | ubuntu-22.04-s390x.yml | 1 # All ubuntu-22.04 jobs should run successfully in an environment 2 # setup by the scripts/ci/setup/ubuntu/build-environment.yml task 3 # "Install basic packages to build QEMU on Ubuntu 22.04" 5 ubuntu-22.04-s390x-all-linux: 8 stage: build 10 - ubuntu_22.04 11 - s390x 13 - if: '$CI_PROJECT_NAMESPACE == "qemu-project" && $CI_COMMIT_BRANCH =~ /^staging/' 14 - if: "$S390X_RUNNER_AVAILABLE" 16 - mkdir build [all …]
|
H A D | ubuntu-22.04-aarch64.yml | 1 # All ubuntu-22.04 jobs should run successfully in an environment 2 # setup by the scripts/ci/setup/ubuntu/build-environment.yml task 3 # "Install basic packages to build QEMU on Ubuntu 22.04" 5 ubuntu-22.04-aarch64-all-linux-static: 8 stage: build 10 - ubuntu_22.04 11 - aarch64 13 - if: '$CI_PROJECT_NAMESPACE == "qemu-project" && $CI_COMMIT_BRANCH =~ /^staging/' 14 - if: "$AARCH64_RUNNER_AVAILABLE" 16 - mkdir build [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. 13 # build project 17 # make -j$(nproc) all 19 # build fuzzers 21 # $CXX $CXXFLAGS -std=c++11 -Iinclude \ 22 # /path/to/name_of_fuzzer.cc -o $OUT/name_of_fuzzer \ [all …]
|
/qemu/docs/devel/testing/ |
H A D | fuzzing.rst | 5 This document describes the virtual-device fuzzing infrastructure in QEMU and 9 ------ 16 is an *in-process* fuzzer. For the developer, this means that it is their 17 responsibility to ensure that state is reset between fuzzing-runs. 20 -------------------- 22 To build the fuzzers, install a recent version of clang: 23 Configure with (substitute the clang binaries with the version you installed). 24 Here, enable-asan and enable-ubsan are optional but they allow us to reliably 25 detect bugs such as out-of-bounds accesses, uses-after-free, double-frees 28 CC=clang-8 CXX=clang++-8 /path/to/configure \ [all …]
|
/qemu/scripts/coverity-scan/ |
H A D | coverity-scan.docker | 1 # syntax=docker/dockerfile:1.0.0-experimental 11 # We don't build on top of the fedora.docker file because we don't 15 # The work of actually doing the build is handled by the 16 # run-coverity-scan script. 20 RUN dnf install -y nosync && \ 21 echo -e '#!/bin/sh\n\ 22 if test -d /usr/lib64\n\ 30 nosync dnf update -y && \ 31 nosync dnf install -y \ 32 SDL2-devel \ [all …]
|
/qemu/docs/devel/ |
H A D | control-flow-integrity.rst | 4 Control-Flow Integrity (CFI) 7 This document describes the current control-flow integrity (CFI) mechanism in 12 ------ 16 The type used in QEMU is a forward-edge control-flow integrity that ensures 21 This type of CFI is entirely compiler-based and relies on the compiler knowing 23 As of now, the only compiler that provides support for CFI is Clang. 28 In case of a CFI violation (i.e. call to a non-compatible function) QEMU will 32 ----------------- 34 NOTE: CFI requires the use of link-time optimization. Therefore, when CFI is 37 To build with CFI, the minimum requirement is Clang 6+. If you [all …]
|
H A D | build-environment.rst | 2 .. _setup-build-env: 4 Setup build environment 15 - `Linux <https://wiki.qemu.org/Hosts/Linux>`_ 16 - `MacOS <https://wiki.qemu.org/Hosts/Mac>`_ 17 - `Windows <https://wiki.qemu.org/Hosts/W32>`_ 18 - `BSD <https://wiki.qemu.org/Hosts/BSD>`_ 20 Note: Installing dependencies using your package manager build dependencies may 25 ----- 42 sudo apt update && sudo apt build-dep qemu 45 ----- [all …]
|
/qemu/tests/docker/dockerfiles/ |
H A D | debian-loongarch-cross.docker | 2 # Docker cross-compiler target 5 # https://github.com/loongson/build-tools/releases 7 FROM docker.io/library/debian:11-slim 9 # Duplicate deb line as deb-src 10 RUN cat /etc/apt/sources.list | sed "s/^deb\ /deb-src /" >> /etc/apt/sources.list 13 apt-get update && \ 14 apt-get install -y eatmydata && \ 15 eatmydata apt-get dist-upgrade -y && \ 16 apt build-dep -yy qemu 18 RUN apt-get update && \ [all …]
|
H A D | debian-hexagon-cross.docker | 2 # Docker Hexagon cross-compiler target 5 # needs to be able to build QEMU itself in CI we include its 6 # build-deps. 8 FROM docker.io/library/debian:11-slim 10 # Duplicate deb line as deb-src 11 RUN cat /etc/apt/sources.list | sed "s/^deb\ /deb-src /" >> /etc/apt/sources.list 12 RUN apt-get update && \ 13 DEBIAN_FRONTEND=noninteractive apt install -yy eatmydata && \ 15 # Install common build utilities 16 apt-get install -y --no-install-recommends \ [all …]
|
H A D | debian-legacy-test-cross.docker | 1 # Docker legacy cross-compiler target (tests and minimal qemu) 6 # libc6.1-dev-alpha-cross: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1054412 7 # sh4-linux-user: binaries don't run with bookworm compiler 9 # As we are targeting check-tcg here we only need minimal qemu 12 FROM docker.io/library/debian:11-slim 14 # Duplicate deb line as deb-src 15 RUN cat /etc/apt/sources.list | sed "s/^deb\ /deb-src /" >> /etc/apt/sources.list 18 apt-get update && \ 19 apt-get install -y eatmydata && \ 20 eatmydata apt-get dist-upgrade -y && \ [all …]
|
H A D | debian-all-test-cross.docker | 2 # Docker all cross-compiler target (tests only) 5 # build environments which can cross build QEMU this just installs the 7 # to build and run linux-user tests on GitLab 9 FROM docker.io/library/debian:12-slim 11 # Duplicate deb line as deb-src 12 RUN sed -in "s/Types: deb/Types: deb deb-src/g" /etc/apt/sources.list.d/debian.sources 15 apt-get update && \ 16 apt-get install -y eatmydata && \ 17 eatmydata apt-get dist-upgrade -y && \ 18 apt build-dep -yy qemu [all …]
|
H A D | centos9.docker | 1 # THIS FILE WAS AUTO-GENERATED 3 # $ lcitool dockerfile --layers all centos-stream-9 qemu 5 # https://gitlab.com/libvirt/libvirt-ci 9 RUN dnf distro-sync -y && \ 10 dnf install 'dnf-command(config-manager)' -y && \ 11 dnf config-manager --set-enabled -y crb && \ 12 dnf install -y epel-release && \ 13 dnf install -y epel-next-release && \ 14 dnf install -y \ 15 SDL2-devel \ [all …]
|
H A D | fedora.docker | 1 # THIS FILE WAS AUTO-GENERATED 3 # $ lcitool dockerfile --layers all fedora-40 qemu 5 # https://gitlab.com/libvirt/libvirt-ci 9 RUN dnf install -y nosync && \ 11 if test -d /usr/lib64\n\ 19 nosync dnf update -y && \ 20 nosync dnf install -y \ 21 SDL2-devel \ 22 SDL2_image-devel \ 23 alsa-lib-devel \ [all …]
|
H A D | ubuntu2204.docker | 1 # THIS FILE WAS AUTO-GENERATED 3 # $ lcitool dockerfile --layers all ubuntu-2204 qemu 5 # https://gitlab.com/libvirt/libvirt-ci 10 apt-get update && \ 11 apt-get install -y eatmydata && \ 12 eatmydata apt-get dist-upgrade -y && \ 13 eatmydata apt-get install --no-install-recommends -y \ 19 ca-certificates \ 21 clang \ 25 exuberant-ctags \ [all …]
|
H A D | debian.docker | 1 # THIS FILE WAS AUTO-GENERATED 3 # $ lcitool dockerfile --layers all debian-12 qemu 5 # https://gitlab.com/libvirt/libvirt-ci 7 FROM docker.io/library/debian:12-slim 10 apt-get update && \ 11 apt-get install -y eatmydata && \ 12 eatmydata apt-get dist-upgrade -y && \ 13 eatmydata apt-get install --no-install-recommends -y \ 20 ca-certificates \ 22 clang \ [all …]
|
/qemu/subprojects/libvduse/include/ |
H A D | compiler.h | 4 * See the COPYING file in the top-level directory. 45 const typeof(((type *) 0)->member) *__mptr = (ptr); \ 46 (type *) ((char *) __mptr - offsetof(type, member));}) 49 #define sizeof_field(type, field) sizeof(((type *)0)->field) 61 -offsetof(type, field)]; \ 64 #define typeof_field(type, field) typeof(((type *)0)->field) 65 #define type_check(t1,t2) ((t1*)0 - (t2*)0) 69 int:(x) ? -1 : 1; \ 76 #define QEMU_BUILD_BUG_ON_ZERO(x) (sizeof(QEMU_BUILD_BUG_ON_STRUCT(x)) - \ 88 #define __has_warning(x) 0 /* compatibility with non-clang compilers */ [all …]
|
/qemu/subprojects/libvhost-user/include/ |
H A D | compiler.h | 4 * See the COPYING file in the top-level directory. 45 const typeof(((type *) 0)->member) *__mptr = (ptr); \ 46 (type *) ((char *) __mptr - offsetof(type, member));}) 49 #define sizeof_field(type, field) sizeof(((type *)0)->field) 61 -offsetof(type, field)]; \ 64 #define typeof_field(type, field) typeof(((type *)0)->field) 65 #define type_check(t1,t2) ((t1*)0 - (t2*)0) 69 int:(x) ? -1 : 1; \ 76 #define QEMU_BUILD_BUG_ON_ZERO(x) (sizeof(QEMU_BUILD_BUG_ON_STRUCT(x)) - \ 88 #define __has_warning(x) 0 /* compatibility with non-clang compilers */ [all …]
|
/qemu/include/qemu/ |
H A D | compiler.h | 4 * See the COPYING file in the top-level directory. 45 const typeof(((type *) 0)->member) *__mptr = (ptr); \ 46 (type *) ((char *) __mptr - offsetof(type, member));}) 49 #define sizeof_field(type, field) sizeof(((type *)0)->field) 61 -offsetof(type, field)]; \ 64 #define typeof_field(type, field) typeof(((type *)0)->field) 65 #define type_check(t1,t2) ((t1*)0 - (t2*)0) 69 int:(x) ? -1 : 1; \ 76 #define QEMU_BUILD_BUG_ON_ZERO(x) (sizeof(QEMU_BUILD_BUG_ON_STRUCT(x)) - \ 88 #define __has_warning(x) 0 /* compatibility with non-clang compilers */ [all …]
|