/qemu/qapi/ |
H A D | qom.json | 1 # -*- Mode: Python -*- 5 # See the COPYING file in the top-level directory. 8 { 'include': 'block-core.json' } 38 # @default-value: the default value, if any (since 5.0) 46 '*default-value': 'any' } } 49 # @qom-list: 54 # @path: the path within the object model. See @qom-get for a 62 # .. qmp-example:: 64 # -> { "execute": "qom-list", 66 # <- { "return": [ { "name": "type", "type": "string" }, [all …]
|
/qemu/docs/system/ |
H A D | index.rst | 3 ---------------- 5 ---------------- 8 for full system emulation (as opposed to user-mode emulation). 17 device-emulation 19 mux-chardev 22 virtio-net-failover 24 generic-loader 25 guest-loader 27 vnc-security 33 managed-startup [all …]
|
H A D | target-rx.rst | 1 .. _RX-System-emulator: 4 -------------------- 6 Use the executable ``qemu-system-rx`` to simulate RX target (GDB simulator). 9 - R5F562N8 MCU 11 - On-chip memory (ROM 512KB, RAM 96KB) 12 - Interrupt Control Unit (ICUa) 13 - 8Bit Timer x 1CH (TMR0,1) 14 - Compare Match Timer x 2CH (CMT0,1) 15 - Serial Communication Interface x 1CH (SCI0) 17 - External memory 16MByte [all …]
|
/qemu/tests/functional/ |
H A D | test_mem_addr_space.py | 11 # SPDX-License-Identifier: GPL-2.0-or-later 23 # This helper can go away when the 32-bit host deprecation 31 # Non-ELF file implies macOS or Windows which 32 # we already assume to be 64-bit only 35 # bits == 1 -> 32-bit; bits == 2 -> 64-bit 38 # 32-bit ELF builds won't be able to address sufficient 40 self.skipTest("64-bit build host is required") 42 # first, lets test some 32-bit processors. 43 # for all 32-bit cases, pci64_hole_size is 0. 55 Note that 64-bit pci hole size is 0 in this case. If maxmem is set to [all …]
|
/qemu/hw/virtio/ |
H A D | vdpa-dev.c | 9 * Largely based on the "vhost-user-blk-pci.c" and "vhost-user-blk.c" 14 * See the COPYING.LIB file in the top-level directory. 20 #include "qemu/error-report.h" 22 #include "hw/qdev-core.h" 23 #include "hw/qdev-properties.h" 24 #include "hw/qdev-properties-system.h" 27 #include "hw/virtio/virtio-bus.h" 28 #include "hw/virtio/vdpa-dev.h" 41 uint32_t val = (uint32_t)-1; in vhost_vdpa_device_get_u32() 44 error_setg(errp, "vhost-vdpa-device: cmd 0x%lx failed: %s", in vhost_vdpa_device_get_u32() [all …]
|
/qemu/docs/system/arm/ |
H A D | virt.rst | 1 .. _arm-virt: 10 idiosyncrasies and limitations of a particular bit of real-world 18 ``virt-5.0`` machine type will behave like the ``virt`` machine from 19 the QEMU 5.0 release, and migration should work between ``virt-5.0`` 20 of the 5.0 release and ``virt-5.0`` of the 5.1 release. Migration 22 the non-versioned ``virt`` machine type. 24 VM migration is not guaranteed when using ``-cpu max``, as features 33 - PCI/PCIe devices 34 - Flash memory 35 - Either one or two PL011 UARTs for the NonSecure World [all …]
|
H A D | xlnx-zynq.rst | 1 Xilinx Zynq board (``xilinx-zynq-a9``) 4 integrate a feature-rich dual or single-core Arm Cortex-A9 MPCore based 8 https://docs.amd.com/r/en-US/ug585-zynq-7000-SoC-TRM/Zynq-7000-SoC-Technical-Reference-Manual 10 QEMU xilinx-zynq-a9 board supports following devices: 11 - A9 MPCORE 12 - cortex-a9 13 - GIC v1 14 - Generic timer 15 - wdt 16 - OCM 256KB [all …]
|
/qemu/hw/ide/ |
H A D | ahci.c | 28 #include "qemu/error-report.h" 30 #include "qemu/main-loop.h" 31 #include "system/block-backend.h" 33 #include "ahci-internal.h" 34 #include "ide-internal.h" 113 AHCIPortRegs *pr = &s->dev[port].port_regs; in ahci_port_read() 119 val = pr->lst_addr; in ahci_port_read() 122 val = pr->lst_addr_hi; in ahci_port_read() 125 val = pr->fis_addr; in ahci_port_read() 128 val = pr->fis_addr_hi; in ahci_port_read() [all …]
|
/qemu/docs/interop/ |
H A D | parallels.rst | 6 Copyright (c) 2015 Vladimir Sementsov-Ogievskiy 9 See the COPYING file in the top-level directory. 18 All numbers in a Parallels expandable image are stored in little-endian byte 23 ----------- 26 A 512-byte data chunk. 35 guest-to-host I/O data address translation. 38 ------ 44 0 - 15: magic 47 16 - 19: version 50 20 - 23: heads [all …]
|
/qemu/target/hexagon/imported/ |
H A D | encode_subinsn.def | 2 * Copyright(c) 2019-2021 Qualcomm Innovation Center, Inc. All Rights Reserved. 25 /* Ld1-type subinsns */ 31 /* St1-type subinsns */ 38 /* Ld2-type subinsns */ 46 DEF_ENC_SUBINSN(SL2_deallocframe,SUBINSN_L2, "111 1100---0--") 48 DEF_ENC_SUBINSN(SL2_return, SUBINSN_L2, "111 1101---0--") 49 DEF_ENC_SUBINSN(SL2_return_t, SUBINSN_L2, "111 1101---100") 50 DEF_ENC_SUBINSN(SL2_return_f, SUBINSN_L2, "111 1101---101") 51 DEF_ENC_SUBINSN(SL2_return_tnew, SUBINSN_L2, "111 1101---110") 52 DEF_ENC_SUBINSN(SL2_return_fnew, SUBINSN_L2, "111 1101---111") [all …]
|
/qemu/tests/qtest/libqos/ |
H A D | virtio-scmi.c | 2 * virtio-scmi nodes for testing 5 * SPDX-FileCopyrightText: Red Hat, Inc. 6 * SPDX-License-Identifier: GPL-2.0-or-later 8 * Based on virtio-gpio.c, doing basically the same thing. 12 #include "standard-headers/linux/virtio_config.h" 16 #include "virtio-scmi.h" 22 QVirtioDevice *vdev = scmi->vdev; in virtio_scmi_cleanup() 26 qvirtqueue_cleanup(vdev->bus, scmi->queues[i], alloc); in virtio_scmi_cleanup() 28 g_free(scmi->queues); in virtio_scmi_cleanup() 34 * and in fact masks of the re-used bit. [all …]
|
/qemu/hw/ppc/ |
H A D | spapr_nested.c | 10 #include "mmu-book3s-v3.h" 11 #include "cpu-models.h" 20 spapr->nested.capabilities_set = false; in spapr_nested_reset() 25 spapr->nested.api = 0; in spapr_nested_reset() 31 return spapr->nested.api; in spapr_nested_api() 43 patb = spapr->nested.ptcr & PTCR_PATB; in spapr_get_pate_nested_hv() 44 pats = spapr->nested.ptcr & PTCR_PATS; in spapr_get_pate_nested_hv() 52 pats = 1ull << (pats + 12 - 4); in spapr_get_pate_nested_hv() 59 entry->dw0 = ldq_phys(CPU(cpu)->as, patb); in spapr_get_pate_nested_hv() 60 entry->dw1 = ldq_phys(CPU(cpu)->as, patb + 8); in spapr_get_pate_nested_hv() [all …]
|
/qemu/hw/net/ |
H A D | virtio-net.c | 10 * the COPYING file in the top-level directory. 18 #include "qemu/main-loop.h" 24 #include "qemu/error-report.h" 28 #include "qemu/config-file.h" 30 #include "hw/virtio/virtio-net.h" 33 #include "hw/virtio/virtio-bus.h" 35 #include "qapi/qapi-events-net.h" 36 #include "hw/qdev-properties.h" 37 #include "qapi/qapi-types-migration.h" 38 #include "qapi/qapi-events-migration.h" [all …]
|
/qemu/include/ui/ |
H A D | qemu-pixman.h | 3 * See the COPYING file in the top-level directory. 12 #include "pixman-minimal.h" 62 /* -------------------------------------------------------------------- */ 109 #define SHAREABLE_NONE (-1)
|
/qemu/scripts/ |
H A D | compare-machine-types.py | 11 # property via qmp command (e.g. query-cpu-model-expansion for x86_64-cpu). 42 print("Try export PYTHONPATH=top-qemu-dir/python or run from top-qemu-dir") 46 default_qemu_args = '-enable-kvm -machine none' 47 default_qemu_binary = 'build/qemu-system-x86_64' 58 # 'x86_64-cpu', method of 'x86_64-cpu' will be used for '486-x86_64-cpu') 61 def __init__(self, vm: QEMUMachine, name: str, abstract: bool) -> None: 68 def get_prop(self, driver: str, prop: str) -> str: 74 def is_child_of(self, parent: 'Driver') -> bool: 84 def set_implementations(self, implementations: List['Driver']) -> None: 89 def __init__(self, vm: QEMUMachine, name: str) -> None: [all …]
|
/qemu/hw/i2c/ |
H A D | pmbus_device.c | 6 * SPDX-License-Identifier: GPL-2.0-or-later 25 /* X = (Y * 10^-R - b) / m */ in pmbus_direct_mode2data() 26 uint32_t x = (value / pow(10, c.R) - c.b) / c.m; in pmbus_direct_mode2data() 32 /* L = D * 2^(-e) */ in pmbus_data2linear_mode() 34 return value << (-exp); in pmbus_data2linear_mode() 43 return value >> (-exp); in pmbus_linear_mode2data() 50 if (pmdev->out_buf_len + len > SMBUS_DATA_MAX_LEN) { in pmbus_send() 56 for (int i = len - 1; i >= 0; i--) { in pmbus_send() 57 pmdev->out_buf[i + pmdev->out_buf_len] = data[len - i - 1]; in pmbus_send() 59 pmdev->out_buf_len += len; in pmbus_send() [all …]
|
/qemu/target/rx/ |
H A D | disas.c | 20 #include "disas/dis-asm.h" 36 uint32_t addr = ctx->addr; in decode_load_bytes() 38 g_assert(ctx->len == i); in decode_load_bytes() 39 g_assert(n <= ARRAY_SIZE(ctx->bytes)); in decode_load_bytes() 42 ctx->dis->read_memory_func(addr++, &ctx->bytes[i - 1], 1, ctx->dis); in decode_load_bytes() 43 insn |= ctx->bytes[i - 1] << (32 - i * 8); in decode_load_bytes() 45 ctx->addr = addr; in decode_load_bytes() 46 ctx->len = n; in decode_load_bytes() 53 uint32_t addr = ctx->addr; in li() 54 uintptr_t len = ctx->len; in li() [all …]
|
/qemu/docs/devel/ |
H A D | submitting-a-patch.rst | 1 .. _submitting-a-patch: 13 one-shot fix, the bare minimum we ask is that: 15 .. list-table:: Minimal Checklist for Patches 17 :header-rows: 1 19 * - Check 20 - Reason 21 * - Patches contain Signed-off-by: Your Name <author@email> 22 …- States you are legally able to contribute the code. See :ref:`patch_emails_must_include_a_signed… 23 * - Sent as patch emails to ``qemu-devel@nongnu.org`` 24 - The project uses an email list based workflow. See :ref:`submitting_your_patches` [all …]
|
/qemu/hw/arm/ |
H A D | aspeed_ast2600.c | 4 * Copyright (c) 2016-2019, IBM Corporation. 7 * the COPYING file in the top-level directory. 15 #include "qemu/error-report.h" 19 #include "target/arm/cpu-qom.h" 89 /* Shared Peripheral Interrupt values below are offset by -32 from datasheet */ 129 [ASPEED_DEV_I2C] = 110, /* 110 -> 125 */ 136 [ASPEED_DEV_KCS] = 138, /* 138 -> 142 */ 140 [ASPEED_DEV_I3C] = 102, /* 102 -> 107 */ 148 return qdev_get_gpio_in(DEVICE(&a->a7mpcore), sc->irqmap[dev]); in aspeed_soc_ast2600_get_irq() 164 for (i = 0; i < sc->num_cpus; i++) { in aspeed_soc_ast2600_init() [all …]
|
/qemu/target/riscv/insn_trans/ |
H A D | trans_rvd.c.inc | 2 * RISC-V translation routines for the RV64D Standard Extension. 4 * Copyright (c) 2016-2017 Sagar Karandikar, sagark@eecs.berkeley.edu 5 * Copyright (c) 2018 Peer Adelt, peer.adelt@hni.uni-paderborn.de 6 * Bastian Koppelmann, kbastian@mail.uni-paderborn.de 22 if (!ctx->cfg_ptr->ext_zdinx) { \ 28 if (ctx->cfg_ptr->ext_zdinx && (get_xl(ctx) == MXL_RV32) && \ 35 if (!ctx->cfg_ptr->ext_zcd) { \ 58 } else if (ctx->cfg_ptr->ext_zama16b) { 65 addr = get_address(ctx, a->rs1, a->imm); 66 tcg_gen_qemu_ld_i64(cpu_fpr[a->rd], addr, ctx->mem_idx, memop); [all …]
|
/qemu/hw/audio/ |
H A D | virtio-snd.c | 8 * <https://docs.oasis-open.org/virtio/virtio/v1.2/csd01/virtio-v1.2-csd01.html#x1-52900014> 15 * top-level directory. 21 #include "qemu/error-report.h" 26 #include "hw/audio/virtio-snd.h" 97 s->snd_conf.jacks, in virtio_snd_get_config() 98 s->snd_conf.streams, in virtio_snd_get_config() 99 s->snd_conf.chmaps); in virtio_snd_get_config() 101 memcpy(sndconfig, &s->snd_conf, sizeof(s->snd_conf)); in virtio_snd_get_config() 102 cpu_to_le32s(&sndconfig->jacks); in virtio_snd_get_config() 103 cpu_to_le32s(&sndconfig->streams); in virtio_snd_get_config() [all …]
|
/qemu/tests/qemu-iotests/ |
H A D | 146 | 53 _use_sample_img virtualpc-dynamic.vhd.bz2 55 $QEMU_IMG map --output=json --image-opts \ 63 $QEMU_IMG map --output=json --image-opts \ 71 $QEMU_IMG map --output=json --image-opts \ 78 echo === Testing Hyper-V Autodetect === 80 _use_sample_img hyperv2012r2-dynamic.vhd.bz2 82 $QEMU_IMG map --output=json --image-opts \ 87 echo === Testing Hyper-V with current_size force === 90 $QEMU_IMG map --output=json --image-opts \ 95 echo === Testing Hyper-V with chs force === [all …]
|
H A D | 186 | 42 _require_drivers null-co 43 _require_devices virtio-scsi-pci 54 if ! test -t 0; then 60 ) | $QEMU -S -display none -device virtio-scsi-pci -monitor stdio "$@" 2>&1 75 removable="floppy ide-cd scsi-cd" 76 fixed="ide-hd scsi-hd virtio-blk-pci" 83 check_info_block -device $dev 84 check_info_block -device $dev,id=qdev_id 88 echo "=== -blockdev/-device=<node-name> ===" 92 check_info_block -blockdev driver=null-co,read-zeroes=on,node-name=null -device $dev,drive=null [all …]
|
/qemu/fsdev/ |
H A D | qemu-fsdev-throttle.c | 11 * See the COPYING file in the top-level directory for details. 16 #include "qemu/error-report.h" 17 #include "qemu-fsdev-throttle.h" 19 #include "qemu/main-loop.h" 25 qemu_co_enter_next(&fst->throttled_reqs[false], NULL); in fsdev_throttle_read_timer_cb() 31 qemu_co_enter_next(&fst->throttled_reqs[true], NULL); in fsdev_throttle_write_timer_cb() 36 throttle_config_init(&fst->cfg); in fsdev_throttle_parse_opts() 37 fst->cfg.buckets[THROTTLE_BPS_TOTAL].avg = in fsdev_throttle_parse_opts() 38 qemu_opt_get_number(opts, "throttling.bps-total", 0); in fsdev_throttle_parse_opts() 39 fst->cfg.buckets[THROTTLE_BPS_READ].avg = in fsdev_throttle_parse_opts() [all …]
|
/qemu/subprojects/packagefiles/bilge-impl-0.2-rs/ |
H A D | meson.build | 1 project('bilge-impl-0.2-rs', 'rust', 4 license: 'MIT OR Apache-2.0', 7 subproject('itertools-0.11-rs', required: true) 8 subproject('proc-macro-error-attr-1-rs', required: true) 9 subproject('proc-macro-error-1-rs', required: true) 10 subproject('quote-1-rs', required: true) 11 subproject('syn-2-rs', required: true) 12 subproject('proc-macro2-1-rs', required: true) 14 itertools_dep = dependency('itertools-0.11-rs', native: true) 15 proc_macro_error_attr_dep = dependency('proc-macro-error-attr-1-rs', native: true) [all …]
|