/qemu/include/ui/ |
H A D | spice-display.h | 27 #include "ui/qemu-pixman.h" 32 # include "ui/egl-helpers.h" 33 # include "ui/egl-context.h" 45 * Internal enum to differentiate between options for 53 typedef enum qxl_async_io { 58 enum { 108 /* cursor (without qxl): displaychangelistener -> spice server */ 114 /* cursor (with qxl): qxl local renderer -> displaychangelistener */ 172 qxl_async_io async); 177 qxl_async_io async); [all …]
|
/qemu/replay/ |
H A D | replay-internal.h | 5 * replay-internal.h 7 * Copyright (c) 2010-2015 Institute for System Programming 11 * See the COPYING file in the top-level directory. 17 typedef enum ReplayAsyncEventKind { 34 enum ReplayEvents { 41 /* for async events */ 43 EVENT_ASYNC_LAST = EVENT_ASYNC + REPLAY_ASYNC_COUNT - 1, 61 EVENT_CLOCK_LAST = EVENT_CLOCK + REPLAY_CLOCK_COUNT - 1, 65 EVENT_CHECKPOINT_LAST = EVENT_CHECKPOINT + CHECKPOINT_COUNT - 1, 72 * typedef ReplayState - global tracking Replay state [all …]
|
/qemu/python/qemu/qmp/ |
H A D | protocol.py | 2 Generic Asynchronous Message-based Protocol Support 14 # pylint: disable=too-many-lines 18 from enum import Enum 51 _TaskFN = Callable[[], Awaitable[None]] # aka ``async def func() -> None`` 58 class Runstate(Enum): 79 :param error_message: Human-readable string describing the error. 80 :param exc: The root-cause exception. 84 #: Human-readable error string 89 def __str__(self) -> str: 105 :param error_message: Human-readable string describing the state violation. [all …]
|
/qemu/include/system/ |
H A D | replay.h | 4 * Copyright (c) 2010-2015 Institute for System Programming 8 * See the COPYING file in the top-level directory. 14 #include "exec/replay-core.h" 15 #include "qapi/qapi-types-misc.h" 16 #include "qapi/qapi-types-run-state.h" 17 #include "qapi/qapi-types-ui.h" 21 enum ReplayClockKind { 28 typedef enum ReplayClockKind ReplayClockKind; 31 enum ReplayCheckpoint { 43 typedef enum ReplayCheckpoint ReplayCheckpoint; [all …]
|
/qemu/include/hw/usb/ |
H A D | msd.h | 13 enum USBMSDMode { 29 enum USBMSDMode mode; 36 /* For async completion. */ 38 /* usb-storage only */ 47 #define TYPE_USB_STORAGE "usb-storage-dev"
|
/qemu/hw/usb/ |
H A D | hcd-uhci.c | 8 * Support for fully async operation and multiple outstanding transactions 31 #include "hw/usb/uhci-regs.h" 35 #include "hw/qdev-properties.h" 41 #include "qemu/main-loop.h" 44 #include "hcd-uhci.h" 55 enum { 71 * Pending async transaction. 108 static void uhci_async_cancel(UHCIAsync *async); 114 if ((td->token & (0xf << 15)) == 0) { in uhci_queue_token() 116 return td->token & 0x7ff00; in uhci_queue_token() [all …]
|
H A D | hcd-ehci.c | 5 * Copyright(c) 2011-2012 Red Hat, Inc. 32 #include "hw/usb/ehci-regs.h" 33 #include "hw/usb/hcd-ehci.h" 36 #include "qemu/error-report.h" 37 #include "qemu/main-loop.h" 48 #define PERIODIC_ACTIVE 512 /* Micro-frames */ 52 typedef enum { 83 (s)->last_run_ns = qemu_clock_get_ns(QEMU_CLOCK_VIRTUAL); 117 [PERIODICLISTBASE] = "P-LIST BASE", 118 [ASYNCLISTADDR] = "A-LIST ADDR", [all …]
|
H A D | hcd-ehci.h | 212 enum async_state { 229 enum async_state async; member 237 int async; member 240 /* cached data from guest - needs to be flushed 330 #define TYPE_PCI_EHCI "pci-ehci-usb" 342 #define TYPE_SYS_BUS_EHCI "sysbus-ehci-usb" 343 #define TYPE_PLATFORM_EHCI "platform-ehci-usb" 344 #define TYPE_EXYNOS4210_EHCI "exynos4210-ehci-usb" 345 #define TYPE_AW_H3_EHCI "aw-h3-ehci-usb" 346 #define TYPE_NPCM7XX_EHCI "npcm7xx-ehci-usb" [all …]
|
H A D | hcd-dwc2.h | 2 * dwc-hsotg (dwc2) USB host controller state definitions 4 * Based on hw/usb/hcd-ehci.h 38 enum async_state { 55 int32_t async; member 128 uint32_t rsvd1[8]; /* 420-43c */ 153 /* TODO - implement FIFO registers for slave mode */ 183 #define TYPE_DWC2_USB "dwc2-usb"
|
H A D | hcd-ehci-sysbus.c | 19 #include "hw/qdev-properties.h" 20 #include "hw/usb/hcd-ehci.h" 24 .name = "ehci-sysbus", 35 DEFINE_PROP_BOOL("companion-enable", EHCISysBusState, ehci.companion_enable, 43 EHCIState *s = &i->ehci; in usb_ehci_sysbus_realize() 46 sysbus_init_irq(d, &s->irq); in usb_ehci_sysbus_realize() 53 EHCIState *s = &i->ehci; in usb_ehci_sysbus_reset() 63 EHCIState *s = &i->ehci; in ehci_sysbus_init() 65 s->capsbase = sec->capsbase; in ehci_sysbus_init() 66 s->opregbase = sec->opregbase; in ehci_sysbus_init() [all …]
|
H A D | dev-storage.c | 12 #include "qemu/error-report.h" 15 #include "qemu/config-file.h" 19 #include "hw/qdev-properties.h" 40 enum { 182 USBPacket *p = s->packet; in usb_msd_packet_complete() 185 * Set s->packet to NULL before calling usb_packet_complete in usb_msd_packet_complete() 190 p->status = status; in usb_msd_packet_complete() 191 s->packet = NULL; in usb_msd_packet_complete() 192 usb_packet_complete(&s->dev, p); in usb_msd_packet_complete() 199 if (s->packet) { in usb_msd_fatal_error() [all …]
|
/qemu/include/qemu/ |
H A D | plugin.h | 5 * See the COPYING file in the top-level directory. 10 #include "qemu/config-file.h" 11 #include "qemu/qemu-plugin.h" 12 #include "qemu/error-report.h" 15 #include "qemu/plugin-event.h" 31 make_plugin_meminfo(MemOpIdx oi, enum qemu_plugin_mem_rw rw) in make_plugin_meminfo() 40 static inline enum qemu_plugin_mem_rw 69 enum plugin_dyn_cb_type { 81 enum qemu_plugin_mem_rw rw; 87 enum qemu_plugin_mem_rw rw; [all …]
|
H A D | main-loop.h | 4 * Copyright (c) 2003-2008 Fabrice Bellard 30 #include "system/event-loop-base.h" 34 #define TYPE_MAIN_LOOP "main-loop" 49 * SIGUSR2, thread signals (SIGFPE, SIGILL, SIGSEGV, SIGBUS) and real-time 67 * is wait-free, thread-safe and signal-safe. 118 * qemu_add_polling_cb: Register a Windows-specific polling callback 133 * @opaque: A pointer-size value that is passed to @func. 138 * qemu_del_polling_cb: Unregister a Windows-specific polling callback 144 * @opaque: A pointer-size value that was passed to qemu_add_polling_cb. 160 * If the same HANDLE is added twice, this function returns -1. [all …]
|
/qemu/include/hw/xen/interface/io/ |
H A D | xs_wire.h | 1 /* SPDX-License-Identifier: MIT */ 12 enum xsd_sockmsg_type 89 /* Generally followed by nul-terminated string(s). */ 92 enum xs_watch_type 101 * Inter-domain shared memory communications. */ 104 #define MASK_XENSTORE_IDX(idx) ((idx) & (XENSTORE_RING_SIZE-1)) 107 char rsp[XENSTORE_RING_SIZE]; /* Replies and async watch events. */ 128 #define XENSTORE_CONNECTED 0 /* the steady-state */ 142 * c-file-style: "BSD" 143 * c-basic-offset: 4 [all …]
|
/qemu/hw/ufs/ |
H A D | ufs.h | 8 * SPDX-License-Identifier: GPL-2.0-or-later 32 #define TYPE_UFS_BUS "ufs-bus" 35 typedef enum UfsRequestState { 43 typedef enum UfsReqResult { 49 #define UFS_INVALID_SLOT (-1) 53 int slot; /* -1 when it's a MCQ request */ 71 return req->sq != NULL; in ufs_mcq_req() 106 QEMUBH *bh; /* Bottom half to process requests in async */ 155 return u->mcq_op_reg[qid].sq.tp; in ufs_mcq_sq_tail() 160 u->mcq_op_reg[qid].sq.tp = db; in ufs_mcq_update_sq_tail() [all …]
|
/qemu/hw/display/ |
H A D | qxl.h | 8 #include "ui/qemu-spice.h" 9 #include "ui/spice-display.h" 12 enum qxl_mode { 42 enum qxl_mode mode; 113 /* user-friendly properties (in megabytes) */ 128 #define TYPE_PCI_QXL "pci-qxl" 138 if (_qxl->debug >= _level) { \ 139 fprintf(stderr, "qxl-%d: ", _qxl->id); \ 176 qxl_async_io async, QXLCookie *cookie); 184 /* qxl-logger.c */ [all …]
|
/qemu/target/riscv/ |
H A D | cpu_helper.c | 2 * RISC-V CPU helpers for qemu. 4 * Copyright (c) 2016-2017 Sagar Karandikar, sagark@eecs.berkeley.edu 5 * Copyright (c) 2017-2018 SiFive, Inc. 22 #include "qemu/main-loop.h" 27 #include "exec/page-protection.h" 31 #include "tcg/tcg-op.h" 32 #include "accel/tcg/cpu-ops.h" 34 #include "semihosting/common-semi.h" 45 bool virt = env->virt_enabled; in riscv_env_mmu_index() 46 int mode = env->priv; in riscv_env_mmu_index() [all …]
|
H A D | cpu.h | 2 * QEMU RISC-V CPU 4 * Copyright (c) 2016-2017 Sagar Karandikar, sagark@eecs.berkeley.edu 5 * Copyright (c) 2017-2018 SiFive, Inc. 25 #include "hw/qdev-properties.h" 26 #include "exec/cpu-common.h" 27 #include "exec/cpu-defs.h" 28 #include "exec/cpu-interrupt.h" 30 #include "qemu/cpu-float.h" 35 #include "qapi/qapi-types-common.h" 36 #include "cpu-qom.h" [all …]
|
/qemu/include/exec/ |
H A D | cpu-common.h | 6 * SPDX-License-Identifier: LGPL-2.1+ 14 #include "tcg/debug-assert.h" 15 #include "exec/page-protection.h" 17 #define EXCP_INTERRUPT 0x10000 /* async interruption */ 22 #define EXCP_ATOMIC 0x10005 /* stop-the-world and emulate atomic */ 41 enum device_endian { 112 * convenience pointer cpu->as. 113 * The target-specific code which registers ASes is responsible 117 * cpu->num_ases to the total number of address spaces it needs 154 * This usually implies that write operations are side-effect free. This allows [all …]
|
/qemu/ui/ |
H A D | vnc.h | 38 #include "io/channel-socket.h" 39 #include "io/channel-tls.h" 40 #include "io/net-listener.h" 45 #include "vnc-palette.h" 46 #include "vnc-enc-zrle.h" 47 #include "ui/kbd-state.h" 92 #define VNC_DIRTY_BPL(x) (sizeof((x)->dirty) / VNC_MAX_HEIGHT * BITS_PER_BYTE) 102 #include "vnc-auth-vencrypt.h" 104 #include "vnc-auth-sasl.h" 106 #include "vnc-ws.h" [all …]
|
/qemu/hw/avr/ |
H A D | atmega.c | 4 * Copyright (c) 2019-2020 Philippe Mathieu-Daudé 7 * See the COPYING file in the top-level directory. 8 * SPDX-License-Identifier: GPL-2.0-or-later 17 #include "system/address-spaces.h" 19 #include "hw/qdev-properties.h" 26 enum AtmegaPeripheral { 42 enum AtmegaPeripheral power_index; 89 [TIMER2] = { 0xb0, POWER0, 6, 0x70, 0x37, false }, /* TODO async */ 105 enum AtmegaIrq { 196 int cpu_irq = k->irq[peripheral_index]; in connect_peripheral_irq() [all …]
|
/qemu/util/ |
H A D | fdmon-io_uring.c | 1 /* SPDX-License-Identifier: GPL-2.0-or-later */ 28 * 1. IORING_OP_POLL_ADD - adds a file descriptor to be monitored. 29 * 2. IORING_OP_POLL_REMOVE - removes a file descriptor being monitored. When 31 * re-added with the new poll mask, so this operation is also used as part 33 * 3. IORING_OP_TIMEOUT - added every time a blocking syscall is made to wait 34 * for events. This operation self-cancels if another event completes 42 * ctx->submit_list so that fdmon_io_uring_wait() can submit IORING_OP_POLL_ADD 49 #include "aio-posix.h" 51 enum { 82 struct io_uring *ring = &ctx->fdmon_io_uring; in get_sqe() [all …]
|
H A D | async.c | 4 * Copyright (c) 2003-2008 Fabrice Bellard 5 * Copyright (c) 2009-2017 QEMU contributors 29 #include "block/thread-pool.h" 30 #include "block/graph-lock.h" 31 #include "qemu/main-loop.h" 35 #include "block/raw-aio.h" 37 #include "qemu/coroutine-tls.h" 45 enum { 75 AioContext *ctx = bh->ctx; in aio_bh_enqueue() 82 old_flags = qatomic_fetch_or(&bh->flags, BH_PENDING | new_flags); in aio_bh_enqueue() [all …]
|
/qemu/hw/dma/ |
H A D | omap_dma.c | 4 * Copyright (C) 2006-2008 Andrzej Zaborowski <balrog@zabor.org> 5 * Copyright (C) 2007-2008 Lauro Ramos Venancio <lauro.venancio@indt.org.br> 34 enum omap_dma_port port[2]; 112 enum omap_dma_model model; 140 s->intr_update(s); in omap_dma_interrupts_update() 145 struct omap_dma_reg_set_s *a = &ch->active_set; in omap_dma_channel_load() 147 int omap_3_1 = !ch->omap_3_1_compatible_disable; in omap_dma_channel_load() 154 a->src = ch->addr[0]; in omap_dma_channel_load() 155 a->dest = ch->addr[1]; in omap_dma_channel_load() 156 a->frames = ch->frames; in omap_dma_channel_load() [all …]
|
/qemu/plugins/ |
H A D | loader.c | 13 * See the COPYING file in the top-level directory. 15 * SPDX-License-Identifier: GPL-2.0-or-later 19 #include "qemu/error-report.h" 20 #include "qemu/config-file.h" 32 #include "qemu/target-info.h" 33 #include "exec/tb-flush.h" 84 if (strcmp(desc->path, path) == 0) { in plugin_find_desc() 106 error_setg(errp, "requires a non-empty argument"); in plugin_add() 109 p = plugin_find_desc(arg->head, value); in plugin_add() 112 p->path = g_strdup(value); in plugin_add() [all …]
|