/qemu/ |
H A D | Makefile | 10 # Before including a proper config-host.mak, assume we are in the source tree 15 MAKEFLAGS += -rR 17 SHELL = bash -o pipefail 19 # Usage: $(call quiet-command,command and args,"NAME","args to print") 25 quiet-command-run = $(if $(V),,$(if $2,printf " %-7s %s\n" $2 $3 && ))$1 26 quiet-@ = $(if $(V),,@) 27 quiet-command = $(quiet-@)$(call quiet-command-run,$1,$2,$3) 30 help check-help print-% \ 31 docker docker-% lcitool-refresh vm-help vm-test vm-build-% 34 .PHONY: all clean distclean recurse-all dist msi FORCE [all …]
|
H A D | Kconfig.host | 1 # These are "proxy" symbols used to pass config-host.mak values 5 config LINUX 8 config LIBCBOR 11 config GNUTLS 14 config OPENGL 17 config X11 20 config PIXMAN 23 config SPICE 26 config IVSHMEM 29 config TPM [all …]
|
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 | 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 …]
|
/qemu/tests/data/acpi/ |
H A D | rebuild-expected-aml.sh | 4 # Rebuild expected AML files for acpi unit-test 13 # See the COPYING.LIB file in the top-level directory. 17 if [ ! -e "tests/qtest/bios-tables-test" ]; then 18 echo "Test: bios-tables-test is required! Run make check before this script." 23 if grep TARGET_DIRS= config-host.mak; then 25 if grep TARGET_DIRS= config-host.mak | grep "$arch"-softmmu; 27 qemu_bins="$qemu_bins ./qemu-system-$arch" 31 echo "config-host.mak missing!" 36 if [ -z "$qemu_bins" ]; then 40 --target-list=x86_64-softmmu,aarch64-softmmu,riscv64-softmmu" [all …]
|
/qemu/hw/pci-host/ |
H A D | uninorth.c | 2 * QEMU Uninorth PCI host (for all Mac99 and newer machines) 27 #include "hw/qdev-properties.h" 31 #include "hw/pci-host/uninorth.h" 36 return (irq_num + (pci_dev->devfn >> 3)) & 3; in pci_unin_map_irq() 44 qemu_set_irq(s->irqs[irq_num], level); in pci_unin_set_irq() 63 slot = -1; /* XXX: should this be 0? */ in unin_get_config_reg() 68 /* config pointer */ in unin_get_config_reg() 69 retval = (reg & (0xff - 7)) | (addr & 7); in unin_get_config_reg() 85 pci_data_write(phb->bus, in unin_data_write() 86 unin_get_config_reg(phb->config_reg, addr), in unin_data_write() [all …]
|
H A D | q35.c | 34 #include "hw/pci-host/q35.h" 35 #include "hw/qdev-properties.h" 42 * Q35 host 53 memory_region_add_subregion(s->mch.address_space_io, in q35_host_realize() 54 MCH_HOST_BRIDGE_CONFIG_ADDR, &pci->conf_mem); in q35_host_realize() 57 memory_region_add_subregion(s->mch.address_space_io, in q35_host_realize() 58 MCH_HOST_BRIDGE_CONFIG_DATA, &pci->data_mem); in q35_host_realize() 62 memory_region_set_flush_coalesced(&pci->data_mem); in q35_host_realize() 63 memory_region_add_coalescing(&pci->conf_mem, 0, 4); in q35_host_realize() 65 pci->bus = pci_root_bus_new(DEVICE(s), "pcie.0", in q35_host_realize() [all …]
|
/qemu/docs/devel/ |
H A D | build-system.rst | 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 55 which a same-named Meson option exists; dashes in the command line are [all …]
|
H A D | kconfig.rst | 11 card, even though the boards use different PCI host bridges, and they 13 SCSI adapters. Arm, s390 and x86 boards can all present a virtio-blk 21 QEMU uses a simple domain-specific language to describe the dependencies 36 This domain-specific language is based on the Kconfig language that 41 is instead specified in per-target files under the ``configs/`` 48 -------------------- 59 config ARM_VIRT 68 The ``config`` keyword introduces a new configuration element. In the example 78 include it for clarity and future-proofing. After ``bool`` the following 93 config FOO [all …]
|
/qemu/net/ |
H A D | slirp.c | 4 * Copyright (c) 2003-2008 Fabrice Bellard 39 #include "qemu/error-report.h" 42 #include "chardev/char-fe.h" 50 #include "migration/qemu-file-types.h" 59 return -1; in get_str_sep() 60 len = p1 - p; in get_str_sep() 63 if (len > buf_size - 1) in get_str_sep() 64 len = buf_size - 1; in get_str_sep() 123 if (net_peer_needs_padding(&s->nc)) { in net_slirp_send_packet() 130 return qemu_send_packet(&s->nc, pkt, pkt_len); in net_slirp_send_packet() [all …]
|
/qemu/tests/vm/ |
H A D | aarch64vm.py | 11 # the COPYING file in the top-level directory. 19 # This is the config needed for current version of QEMU. 23 'machine' : "virt,gic-version=max", 32 DEFAULT_CONFIG = {'kvm' : {'cpu' : "host", 33 'machine' : "virt,gic-version=host"}, 34 'tcg' : {'cpu' : "cortex-a57", 42 config = default_config 43 config.update(aarch_get_config_defaults(vmcls)) 44 return config 48 config = CURRENT_CONFIG [all …]
|
/qemu/pc-bios/s390-ccw/ |
H A D | virtio.c | 7 * your option) any later version. See the COPYING file in the top-level 12 #include "s390-ccw.h" 15 #include "virtio-scsi.h" 18 #include "s390-time.h" 85 r = -EIO; in drain_irqs() 87 r = -EIO; in drain_irqs() 106 return do_cio(vdev->schid, vdev->senseid.cu_type, ptr2u32(&ccw), CCW_FMT1); in run_ccw() 111 void *p = (void *) info->queue; in vring_init() 114 vr->id = info->index; in vring_init() 115 vr->num = info->num; in vring_init() [all …]
|
H A D | virtio-blkdev.c | 7 * your option) any later version. See the COPYING file in the top-level 12 #include "s390-ccw.h" 14 #include "virtio-scsi.h" 24 VRing *vr = &vdev->vrings[vdev->cmd_vr_idx]; in virtio_blk_read_many() 26 /* Tell the host we want to read */ in virtio_blk_read_many() 42 /* Now we can tell the host to read */ in virtio_blk_read_many() 45 if (drain_irqs(vr->schid)) { in virtio_blk_read_many() 56 switch (vdev->senseid.cu_model) { in virtio_read_many() 63 return -1; in virtio_read_many() 115 return virtio_get_device()->guessed_disk_nature; in virtio_guessed_disk_nature() [all …]
|
/qemu/hw/sd/ |
H A D | bcm2835_sdhost.c | 2 * Raspberry Pi (BCM2835) SD Host Controller 11 * See the COPYING file in the top-level directory. 24 #define TYPE_BCM2835_SDHOST_BUS "bcm2835-sdhost-bus" 29 #define SDCMD 0x00 /* Command to SD card - 16 R/W */ in DECLARE_INSTANCE_CHECKER() 30 #define SDARG 0x04 /* Argument to SD card - 32 R/W */ in DECLARE_INSTANCE_CHECKER() 31 #define SDTOUT 0x08 /* Start value for timeout counter - 32 R/W */ in DECLARE_INSTANCE_CHECKER() 32 #define SDCDIV 0x0c /* Start value for clock divider - 11 R/W */ in DECLARE_INSTANCE_CHECKER() 33 #define SDRSP0 0x10 /* SD card rsp (31:0) - 32 R */ in DECLARE_INSTANCE_CHECKER() 34 #define SDRSP1 0x14 /* SD card rsp (63:32) - 32 R */ in DECLARE_INSTANCE_CHECKER() 35 #define SDRSP2 0x18 /* SD card rsp (95:64) - 32 R */ in DECLARE_INSTANCE_CHECKER() [all …]
|
/qemu/hw/char/ |
H A D | virtio-serial-bus.c | 15 * the COPYING file in the top-level directory. 17 * Contributions after 2012-01-13 are licensed under the terms of the 24 #include "qemu/main-loop.h" 26 #include "migration/qemu-file-types.h" 28 #include "qemu/error-report.h" 30 #include "hw/qdev-properties.h" 32 #include "hw/virtio/virtio-serial.h" 33 #include "hw/virtio/virtio-access.h" 47 QTAILQ_FOREACH(port, &vser->ports, next) { in find_port_by_id() 48 if (port->id == id) in find_port_by_id() [all …]
|
/qemu/docs/devel/testing/ |
H A D | ci-jobs.rst.inc | 9 ------------------------------------------------ 15 https://docs.gitlab.com/ee/ci/variables/#add-a-cicd-variable-to-a-project 18 --------------------------------------------------------------------------- 21 git-push command line arguments. 27 git push -o ci.variable="QEMU_CI_EXAMPLE_VAR=value" myrepo mybranch 31 https://docs.gitlab.com/ee/user/project/push_options.html#push-options-for-gitlab-cicd 33 Setting aliases in your git config 34 ---------------------------------- 41 git config --local alias.push-ci "push -o ci.variable=QEMU_CI=1" 42 git config --local alias.push-ci-now "push -o ci.variable=QEMU_CI=2" [all …]
|
/qemu/hw/vfio/ |
H A D | pci.c | 10 * the COPYING file in the top-level directory. 12 * Based on qemu-kvm device-assignment: 18 * Copyright (C) 2008, IBM, Muli Ben-Yehuda (muli@il.ibm.com) 30 #include "hw/qdev-properties.h" 31 #include "hw/qdev-properties-system.h" 34 #include "qemu/error-report.h" 35 #include "qemu/main-loop.h" 45 #include "migration/qemu-file.h" 47 #include "vfio-migration-internal.h" 48 #include "vfio-helpers.h" [all …]
|
/qemu/scripts/ |
H A D | analyze-inclusions | 12 # preceded by a "--" argument), it will run the analysis on 18 # "make" (typically used for a "-j" argument suitable for your 24 x--) 28 x-* | x) 29 mkdir -p +build 31 test -f Makefile && make distclean 39 QEMU_CFLAGS=$(sed -n s/^QEMU_CFLAGS=//p config-host.mak) 40 QEMU_INCLUDES=$(sed -n s/^QEMU_INCLUDES=//p config-host.mak | \ 42 CFLAGS=$(sed -n s/^CFLAGS=//p config-host.mak) 45 find . -name "*.d" -exec grep -l "$@" {} + | wc -l [all …]
|
/qemu/docs/devel/migration/ |
H A D | compatibility.rst | 5 --------------------------------- 15 - QEMU version 16 - machine type version 20 - qemu-system-x86_64 (v5.2), from now on qemu-5.2. 21 - qemu-system-x86_64 (v5.1), from now on qemu-5.1. 26 - pc-q35-5.2 (newer one in qemu-5.2) from now on pc-5.2 27 - pc-q35-5.1 (newer one in qemu-5.1) from now on pc-5.1 40 1 - qemu-5.2 -M pc-5.2 -> migrates to -> qemu-5.2 -M pc-5.2 45 2 - qemu-5.1 -M pc-5.1 -> migrates to -> qemu-5.1 -M pc-5.1 54 we have the same QEMU version in both sides (qemu-5.2) but we are using [all …]
|
H A D | qpl-compression.rst | 4 The Intel Query Processing Library (Intel ``QPL``) is an open-source library to 8 The ``QPL`` compression relies on Intel In-Memory Analytics Accelerator(``IAA``) 21 +----------------+ +------------------+ 22 | MultiFD Thread | |accel-config tool | 23 +-------+--------+ +--------+---------+ 27 +-------+--------+ | Setup IAA 29 +-------+---+----+ | 31 | +-------------+-------+ 33 | Devices +-----+-----+ 35 | +-----+-----+ [all …]
|
/qemu/hw/ |
H A D | Kconfig | 28 source pci-bridge/Kconfig 29 source pci-host/Kconfig 72 config TEST_DEVICES 75 config XILINX 79 config XILINX_AXI 83 config XLNX_ZYNQMP
|
/qemu/hw/virtio/ |
H A D | virtio-balloon.c | 12 * the COPYING file in the top-level directory. 22 #include "hw/mem/pc-dimm.h" 23 #include "hw/qdev-properties.h" 26 #include "hw/virtio/virtio-balloon.h" 27 #include "system/address-spaces.h" 29 #include "qapi/qapi-events-machine.h" 32 #include "qemu/error-report.h" 35 #include "hw/virtio/virtio-bus.h" 36 #include "hw/virtio/virtio-access.h" 47 if (!pbp->bitmap) { in virtio_balloon_pbp_free() [all …]
|
/qemu/target/xtensa/ |
H A D | import_core.sh | 1 #! /bin/bash -e 7 TARGET="$BASE"/core-$NAME 9 [ $# -ge 2 -a -f "$OVERLAY" ] || { cat <<EOF 10 Usage: $0 overlay-archive-to-import core-name [frequency-in-KHz] 11 overlay-archive-to-import: file name of xtensa-config-overlay.tar.gz 13 core-name: QEMU name of the imported core. Must be valid 15 frequency-in-KHz: core frequency (40MHz if not specified). 20 [ $# -ge 3 ] && FREQ="$3" 21 mkdir -p "$TARGET" 22 tar -xf "$OVERLAY" -C "$TARGET" --strip-components=2 \ [all …]
|
/qemu/docs/ |
H A D | igd-assign.txt | 1 Intel Graphics Device (IGD) assignment with vfio-pci 4 Using vfio-pci, we can passthrough Intel Graphics Device (IGD) to guest, either 6 emulated primary graphics device, depending on the config and guest driver 16 (*-Required by) 19 |---------------------------------------------|-------|---------|-------|---------| 24 | #5 Host's VGA ranges are mapped to IGD | | | * | | 28 use the VBT copied from host OpRegion to prevent incorrect configuration. 30 For #1, the "x-igd-opregion=on" option exposes a copy of host IGD OpRegion to 33 For #2, "x-igd-lpc=on" option copies the IDs of host LPC bridge and host bridge 40 For #4, the primary display must be set to IGD in host BIOS. [all …]
|
/qemu/tests/qemu-iotests/ |
H A D | nbd-fault-injector.py | 2 # NBD server - fault injection utility 5 # [inject-error "disconnect-neg1"] 11 # name, so give each [inject-error] a unique name. 13 # inject-error options: 14 # event - name of the trigger event 15 # "neg1" - first part of negotiation struct 16 # "export" - export struct 17 # "neg2" - second part of negotiation struct 18 # "request" - NBD request struct 19 # "reply" - NBD reply struct [all …]
|