/qemu/target/loongarch/kvm/ |
H A D | kvm.c | 1 /* SPDX-License-Identifier: GPL-2.0-or-later */ 11 #include "asm-loongarch/kvm_para.h" 14 #include "qemu/error-report.h" 15 #include "qemu/main-loop.h" 21 #include "system/address-spaces.h" 28 #include "cpu-csr.h" 42 struct kvm_device_attr attr = { in kvm_get_stealtime() local 44 .attr = KVM_LOONGARCH_VCPU_PVTIME_GPA, in kvm_get_stealtime() 45 .addr = (uint64_t)&env->stealtime.guest_addr, in kvm_get_stealtime() 48 err = kvm_vcpu_ioctl(cs, KVM_HAS_DEVICE_ATTR, attr); in kvm_get_stealtime() [all …]
|
/qemu/scripts/ |
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 …]
|
/qemu/hw/intc/ |
H A D | s390_flic_kvm.c | 9 * your option) any later version. See the COPYING file in the top-level 16 #include "qemu/error-report.h" 23 #include "migration/qemu-file-types.h" 28 #define FLIC_FAILED (-1UL) 50 * flic_get_all_irqs - store all pending irqs in buffer 55 * Returns: -ENOMEM if buffer is too small, 56 * -EINVAL if attr.group is invalid, 57 * -EFAULT if copying to userspace failed, 63 struct kvm_device_attr attr = { in flic_get_all_irqs() local 66 .attr = len, in flic_get_all_irqs() [all …]
|
/qemu/hw/uefi/ |
H A D | var-service-policy.c | 2 * SPDX-License-Identifier: GPL-2.0-or-later 4 * uefi vars device - VarCheckPolicyLibMmiHandler implementation 13 #include "hw/uefi/var-service.h" 14 #include "hw/uefi/var-service-api.h" 15 #include "hw/uefi/var-service-edk2.h" 17 #include "trace/trace-hw_uefi.h" 30 .name = "uefi-var-policy", 42 uint16_t *name = (void *)pe + pe->offset_to_name; in print_policy_entry() 52 pe->version >> 16, pe->version & 0xffff, pe->size); in print_policy_entry() 54 if (pe->min_size) { in print_policy_entry() [all …]
|
/qemu/target/arm/ |
H A D | kvm.c | 4 * Copyright Christoffer Dall 2009-2010 5 * Copyright Mian-M. Hamayun 2013, Virtual Open Systems 9 * See the COPYING file in the top-level directory. 19 #include "qemu/error-report.h" 20 #include "qemu/main-loop.h" 33 #include "system/address-spaces.h" 80 init.target = cpu->kvm_target; in kvm_arm_vcpu_init() 81 memcpy(init.features, cpu->kvm_init_features, sizeof(init.features)); in kvm_arm_vcpu_init() 106 int ret = 0, kvmfd = -1, vmfd = -1, cpufd = -1; in kvm_arm_create_scratch_host_vcpu() 119 } while (vmfd == -1 && errno == EINTR); in kvm_arm_create_scratch_host_vcpu() [all …]
|
H A D | helper.c | 6 * SPDX-License-Identifier: GPL-2.0-or-later 14 #include "cpu-features.h" 15 #include "exec/page-protection.h" 16 #include "exec/mmap-lock.h" 17 #include "qemu/main-loop.h" 20 #include "qemu/qemu-print.h" 22 #include "exec/translation-block.h" 24 #include "system/cpu-timers.h" 29 #include "qemu/guest-random.h" 33 #include "semihosting/common-semi.h" [all …]
|
/qemu/hw/dma/ |
H A D | xlnx_csu_dma.c | 25 #include "hw/qdev-properties.h" 36 * https://www.xilinx.com/html_docs/registers/ug1087/ug1087-zynq-ultrascale-registers 121 paused = !!(s->regs[R_CTRL] & R_CTRL_PAUSE_STRM_MASK); in xlnx_csu_dma_is_paused() 122 paused |= !!(s->regs[R_CTRL] & R_CTRL_PAUSE_MEM_MASK); in xlnx_csu_dma_is_paused() 129 return s->r_size_last_word; in xlnx_csu_dma_get_eop() 134 return !!(s->regs[R_CTRL] & R_CTRL_AXI_BRST_TYPE_MASK); in xlnx_csu_dma_burst_is_fixed() 139 return !!(s->regs[R_CTRL2] & R_CTRL2_TIMEOUT_EN_MASK); in xlnx_csu_dma_timeout_enabled() 147 cnt = ARRAY_FIELD_EX32(s->regs, STATUS, DONE_CNT) + a; in xlnx_csu_dma_update_done_cnt() 148 ARRAY_FIELD_DP32(s->regs, STATUS, DONE_CNT, cnt); in xlnx_csu_dma_update_done_cnt() 156 bswap = s->regs[R_CTRL] & R_CTRL_ENDIANNESS_MASK; in xlnx_csu_dma_data_process() [all …]
|
/qemu/ |
H A D | meson_options.txt | 1 # These options do not correspond to a --enable/--disable-* option 3 # scripts/meson-buildoptions.py's SKIP_OPTIONS constant too. 9 option('qemu_firmwarepath', type : 'array', value : ['share/qemu-firmware'], 12 description: 'use specified string as sub-version of the package') 25 …description: 'set block driver read-write whitelist (by default affects only QEMU, not tools like … 27 …description: 'set block driver read-only whitelist (by default affects only QEMU, not tools like q… 28 option('interp_prefix', type : 'string', value : '/usr/gnemul/qemu-%M', 33 description: 'fuzzing engine library for OSS-Fuzz') 40 # Everything else can be set via --enable/--disable-* option 42 # here make sure to run "make update-buildoptions". [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/target/m68k/ |
H A D | helper.c | 4 * Copyright (c) 2006-2007 CodeSourcery 24 #include "exec/page-protection.h" 27 #include "exec/helper-proto.h" 31 #include "qemu/qemu-print.h" 38 CPUM68KState *env = &cpu->env; in cf_fpu_gdb_get_reg() 42 float_status s = env->fp_status; in cf_fpu_gdb_get_reg() 43 return gdb_get_reg64(mem_buf, floatx80_to_float64(env->fregs[n].d, &s)); in cf_fpu_gdb_get_reg() 47 return gdb_get_reg32(mem_buf, env->fpcr); in cf_fpu_gdb_get_reg() 49 return gdb_get_reg32(mem_buf, env->fpsr); in cf_fpu_gdb_get_reg() 59 CPUM68KState *env = &cpu->env; in cf_fpu_gdb_set_reg() [all …]
|
/qemu/migration/ |
H A D | rdma.c | 4 * Copyright IBM, Corp. 2010-2013 5 * Copyright Red Hat, Inc. 2015-2016 13 * later. See the COPYING file in the top-level directory. 23 #include "migration-stats.h" 24 #include "qemu-file.h" 26 #include "qemu/error-report.h" 27 #include "qemu/main-loop.h" 52 * This is only for non-live state being migrated. 78 * A work request ID is 64-bits and we split up these bits 81 * bits 0-15 : type of control message, 2^16 [all …]
|
/qemu/tests/qemu-iotests/ |
H A D | iotests.py | 1 # Common utilities and Python wrappers for qemu-iotests 56 qemu_img_args = [os.environ.get('QEMU_IMG_PROG', 'qemu-img')] 60 qemu_io_args = [os.environ.get('QEMU_IO_PROG', 'qemu-io')] 64 qemu_io_args_no_fmt = [os.environ.get('QEMU_IO_PROG', 'qemu-io')] 69 qemu_nbd_prog = os.environ.get('QEMU_NBD_PROG', 'qemu-nbd') 77 qsd_prog = os.environ.get('QSD_PROG', 'qemu-storage-daemon') 105 valgrind_logfile = "--log-file=" + test_dir 111 qemu_valgrind = ['valgrind', valgrind_logfile, '--error-exitcode=99'] 115 luks_default_key_secret_opt = 'key-secret=keysec0' 122 logger_name: str, level: int = logging.CRITICAL) -> Iterator[None]: [all …]
|
/qemu/include/system/ |
H A D | memory.h | 10 * the COPYING file in the top-level directory. 17 #include "exec/cpu-common.h" 34 #define MAX_PHYS_ADDR (((hwaddr)1 << MAX_PHYS_ADDR_SPACE_BITS) - 1) 36 #define TYPE_MEMORY_REGION "memory-region" 40 #define TYPE_IOMMU_MEMORY_REGION "iommu-memory-region" 45 #define TYPE_RAM_DISCARD_MANAGER "ram-discard-manager" 96 * @nonvolatile: this section is non-volatile 158 * should be able to take care of over-sized invalidations. 196 /* RAM is pre-allocated and passed into qemu_ram_alloc_from_ptr */ 199 /* RAM is mmap-ed with MAP_SHARED */ [all …]
|
/qemu/scripts/coverity-scan/ |
H A D | run-coverity-scan | 1 #!/bin/sh -e 8 # See the COPYING file in the top-level directory. 10 # Copyright (c) 2017-2020 Linaro Limited 14 # run the (closed-source) coverity build tools, so don't 18 # tree, and that tree is a fresh clean one, because we do an in-tree 21 # regular expressions it uses; an out-of-tree build won't work for this.) 31 # --check-upload-only : return success if upload is possible 32 # --dry-run : run the tools, but don't actually do the upload 33 # --docker : create and work inside a container 34 # --docker-engine : specify the container engine to use (docker/podman/auto); [all …]
|
/qemu/include/standard-headers/linux/ |
H A D | fuse.h | 1 /* SPDX-License-Identifier: ((GPL-2.0 WITH Linux-syscall-note) OR BSD-2-Clause) */ 4 Copyright (C) 2001-2008 Miklos Szeredi <miklos@szeredi.hu> 9 This -- and only this -- header file may also be distributed under 12 Copyright (C) 2001-2007 Miklos Szeredi. All rights reserved. 42 * - add the following messages: 48 * - add padding to messages to accommodate 32-bit servers on 64-bit kernels 51 * - add FOPEN_DIRECT_IO and FOPEN_KEEP_CACHE flags 52 * - add FUSE_FSYNCDIR message 55 * - add FUSE_ACCESS message 56 * - add FUSE_CREATE message [all …]
|
/qemu/block/ |
H A D | file-posix.c | 28 #include "qemu/error-report.h" 29 #include "block/block-io.h" 36 #include "block/thread-pool.h" 38 #include "block/raw-aio.h" 42 #include "scsi/pr-manager.h" 76 #include <linux/dm-ioctl.h> 146 * - DM_MPATH_PROBE_PATHS returns success, but before SG_IO completes, another 149 * - DM_MPATH_PROBE_PATHS failed all paths in the current path group, so we have 154 * failover), it's rare to have more than eight path groups - and even then 171 * s->fd. */ [all …]
|
/qemu/hw/sh4/ |
H A D | sh7750_regs.h | 2 * SH-7750 memory-mapped registers 6 * Document Number ADE-602-124C, Rev. 4.0, 4/21/00, Hitachi Ltd. 8 * Copyright (C) 2001 OKTET Ltd., St.-Petersburg, Russia 42 * All register has 2 addresses: in 0xff000000 - 0xffffffff (P4 address) and 43 * in 0x1f000000 - 0x1fffffff (area 7 address) 55 /* Page Table Entry High register - PTEH */ 64 /* Page Table Entry Low register - PTEL */ 70 #define SH7750_PTEL_V 0x00000100 /* Validity (0-entry is invalid) */ 73 #define SH7750_PTEL_SZ_1KB 0x00000000 /* 1-kbyte page */ 74 #define SH7750_PTEL_SZ_4KB 0x00000010 /* 4-kbyte page */ [all …]
|
/qemu/linux-user/ |
H A D | syscall.c | 28 #include "exec/page-protection.h" 29 #include "exec/mmap-lock.h" 30 #include "exec/tb-flush.h" 31 #include "exec/translation-block.h" 115 #include <linux/dm-ioctl.h> 136 #include "user-internals.h" 138 #include "signal-common.h" 140 #include "user-mmap.h" 141 #include "user/page-protection.h" 142 #include "user/safe-syscall.h" [all …]
|
/qemu/target/ppc/ |
H A D | cpu.h | 4 * Copyright (c) 2003-2007 Jocelyn Mayer 24 #include "qemu/cpu-float.h" 25 #include "exec/cpu-common.h" 26 #include "exec/cpu-defs.h" 27 #include "exec/cpu-interrupt.h" 28 #include "cpu-qom.h" 43 #define PPC_BIT_NR(bit) (63 - (bit)) 45 #define PPC_BIT32_NR(bit) (31 - (bit)) 48 #define PPC_BITMASK(bs, be) ((PPC_BIT(bs) - PPC_BIT(be)) | PPC_BIT(bs)) 49 #define PPC_BITMASK32(bs, be) ((PPC_BIT32(bs) - PPC_BIT32(be)) | \ [all …]
|
/qemu/tests/data/qobject/ |
H A D | qdict.txt | 1 00-INDEX: 333 55 3.Early-stage: 9993 56 3w-9xxx.c: 77318 57 3w-9xxx.h: 26357 58 3w-xxxx.c: 85227 59 3w-xxxx.h: 16846 71 4level-fixup.h: 1028 110 6xx-suspend.S: 1086 148 8250-platform.c: 1091 161 83xx-512x-pci.txt: 1323 [all …]
|
/qemu/hw/nvme/ |
H A D | ctrl.c | 14 * https://nvmexpress.org/developers/nvme-specification/ 18 * --------------------- 24 * ----- 28 * -drive file=<file>,if=none,id=<drive_id> 29 * -device nvme-subsys,id=<subsys_id>,nqn=<nqn_id> 30 * -device nvme,serial=<serial>,id=<bus_name>, \ 47 * -device nvme-ns,drive=<drive_id>,bus=<bus_name>,nsid=<nsid>,\ 60 * device will use the "v1.4 CMB scheme" - use the `legacy-cmb` parameter to 63 * Enabling pmr emulation can be achieved by pointing to memory-backend-file. 65 * -object memory-backend-file,id=<mem_id>,share=on,mem-path=<file_path>, \ [all …]
|