/qemu/scripts/simplebench/ |
H A D | simplebench.py | 33 """Benchmark one test-case 35 test_func -- benchmarking function with prototype 43 test_env -- test environment - opaque first argument for test_func 44 test_case -- test case - opaque second argument for test_func 45 count -- how many times to call test_func, to calculate average 46 initial_run -- do initial run of test_func, which don't get into result 47 slow_limit -- stop at slow run (that exceedes the slow_limit by seconds). 49 drop_caches -- drop caches before each run 52 'runs': list of test_func results 58 'n-failed': number of failed runs (exists only if at least one run [all …]
|
/qemu/include/system/ |
H A D | block-backend-common.h | 4 * Copyright (C) 2014-2016 Red Hat, Inc. 10 * or later. See the COPYING.LIB file in the top-level directory. 17 #include "block/throttle-groups.h" 34 * See include/block/block-global-state.h for more information about 39 * Runs when virtual media changed (monitor commands eject, change) 47 * Runs when an eject request is issued from the monitor, the tray 63 * Runs when the backend receives a drain request. 67 * Runs when the backend's last drain request ends. 76 * I/O API functions. These functions are thread-safe. 78 * See include/block/block-io.h for more information about [all …]
|
/qemu/hw/nvme/ |
H A D | subsys.c | 2 * QEMU NVM Express Subsystem: nvme-subsys 19 NvmeSubsystem *subsys = n->subsys; in nvme_subsys_reserve_cntlids() 20 NvmeSecCtrlEntry *list = n->sec_ctrl_list; in nvme_subsys_reserve_cntlids() 24 for (i = start; i < ARRAY_SIZE(subsys->ctrls) && cnt < num; i++) { in nvme_subsys_reserve_cntlids() 25 if (!subsys->ctrls[i]) { in nvme_subsys_reserve_cntlids() 27 sctrl->scid = cpu_to_le16(i); in nvme_subsys_reserve_cntlids() 28 subsys->ctrls[i] = SUBSYS_SLOT_RSVD; in nvme_subsys_reserve_cntlids() 38 NvmeSubsystem *subsys = n->subsys; in nvme_subsys_unreserve_cntlids() 39 NvmeSecCtrlEntry *list = n->sec_ctrl_list; in nvme_subsys_unreserve_cntlids() 43 for (i = 0; i < n->params.sriov_max_vfs; i++) { in nvme_subsys_unreserve_cntlids() [all …]
|
/qemu/tests/qtest/ |
H A D | npcm7xx_rng-test.c | 21 #include "libqtest-single.h" 77 while (retries-- > 0) { in rng_wait_ready() 87 * Perform a frequency (monobit) test, as defined by NIST SP 800-22, on the 88 * sequence in buf and return the P-value. This represents the probability of a 104 * Each 1 counts as 1, each 0 counts as -1. in calc_monobit_p() 105 * s = cp - (8 - cp) = 2 * cp - 8 in calc_monobit_p() 107 sn += 2 * ctpop8(buf[i]) - 8; in calc_monobit_p() 116 * Perform a runs test, as defined by NIST SP 800-22, and return the P-value. 118 * number of runs (i.e. uninterrupted sequences of identical bits) as the 136 for (k = 0; k < nr_bits - 1; k++) { in calc_runs_p() [all …]
|
/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 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 27 "${fuzzer}" -runs=1 -seed=1 || exit 1 ;
|
/qemu/ui/ |
H A D | vnc-enc-zrle.c.inc | 2 * QEMU VNC display driver: Zlib Run-length Encoding (ZRLE) 11 * See the COPYING file in the top-level directory. 69 #include "vnc-enc-zywrle-template.c" 82 th = MIN(VNC_ZRLE_TILE_HEIGHT, y + h - ty); 88 tw = MIN(VNC_ZRLE_TILE_WIDTH, x + w - tx); 99 VncPalette *palette = &vs->zrle->palette; 101 int runs = 0; 111 *end = ~*(end-1); /* one past the end is different so the while loop ends */ 122 runs++; 138 runs, single_pixels, zywrle_level, [all …]
|
H A D | vnc-enc-zrle.c | 2 * QEMU VNC display driver: Zlib Run-length Encoding (ZRLE) 31 #include "vnc-enc-zrle.h" 40 buffer_reset(&vs->zrle->zrle); in vnc_zrle_start() 43 vs->zrle->tmp = vs->output; in vnc_zrle_start() 44 vs->output = vs->zrle->zrle; in vnc_zrle_start() 50 vs->zrle->zrle = vs->output; in vnc_zrle_stop() 51 vs->output = vs->zrle->tmp; in vnc_zrle_stop() 59 buffer_reset(&vs->zrle->fb); in zrle_convert_fb() 60 buffer_reserve(&vs->zrle->fb, w * h * bpp + bpp); in zrle_convert_fb() 62 tmp = vs->output; in zrle_convert_fb() [all …]
|
/qemu/docs/system/arm/ |
H A D | fby35.rst | 4 Facebook has a series of multi-node compute server designs named 6 …semite v3 <https://www.opencompute.org/documents/ocp-yosemite-v3-platform-design-specification-1v1… 15 …o a chassis. See `here <https://www.opencompute.org/products-chiplets/237/wiwynn-yosemite-v3-serve… 19 runs `OpenBMC <https://github.com/facebook/openbmc>`__, and the BIC runs 24 "fby35" machine recipe from OpenBMC, and the "yv35-cl" target from OpenBIC. 27 .. code-block:: bash 29 $ wget https://github.com/facebook/openbmc/releases/download/openbmc-e2294ff5d31d/fby35.mtd 30 … $ wget https://github.com/peterdelevoryas/OpenBIC/releases/download/oby35-cl-2022.13.01/Y35BCL.elf 38 .. code-block:: bash 40 $ qemu-system-arm -machine fby35 \ [all …]
|
H A D | b-l475e-iot01a.rst | 1 B-L475E-IOT01A IoT Node (``b-l475e-iot01a``) 4 The B-L475E-IOT01A IoT Node uses the STM32L475VG SoC which is based on 5 ARM Cortex-M4F core. It is part of STMicroelectronics 7 ultra-low power series. The STM32L4x5 chip runs at up to 80 MHz and 8 integrates 128 KiB of SRAM and up to 1MiB of Flash. The B-L475E-IOT01A board 15 Currently B-L475E-IOT01A machines support the following devices: 17 - Cortex-M4F based STM32L4x5 SoC 18 - STM32L4x5 EXTI (Extended interrupts and events controller) 19 - STM32L4x5 SYSCFG (System configuration controller) 20 - STM32L4x5 RCC (Reset and clock control) [all …]
|
/qemu/include/io/ |
H A D | channel-tls.h | 29 #define TYPE_QIO_CHANNEL_TLS "qio-channel-tls" 58 * @errp: pointer to a NULL-initialized error object 71 * @errp: pointer to a NULL-initialized error object 73 * Create a new TLS channel that runs the server side of 76 * is non-NULL, then the client will have to provide 101 * @errp: pointer to a NULL-initialized error object 103 * Create a new TLS channel that runs the client side of
|
/qemu/include/migration/ |
H A D | register.h | 10 * the COPYING file in the top-level directory. 17 #include "hw/vmstate-if.h" 127 /* This runs both outside and inside the BQL. */ 157 * For example, it is needed for only-postcopy-states, which needs 168 /* This runs outside the BQL in the migration case, and 190 /* This runs outside the BQL! */ 223 * (block-dirty-bitmap) 244 * (block-dirty-bitmap)
|
/qemu/.github/workflows/ |
H A D | lockdown.yml | 1 # Configuration for Repo Lockdown - https://github.com/dessant/repo-lockdown 10 pull-requests: write 14 runs-on: ubuntu-latest 16 - uses: dessant/repo-lockdown@v2 18 pr-comment: | 21 This repository is a read-only mirror of the project's repostories hosted 22 on https://gitlab.com/qemu-project/qemu.git. 29 lock-pr: true 30 close-pr: true
|
/qemu/tests/tcg/multiarch/ |
H A D | check-plugin-output.sh | 3 # This script runs a given executable using qemu, and compare its standard 7 set -euo pipefail 22 [ $# -eq 3 ] || die "usage: qemu_bin exe plugin_out_file"
|
/qemu/tests/tcg/multiarch/gdbstub/ |
H A D | test-qxfer-siginfo-read.py | 5 # The test runs a binary that causes a SIGSEGV and then looks for additional 13 # This is launched via tests/guest-debug/run-test.py
|
H A D | test-proc-mappings.py | 3 This runs as a sourced script (via -x, via run-test.py)."""
|
H A D | prot-none.py | 3 This runs as a sourced script (via -x, via run-test.py). 5 SPDX-License-Identifier: GPL-2.0-or-later
|
/qemu/tests/functional/ |
H A D | test_arm_microbit.py | 3 # SPDX-License-Identifier: GPL-2.0-or-later 7 # A functional test that runs MicroPython on the arm microbit machine. 15 ASSET_MICRO = Asset('https://ozlabs.org/~joel/microbit-micropython.hex', 23 self.vm.add_args('-device', f'loader,file={micropython}')
|
/qemu/docs/devel/ |
H A D | multiple-iothreads.rst | 5 Copyright (c) 2014-2017 Red Hat Inc. 8 the COPYING file in the top-level directory. 11 This document explains the ``IOThread`` feature and how to write code that runs 15 --------------------------------- 16 QEMU is an event-driven program that can do several things at once using an 21 The default event loop is called the main loop (see ``main-loop.c``). It is 23 ``-object iothread,id=my-iothread``. 30 ------------------------------ 39 QEMU's code historically was not thread-safe. 45 The experimental ``virtio-blk`` data-plane implementation has been benchmarked and [all …]
|
H A D | build-system.rst | 7 system has two stages; first the developer runs the "configure" script 14 - build artifacts outside of QEMU source tree entirely:: 22 - build artifacts in a subdir of QEMU source tree:: 38 - detect the host architecture 40 - list the targets for which to build emulators; the list of 43 - find the compilers (native and cross) used to build executables, 45 fragments (``config-host.mak``) or a Meson machine file 46 (``config-meson.cross``) 48 - create a virtual environment in which all Python code runs during 51 - invoke Meson in the virtual environment, to perform the actual [all …]
|
/qemu/docs/system/i386/ |
H A D | tdx.rst | 5 Virtual Machine Extensions (VMX) and Multi-Key Total Memory Encryption (MKTME) 6 with a new kind of virtual machine guest called a Trust Domain (TD). A TD runs 12 ------------- 29 device and it actually works as RAM. "-bios" option is chosen to load TDVF. 32 command line to specify and load TDVF is ``-bios OVMF.fd`` 35 --------------------- 37 Unlike non-TDX VM, the CPU features (enumerated by CPU or MSR) of a TD are not 43 - Attributes: 44 - PKS (bit 30) controls whether Supervisor Protection Keys is exposed to TD, 46 - PERFMON (bit 63) controls whether PMU is exposed to TD. [all …]
|
/qemu/tests/tcg/s390x/gdbstub/ |
H A D | test-svc.py | 1 """Test single-stepping SVC. 3 This runs as a sourced script (via -x, via run-test.py)."""
|
/qemu/include/hw/timer/ |
H A D | stellaris-gptm.h | 18 #define TYPE_STELLARIS_GPTM "stellaris-gptm" 26 * + Clock input "clk": the 32-bit countdown timer runs at this speed
|
H A D | sse-timer.h | 14 * the Arm SSE-123 Example Subsystem Technical Reference Manual: 19 * TYPE_SSE_COUNTER timestamp counter device this timer runs off 30 #include "hw/timer/sse-counter.h" 32 #define TYPE_SSE_TIMER "sse-timer"
|
/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 -------------------- 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 \ 29 --enable-fuzzing --enable-asan --enable-ubsan 33 make qemu-fuzz-i386 [all …]
|
/qemu/bsd-user/i386/ |
H A D | target_arch_thread.h | 33 regs->esp = infop->start_stack; in target_thread_init() 34 regs->eip = infop->entry; in target_thread_init() 37 * SVR4/i386 ABI (pages 3-31, 3-32) says that when the program starts %edx in target_thread_init() 41 * runs. in target_thread_init() 45 regs->edx = 0; in target_thread_init()
|