/qemu/linux-headers/linux/ |
H A D | iommufd.h | 1 /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ 2 /* Copyright (c) 2021-2022, NVIDIA CORPORATION & AFFILIATES. 16 * ioctl is passed in a structure pointer as the argument providing the size of 23 * - ENOTTY: The IOCTL number itself is not supported at all 24 * - E2BIG: The IOCTL number is supported, but the provided structure has 25 * non-zero in a part the kernel does not understand. 26 * - EOPNOTSUPP: The IOCTL number is supported, and the structure is 29 * - EINVAL: Everything about the IOCTL was understood, but a field is not 31 * - ENOENT: An ID or IOVA provided does not exist. 32 * - ENOMEM: Out of memory. [all …]
|
H A D | vfio.h | 1 /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ 9 * it under the terms of the GNU General Public License version 2 as 30 * capability is subject to change as groups are added or removed. 37 /* Two-stage IOMMU */ 43 * The No-IOMMU IOMMU offers no translation or isolation for devices and 44 * supports no ioctls outside of VFIO_CHECK_EXTENSION. Use of VFIO's No-IOMMU 54 * devices, so this capability is subject to change as groups are added or 61 * structure length (argsz) and flags into structures passed between 64 * As structure fields are added, argsz will increase to match and flag 78 * This field is only valid when the corresponding bit in the flags [all …]
|
/qemu/plugins/ |
H A D | plugin.h | 7 * See the COPYING file in the top-level directory. 9 * SPDX-License-Identifier: GPL-2.0-or-later 26 * Use the HT as a hash map by inserting k == v, which saves memory as 31 * Use the HT as a hash map. Note that we could use a list here, 39 * @lock protects the struct as well as ctx->uninstalling. 73 enum qemu_plugin_mem_rw rw, 74 enum qemu_plugin_op op, 82 void plugin_register_cb(qemu_plugin_id_t id, enum qemu_plugin_event ev, 86 enum qemu_plugin_event ev); 89 plugin_register_cb_udata(qemu_plugin_id_t id, enum qemu_plugin_event ev, [all …]
|
H A D | api.c | 14 * As such all the public functions in here are exported in 15 * qemu-plugin.h. 17 * The general life-cycle of a plugin is: 19 * - plugin is loaded, public qemu_plugin_install called 20 * - the install func registers callbacks for events 21 * - usually an atexit_cb is registered to dump info at the end 22 * - when a registered event occurs the plugin is called 23 * - some events pass additional info 24 * - during translation the plugin can decide to instrument any 26 * - when QEMU exits all the registered atexit callbacks are called [all …]
|
H A D | core.c | 10 * See the COPYING file in the top-level directory. 12 * SPDX-License-Identifier: GPL-2.0-or-later 21 #include "exec/tb-flush.h" 22 #include "tcg/tcg-op-common.h" 50 bitmap_copy(cpu->plugin_state->event_mask, in plugin_cpu_update__async() 64 enum qemu_plugin_event ev) in plugin_unregister_cb__locked() 66 struct qemu_plugin_cb *cb = ctx->callbacks[ev]; in plugin_unregister_cb__locked() 73 ctx->callbacks[ev] = NULL; in plugin_unregister_cb__locked() 86 static void plugin_vcpu_cb__simple(CPUState *cpu, enum qemu_plugin_event ev) in plugin_vcpu_cb__simple() 97 qemu_plugin_vcpu_simple_cb_t func = cb->f.vcpu_simple; in plugin_vcpu_cb__simple() [all …]
|
/qemu/include/hw/xen/interface/ |
H A D | grant_table.h | 1 /* SPDX-License-Identifier: MIT */ 6 * page-ownership transfers. 27 * integer, which indexes into the grant table. It acts as a 31 * This capability-based system allows shared-memory communications 43 /* Some rough guidelines on accessing and updating grant-table entries 44 * in a concurrency-safe manner. For more information, Linux contains a 46 …* http://git.kernel.org/?p=linux/kernel/git/torvalds/linux.git;a=blob;f=drivers/xen/grant-table.c;… 48 * NB. WMB is a no-op on current-generation x86 processors. However, a 52 * 1. Write ent->domid. 53 * 2. Write ent->frame: [all …]
|
H A D | xen.h | 1 /* SPDX-License-Identifier: MIT */ 13 #include "xen-compat.h" 16 #include "arch-x86/xen.h" 18 #include "arch-arm.h" 72 * ` enum hypercall_num { // __HYPERVISOR_* => HYPERVISOR_*() 118 /* Architecture-specific hypercall definitions. */ 140 /* New event-channel and physdev hypercalls introduced in 0x00030202. */ 158 * In the side comments, 'V.' denotes a per-VCPU VIRQ while 'G.' denotes a 159 * global VIRQ. The former can be bound once per VCPU and cannot be re-bound. 161 * allocated to VCPU0 but can subsequently be re-bound. [all …]
|
/qemu/include/block/ |
H A D | block-common.h | 16 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 27 #include "qapi/qapi-types-block-core.h" 31 * co_wrapper{*}: Function specifiers used by block-coroutine-wrapper.py 34 * generated by scripts/block-coroutine-wrapper.py 36 * Usage: read docs/devel/block-coroutine-wrapper.rst 39 * - co_wrapper functions can be called by only non-coroutine context, because 41 * - co_wrapper_mixed functions can be called by both coroutine and 42 * non-coroutine context. 43 * - co_wrapper_bdrv_rdlock are co_wrapper functions but automatically take and 45 * - co_wrapper_mixed_bdrv_rdlock are co_wrapper_mixed functions but [all …]
|
/qemu/pc-bios/s390-ccw/ |
H A D | virtio.h | 7 * your option) any later version. See the COPYING file in the top-level 24 enum VirtioDevType { 31 typedef enum VirtioDevType VirtioDevType; 53 /* This marks a buffer as continuing via the next field. */ 55 /* This marks a buffer as write-only (otherwise read-only). */ 60 /* Internal flag to mark follow-up segments as such */ 65 /* Address (guest-physical). */ 69 /* The flags as indicated above. */ 70 uint16_t flags; member 77 uint16_t flags; member [all …]
|
/qemu/include/standard-headers/linux/ |
H A D | ethtool.h | 1 /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ 19 #include "standard-headers/linux/const.h" 20 #include "standard-headers/linux/types.h" 21 #include "standard-headers/linux/if_ether.h" 26 * have the same layout for 32-bit and 64-bit userland. 38 * struct ethtool_cmd - DEPRECATED, link control and status 41 * @supported: Bitmask of %SUPPORTED_* flags for the link modes, 43 * interface supports autonegotiation or auto-detection. 44 * Read-only. 45 * @advertising: Bitmask of %ADVERTISED_* flags for the link modes, [all …]
|
H A D | virtio_vsock.h | 17 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS IS'' 29 * Copyright (C) Red Hat, Inc., 2013-2015 37 #include "standard-headers/linux/types.h" 38 #include "standard-headers/linux/virtio_ids.h" 39 #include "standard-headers/linux/virtio_config.h" 48 enum virtio_vsock_event_id { 62 uint16_t type; /* enum virtio_vsock_type */ 63 uint16_t op; /* enum virtio_vsock_op */ 64 uint32_t flags; member 69 enum virtio_vsock_type { [all …]
|
/qemu/target/alpha/ |
H A D | cpu.h | 8 * License as published by the Free Software Foundation; either 23 #include "cpu-qom.h" 24 #include "exec/cpu-common.h" 25 #include "exec/cpu-defs.h" 26 #include "exec/cpu-interrupt.h" 27 #include "qemu/cpu-float.h" 33 enum { 44 enum { 50 enum { 60 enum { [all …]
|
/qemu/include/hw/xen/interface/arch-x86/ |
H A D | xen.h | 1 /* SPDX-License-Identifier: MIT */ 3 * arch-x86/xen.h 7 * Copyright (c) 2004-2006, K A Fraser 25 * XEN_GUEST_HANDLE represents a guest pointer, when passed as a field 27 * XEN_GUEST_HANDLE_PARAM represent a guest pointer, when passed as an 47 #include "xen-x86_32.h" 55 #include "xen-x86_64.h" 72 * ` enum neg_errnoval 78 * start of the GDT because some stupid OSes export hard-coded selector values 79 * in their ABI. These hard-coded values are always near the start of the GDT, [all …]
|
/qemu/hw/vfio/ |
H A D | vfio-migration-internal.h | 6 * SPDX-License-Identifier: GPL-2.0-or-later 20 * Flags to be used as unique delimiters for VFIO devices in the migration 21 * stream. These flags are composed as: 22 * 0xffffffff => MSB 32-bit all 1s 24 * 0x0000 => 16-bits reserved for flags 67 enum vfio_device_mig_state new_state, 68 enum vfio_device_mig_state recover_state,
|
/qemu/qapi/ |
H A D | cxl.json | 1 # -*- Mode: Python -*- 24 { 'enum': 'CxlEventLog', 32 # @cxl-inject-general-media-event: 42 # @flags: Event Record Flags. See CXL r3.0 Table 8-42 Common Event 43 # Record Format, Event Record Flags for subfield definitions. 46 # lower bits include some flags. See CXL r3.0 Table 8-43 General 50 # information. See CXL r3.0 Table 8-43 General Media Event 53 # @type: Type of memory event that occurred. See CXL r3.0 Table 8-43 57 # @transaction-type: Type of first transaction that caused the event 58 # to occur. See CXL r3.0 Table 8-43 General Media Event Record, [all …]
|
H A D | run-state.json | 1 # -*- Mode: Python -*- 16 # @finish-migrate: guest is paused to finish the migration process 20 # the end of the migration. This depends on the command-line -S 24 # @internal-error: An internal error that prevents further guest 27 # @io-error: the last IOP has failed and the device is configured to 34 # @prelaunch: QEMU was started with -S and guest has not started 36 # @restore-vm: guest is paused to restore VM state 40 # @save-vm: guest is paused to save the VM state 42 # @shutdown: guest is shut down (and -no-shutdown is in use) 49 # @guest-panicked: guest has been panicked as a result of guest OS [all …]
|
/qemu/include/libdecnumber/ |
H A D | decContext.h | 8 the terms of the GNU General Public License as published by the Free 29 02110-1301, USA. */ 31 /* ------------------------------------------------------------------ */ 33 /* ------------------------------------------------------------------ */ 37 /* status -- [any bits may be cleared, but not set, by user] */ 38 /* round -- must be one of the enumerated rounding modes */ 44 /* clamp -- must be either 0 or 1 */ 45 /* digits -- must be in the range 1 through 999999999 */ 46 /* emax -- must be in the range 0 through 999999999 */ 47 /* emin -- must be in the range 0 through -999999999 */ [all …]
|
/qemu/hw/scsi/ |
H A D | vmw_pvscsi.h | 4 * Copyright (C) 2008-2009, VMware, Inc. All Rights Reserved. 7 * under the terms of the GNU General Public License as published by the 18 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 30 #define MASK(n) ((1 << (n)) - 1) /* make an n-bit mask */ 35 enum HostBusAdapterStatus { 72 enum PVSCSIRegOffset { 91 enum PVSCSICommands { 108 #define PVSCSI_COMMAND_PROCESSING_FAILED (-1) 109 #define PVSCSI_COMMAND_NOT_ENOUGH_DATA (-2) 112 * Command descriptor for PVSCSI_CMD_RESET_DEVICE -- [all …]
|
/qemu/include/qemu/ |
H A D | qemu-plugin.h | 6 * See the COPYING file in the top-level directory. 8 * SPDX-License-Identifier: GPL-2.0-or-later 20 * For best performance, build the plugin with -fvisibility=hidden so that 41 * typedef qemu_plugin_id_t - Unique plugin ID 56 * - removed qemu_plugin_n_vcpus and qemu_plugin_n_max_vcpus 57 * - Remove qemu_plugin_register_vcpu_{tb, insn, mem}_exec_inline. 59 * thread-safety for operations. 62 * - modified arguments and return value of qemu_plugin_insn_data to copy 63 * the data into a user-provided buffer instead of returning a pointer 67 * - added qemu_plugin_read_memory_vaddr [all …]
|
/qemu/hw/9pfs/ |
H A D | 9p.h | 7 #include "fsdev/file-op-9p.h" 8 #include "fsdev/9p-iov-marshal.h" 13 enum { 86 enum { 98 typedef enum P9ProtoVersion { 122 return g_strdup_printf("%s/%s", ctx->fs_root, path); in rpath() 140 /* According to the specification, 9p messages start with a 7-byte header. 169 enum { 183 /* 9p2000.L xattr flags (matches Linux values) */ 193 int flags; member [all …]
|
/qemu/hw/usb/ |
H A D | hcd-xhci.h | 5 * Date: 2011-05-11 ; Author: Hector Martin <hector@marcansoft.com> 6 * Based on usb-ohci.c, emulates Renesas NEC USB 3.0 10 * License as published by the Free Software Foundation; either 38 enum xhci_flags { 42 typedef enum TRBType { 80 typedef enum TRBCCode { 147 uint32_t flags; member 181 AddressSpace *as; member 192 uint32_t flags; member 197 * Callback for special-casing interrupter mapping support. NULL for most [all …]
|
/qemu/rust/hw/char/pl011/src/ |
H A D | registers.rs | 3 // SPDX-License-Identifier: GPL-2.0-or-later 5 //! Device registers exposed as typed structs which are backed by arbitrary 20 pub enum RegisterOffset { 40 /// `IrDA` Low-Power Counter Register 94 /// read for RX. It is a 12-bit register, where bits 7..0 are the 107 // bilge is not very const-friendly, unfortunately 118 /// The TRM confusingly describes this offset as UARTRSR for reads 142 fn default() -> Self { in default() 151 /// This has the usual inbound RS232 modem-control signals, plus flags 154 pub struct Flags { struct [all …]
|
/qemu/include/hw/acpi/ |
H A D | aml-build.h | 4 #include "hw/acpi/acpi-defs.h" 5 #include "hw/acpi/bios-linker-loader.h" 13 #define ACPI_BUILD_LOADER_FILE "etc/table-loader" 17 typedef enum { 21 AML_EXT_PACKAGE, /* Same as AML_PACKAGE but also has 'ExOpPrefix' */ 22 AML_BUFFER, /* data encoded as 'DefBuffer' */ 23 AML_RES_TEMPLATE, /* encoded as ResourceTemplate macro */ 34 typedef enum { 41 typedef enum { 46 typedef enum { [all …]
|
/qemu/target/i386/tcg/ |
H A D | decode-new.h | 2 * Decode table flags, mostly based on Intel SDM. 10 * License as published by the Free Software Foundation; either 22 typedef enum X86OpType { 35 X86_TYPE_L, /* The upper 4 bits of the immediate select a 128-bit register */ 52 X86_TYPE_I_unsigned, /* Immediate, zero-extended */ 53 X86_TYPE_nop, /* modrm operand decoded but not loaded into s->T{0,1} */ 54 X86_TYPE_2op, /* 2-operand RMW instruction */ 55 X86_TYPE_LoBits, /* encoded in bits 0-2 of the operand + REX.B */ 56 X86_TYPE_0, /* Hard-coded GPRs (RAX..RDI) */ 64 X86_TYPE_ES, /* Hard-coded segment registers */ [all …]
|
/qemu/rust/qemu-api/src/ |
H A D | vmstate.rs | 3 // SPDX-License-Identifier: GPL-2.0-or-later 17 //! structs and for `bilge`-defined types) 24 //! `include/migration/vmstate.h`. These are not type-safe and only provide 45 /// const fn size_of_field<T>(_: PhantomData<T>) -> usize { 58 // https://users.rust-lang.org/t/inferring-type-of-field/122857 63 … const fn phantom__<T>(_: &T) -> ::core::marker::PhantomData<T> { ::core::marker::PhantomData } 76 /// This enum contains the contents of the `VMStateField`'s `info` member, 77 /// but as an `enum` instead of a pointer. 79 pub enum VMStateFieldType { 143 /// to implement it except via macros that do it for you, such as [all …]
|