/qemu/include/hw/nvram/ |
H A D | fw_cfg.h | 5 #include "standard-headers/linux/qemu_fw_cfg.h" 13 #define TYPE_FW_CFG_DATA_GENERATOR_INTERFACE "fw_cfg-data-generator" 31 * @errp: pointer to a NULL-initialized error object 103 * @key: selector key value for new fw_cfg item 104 * @data: pointer to start of item data 105 * @len: size of item data 107 * Add a new fw_cfg item, available by selecting the given key, as a raw 116 * @key: selector key value for new fw_cfg item 117 * @value: NUL-terminated ascii string 119 * Add a new fw_cfg item, available by selecting the given key. The item [all …]
|
/qemu/hw/virtio/ |
H A D | virtio-nsm.c | 8 * top-level directory. 13 #include "qemu/guest-random.h" 18 #include "hw/virtio/virtio-nsm.h" 19 #include "hw/virtio/cbor-helpers.h" 20 #include "standard-headers/linux/virtio_ids.h" 104 len = cbor_serialize(root, response->iov_base, response->iov_len); in error_response() 110 response->iov_len = len; in error_response() 161 len = cbor_serialize(root, response->iov_base, response->iov_len); in handle_get_random() 169 response->iov_len = len; in handle_get_random() 195 * value = String("i-1234-enc5678"), [all …]
|
/qemu/ui/ |
H A D | spice-core.c | 14 * You should have received a copy of the GNU General Public License 23 #include "ui/qemu-spice.h" 24 #include "qemu/error-report.h" 25 #include "qemu/main-loop.h" 30 #include "qemu-x509.h" 33 #include "qapi/qapi-commands-ui.h" 34 #include "qapi/qapi-events-ui.h" 40 #include "ui/spice-display.h" 64 timer->timer = timer_new_ms(QEMU_CLOCK_REALTIME, func, opaque); in timer_add() 70 timer_mod(timer->timer, qemu_clock_get_ms(QEMU_CLOCK_REALTIME) + ms); in timer_start() [all …]
|
H A D | cocoa.m | 6 * Permission is hereby granted, free of charge, to any person obtaining a copy 9 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 31 #include "qemu/help-texts.h" 32 #include "qemu-main.h" 36 #include "ui/kbd-state.h" 39 #include "system/runstate-action.h" 40 #include "system/cpu-throttle.h" 42 #include "qapi/qapi-commands-block.h" 43 #include "qapi/qapi-commands-machine.h" 44 #include "qapi/qapi-commands-misc.h" [all …]
|
H A D | gtk.c | 19 * You should have received a copy of the GNU General Public License 22 * Portions from gtk-vnc (originally licensed under the LGPL v2+): 27 * Copyright (C) 2009-2010 Daniel P. Berrange <dan@berrange.com> 35 #include "qapi/qapi-commands-control.h" 36 #include "qapi/qapi-commands-machine.h" 37 #include "qapi/qapi-commands-misc.h" 39 #include "qemu/error-report.h" 40 #include "qemu/main-loop.h" 41 #include "qemu-main.h" 48 #include "ui/win32-kbd-hook.h" [all …]
|
/qemu/util/ |
H A D | log.c | 16 * You should have received a copy of the GNU Lesser General Public 23 #include "qemu/error-report.h" 166 fclose(r->fd); in rcu_close_file() 218 /* The per-thread flag is immutable. */ in qemu_set_log_internal() 234 * easy mechanism to tell them all to close and re-open. in qemu_set_log_internal() 235 * There seems little cause to do so either -- this option in qemu_set_log_internal() 236 * will most often be used at user-only startup. in qemu_set_log_internal() 267 /* Once the per-thread flag is set, it cannot be unset. */ in qemu_set_log_internal() 284 * If per-thread, open the file for each thread in qemu_log_trylock(). in qemu_set_log_internal() 298 r->fd = logfile; in qemu_set_log_internal() [all …]
|
H A D | reserved-region.c | 16 * You should have received a copy of the GNU General Public License 22 #include "qemu/reserved-region.h" 27 Range *r = ®->range; in resv_region_list_insert() 32 resv_iter = (ReservedRegion *)l->data; in resv_region_list_insert() 33 range_iter = &resv_iter->range; in resv_region_list_insert() 37 l = l->next; in resv_region_list_insert() 42 /* new range contains current item, simply remove this latter */ in resv_region_list_insert() 43 GList *prev = l->prev; in resv_region_list_insert() 44 g_free(l->data); in resv_region_list_insert() 47 l = prev->next; in resv_region_list_insert() [all …]
|
H A D | keyval.c | 10 * See the COPYING file in the top-level directory. 16 * key-vals = [ key-val { ',' key-val } [ ',' ] ] 17 * key-val = key '=' val | help 18 * key = key-fragment { '.' key-fragment } 19 * key-fragment = qapi-name | index 20 * qapi-name = '__' / [a-z0-9.-]+ / '_' / [A-Za-z][A-Za-z0-9_-]* / 21 * index = / [0-9]+ / 27 * key-vals specifies a JSON object, i.e. a tree whose root is an 31 * Each key-val = key-fragment '.' ... '=' val specifies a path from 36 * L '.' key-fragment is a child of the node denoted by path L [all …]
|
/qemu/.gitlab-ci.d/ |
H A D | windows.yml | 1 msys2-64bit: 4 - saas-windows-medium-amd64 8 - msys64/var/cache 9 - ccache 20 CONFIGURE_ARGS: --disable-system --enable-tools -Ddebug=false -Doptimization=0 22 GIT_FETCH_EXTRA_FLAGS: --no-tags --prune --quiet 24 name: "$CI_JOB_NAME-$CI_COMMIT_REF_SLUG" 27 - build/meson-logs/testlog.txt 29 junit: "build/meson-logs/testlog.junit.xml" 31 - Write-Output "Acquiring msys2.exe installer at $(Get-Date -Format u)" [all …]
|
/qemu/tests/image-fuzzer/ |
H A D | runner.py | 17 # You should have received a copy of the GNU General Public License 40 "'--config' and '--command' options are not supported.", file=sys.stderr) 96 return -term_signal 117 The test log will include application (e.g. 'qemu-img') logs besides info 125 Path to qemu-img and qemu-io will be retrieved from 'QEMU_IMG' and 136 self.current_dir = os.path.join(work_dir, 'test-' + test_id) 138 os.environ.get('QEMU_IMG', 'qemu-img').strip().split(' ') 139 self.qemu_io = os.environ.get('QEMU_IO', 'qemu-io').strip().split(' ') 140 self.commands = [['qemu-img', 'check', '-f', 'qcow2', '$test_img'], 141 ['qemu-img', 'info', '-f', 'qcow2', '$test_img'], [all …]
|
/qemu/roms/ |
H A D | edk2-build.py | 4 https://gitlab.com/kraxel/edk2-build-config 19 # pylint: disable=unused-variable 21 """ detect 'git rebase -x edk2-build.py master' testbuilds """ 27 with open(gitdir, 'r', encoding = 'utf-8') as f: 30 if not os.path.exists(f'{gitdir}/rebase-merge/msgnum'): 32 with open(f'{gitdir}/rebase-merge/msgnum', 'r', encoding = 'utf-8') as f: 34 with open(f'{gitdir}/rebase-merge/end', 'r', encoding = 'utf-8') as f: 36 with open(f'{gitdir}/rebase-merge/head-name', 'r', encoding = 'utf-8') as f: 39 rebase_prefix = f'[ {int(msgnum/2)} / {int(end/2)} - {head[-1]} ] ' 42 version_override = "test-build-patch-series" [all …]
|
/qemu/scripts/ |
H A D | vmstate-static-checker.py | 4 # the -dump-vmstate QEMU command. 19 # You should have received a copy of the GNU General Public License along 32 # Ensure we don't wrap around or reset to 0 -- the shell only has 33 # an 8-bit return value. 45 'acpi-ghes': ['ghes_addr_le', 'hw_error_le'], 51 'ich9-ahci': ['ahci', 'ich9_ahci'], 53 'ioh-3240-express-root-port': ['port.br.dev', 73 'usb-ccid': ['abProtocolDataStructure', 'abProtocolDataStructure.data'], 74 'usb-host': ['dev', 'parent_obj'], 75 'usb-mouse': ['usb-ptr-queue', 'HIDPointerEventQueue'], [all …]
|
H A D | decodetree.py | 14 # You should have received a copy of the GNU Lesser General Public 50 re_C_ident = '[a-zA-Z][a-zA-Z0-9_]*' 53 re_arg_ident = '&[a-zA-Z0-9_]*' 54 re_fld_ident = '%[a-zA-Z0-9_]*' 55 re_fmt_ident = '@[a-zA-Z0-9_]*' 56 re_pat_ident = '[a-zA-Z0-9_]*' 70 # (That is, if graph contains "A" -> ["B", "C"] then we must output 85 # https://code.activestate.com/recipes/578272-topological-sort/ 112 - set(data.keys())) 114 data.update({item:{} for item in extra_items_in_deps}) [all …]
|
/qemu/ |
H A D | cpu-common.c | 2 * CPU thread main loop - common bits for user and system mode emulation 4 * Copyright (c) 2003-2005 Fabrice Bellard 16 * You should have received a copy of the GNU Lesser General Public 21 #include "qemu/main-loop.h" 22 #include "exec/cpu-common.h" 25 #include "trace/trace-root.h" 66 if (some_cpu->cpu_index >= max_cpu_index) { in cpu_get_free_index() 67 max_cpu_index = some_cpu->cpu_index + 1; in cpu_get_free_index() 86 if (cpu->cpu_index == UNASSIGNED_CPU_INDEX) { in cpu_list_add() 88 cpu->cpu_index = cpu_get_free_index(); in cpu_list_add() [all …]
|
/qemu/block/ |
H A D | quorum.c | 4 * Copyright (C) 2012-2014 Nodalink, EURL. 13 * See the COPYING file in the top-level directory. 25 #include "qapi/qapi-events-block.h" 36 #define QUORUM_OPT_VOTE_THRESHOLD "vote-threshold" 38 #define QUORUM_OPT_REWRITE "rewrite-corrupted" 39 #define QUORUM_OPT_READ_PATTERN "read-pattern" 43 uint8_t h[HASH_LENGTH]; /* SHA-256 hash */ 47 /* A vote item */ 90 bool rewrite_corrupted;/* true if the driver must rewrite-on-read corrupted 150 g_free(acb->qcrs); in quorum_aio_finalize() [all …]
|
/qemu/tests/image-fuzzer/qcow2/ |
H A D | layout.py | 15 # You should have received a copy of the GNU General Public License 159 free_space = self.cluster_size - self.ext_offset - \ 168 self.cluster_size - len(backing_file_name) 189 (self.cluster_size - 1)) - \ 191 free_space = high_border - self.ext_offset 197 ext_padding_len = 7 - (ext_data_len - 1) % 8 221 (self.cluster_size - 1)) - \ 223 free_space = high_border - self.ext_offset 227 num_fnt_entries = min(10, (free_space - ext_header_len) / 294 # Header takes cluster #0, other clusters ##1-3 can be used [all …]
|
/qemu/include/authz/ |
H A D | pamacct.h | 16 * You should have received a copy of the GNU Lesser General Public 28 #define TYPE_QAUTHZ_PAM "authz-pam" 46 * "execute": "object-add", 48 * "qom-type": "authz-pam", 51 * "service": "qemu-vnc-tls" 58 * file /etc/pam.d/qemu-vnc-tls. For a simple file 61 * account requisite pam_listfile.so item=user sense=allow \ 72 * -object authz-pam,id=authz0,service=qemu-vnc-tls
|
/qemu/hw/nvram/ |
H A D | xlnx-versal-efuse-ctrl.c | 7 * Permission is hereby granted, free of charge, to any person obtaining a copy 10 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 27 #include "hw/nvram/xlnx-versal-efuse.h" 32 #include "hw/qdev-properties.h" 161 …* https://github.com/Xilinx/embeddedsw/blob/release-2019.2/lib/sw_services/xilnvm/src/xnvm_efuse… 220 QEMU_BUILD_BUG_ON(R_MAX != ARRAY_SIZE(((XlnxVersalEFuseCtrl *)0)->regs)); 229 bool pending = s->regs[R_EFUSE_ISR] & ~s->regs[R_EFUSE_IMR]; in efuse_imr_update_irq() 230 qemu_set_irq(s->irq_efuse_imr, pending); in efuse_imr_update_irq() 235 XlnxVersalEFuseCtrl *s = XLNX_VERSAL_EFUSE_CTRL(reg->opaque); in efuse_isr_postw() 241 XlnxVersalEFuseCtrl *s = XLNX_VERSAL_EFUSE_CTRL(reg->opaque); in efuse_ier_prew() [all …]
|
/qemu/hw/core/ |
H A D | reset.c | 4 * Copyright (c) 2003-2008 Fabrice Bellard 7 * Permission is hereby granted, free of charge, to any person obtaining a copy 10 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 50 #define TYPE_LEGACY_RESET "legacy-reset" 66 return &lr->reset_state; in legacy_reset_get_state() 73 if (type == RESET_TYPE_SNAPSHOT_LOAD && lr->skip_on_snapshot_load) { in legacy_reset_hold() 76 lr->func(lr->opaque); in legacy_reset_hold() 91 rc->get_state = legacy_reset_get_state; in legacy_reset_class_init() 92 rc->phases.hold = legacy_reset_hold; in legacy_reset_class_init() 100 lr->func = func; in qemu_register_reset() [all …]
|
H A D | loader.c | 6 * Permission is hereby granted, free of charge, to any person obtaining a copy 9 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 24 * Gunzip functionality in this file is derived from u-boot: 28 * (C) Copyright 2000-2005 41 * You should have received a copy of the GNU General Public License along 47 #include "qemu/error-report.h" 49 #include "qapi/qapi-commands-machine.h" 50 #include "qapi/type-helpers.h" 72 /* return the size or -1 if error */ 79 return -1; in get_image_size() [all …]
|
/qemu/docs/devel/ |
H A D | rcu.rst | 1 Using RCU (Read-Copy-Update) for synchronization 4 Read-copy update (RCU) is a synchronization mechanism that is used to 5 protect read-mostly data structures. RCU is very efficient and scalable 6 on the read side (it is wait-free), and thus can make the read paths 10 thus it is not used alone. Typically, the write-side will use a lock to 17 RCU is fundamentally a "wait-to-finish" mechanism. The read side marks 26 for example, reader-writer locks. It is so much more scalable that 43 ------------------- ------------------------ ------------------- 61 ------- 67 entering an RCU read-side critical section. [all …]
|
/qemu/monitor/ |
H A D | hmp.c | 4 * Copyright (c) 2003-2004 Fabrice Bellard 6 * Permission is hereby granted, free of charge, to any person obtaining a copy 9 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 27 #include "hw/qdev-core.h" 28 #include "monitor-internal.h" 32 #include "qemu/config-file.h" 38 #include "system/block-backend.h" 46 monitor_suspend(&mon->common); in monitor_command_cb() 48 monitor_resume(&mon->common); in monitor_command_cb() 53 if (!mon->rs) { in monitor_read_command() [all …]
|
/qemu/tests/qemu-iotests/ |
H A D | qed.py | 11 # See the COPYING file in the top-level directory. 91 err('cannot pick random item because table is empty') 109 '''show [header|l1|l2 <offset>]- Show header or l1/l2 tables''' 118 err('unrecognized sub-command') 121 '''duplicate l1|l2 - Duplicate a random table element''' 129 err('unrecognized sub-command') 134 '''invalidate l1|l2 - Plant an invalid table element at random''' 142 err('unrecognized sub-command') 147 '''need-check [on|off] - Test, set, or clear the QED_F_NEED_CHECK header bit''' 157 err('unrecognized sub-command') [all …]
|
/qemu/system/ |
H A D | qdev-monitor.c | 16 * You should have received a copy of the GNU Lesser General Public 28 #include "qapi/qapi-commands-qdev.h" 29 #include "qapi/qmp-registry.h" 33 #include "qapi/qobject-input-visitor.h" 34 #include "qemu/config-file.h" 35 #include "qemu/error-report.h" 38 #include "qemu/qemu-print.h" 40 #include "system/block-backend.h" 43 #include "hw/qdev-properties.h" 76 { "AC97", "ac97" }, /* -soundhw name */ [all …]
|
/qemu/rust/qemu-api/src/ |
H A D | lib.rs | 3 // SPDX-License-Identifier: GPL-2.0-or-later 11 // preserve one-item-per-"use" syntax, it is clearer 12 // for prelude-like modules 46 ) -> bindings::gpointer; in g_aligned_alloc0() 52 fn qemu_memalign(alignment: usize, size: usize) -> *mut c_void; in qemu_memalign() 57 fn g_malloc0(n_bytes: bindings::gsize) -> bindings::gpointer; in g_malloc0() 73 #[derive(Clone, Copy, Debug)] 83 // From the glibc documentation, on GNU systems, malloc guarantees 16-byte 84 // alignment on 64-bit systems and 8-byte alignment on 32-bit systems. See 85 // https://www.gnu.org/software/libc/manual/html_node/Malloc-Examples.html. [all …]
|