/qemu/docs/interop/ |
H A D | qemu-ga.rst | 1 .. _qemu-ga: 7 -------- 9 **qemu-ga** [*OPTIONS*] 12 ----------- 18 - get information from the guest 19 - set the guest's system time 20 - read/write a file 21 - sync and freeze the filesystems 22 - suspend the guest 23 - reconfigure guest local processors [all …]
|
/qemu/block/ |
H A D | io_uring.c | 9 * See the COPYING file in the top-level directory. 16 #include "block/raw-aio.h" 18 #include "qemu/defer-call.h" 20 #include "system/block-backend.h" 48 bool blocked; member 71 QSIMPLEQ_INSERT_TAIL(&s->io_q.submit_queue, luringcb, next); in luring_resubmit() 72 s->io_q.in_queue++; in luring_resubmit() 90 luringcb->total_read += nread; in luring_resubmit_short_read() 91 remaining = luringcb->qiov->size - luringcb->total_read; in luring_resubmit_short_read() 94 resubmit_qiov = &luringcb->resubmit_qiov; in luring_resubmit_short_read() [all …]
|
H A D | linux-aio.c | 8 * See the COPYING file in the top-level directory. 14 #include "block/raw-aio.h" 17 #include "qemu/defer-call.h" 19 #include "system/block-backend.h" 27 * Queue size (per-device). 36 /* Maximum number of requests in a batch. (default value) */ 53 bool blocked; member 74 return (ssize_t)(((uint64_t)ev->res2 << 32) | ev->res); in io_event_ret() 84 ret = laiocb->ret; in qemu_laio_process_completion() 85 if (ret != -ECANCELED) { in qemu_laio_process_completion() [all …]
|
H A D | mirror.c | 10 * See the COPYING.LIB file in the top-level directory. 21 #include "block/dirty-bitmap.h" 22 #include "system/block-backend.h" 32 /* The mirroring buffer is a list of granularity-sized chunks. 52 /* Used to block operations on the drive-mirror-replace target */ 138 qatomic_set(&s->actively_synced, false); in mirror_error_action() 140 return block_job_error_action(&s->common, s->on_source_error, in mirror_error_action() 143 return block_job_error_action(&s->common, s->on_target_error, in mirror_error_action() 153 uint64_t self_start_chunk = offset / s->granularity; in mirror_wait_on_conflicts() 154 uint64_t self_end_chunk = DIV_ROUND_UP(offset + bytes, s->granularity); in mirror_wait_on_conflicts() [all …]
|
/qemu/hw/misc/ |
H A D | tz-mpc.c | 21 #include "hw/misc/tz-mpc.h" 22 #include "hw/qdev-properties.h" 25 * non-secure transactions. 76 qemu_set_irq(s->irq, s->int_stat && s->int_en); in tz_mpc_irq_update() 87 .addr_mask = s->blocksize - 1, in tz_mpc_iommu_notify() 90 hwaddr addr = lutidx * s->blocksize * 32; in tz_mpc_iommu_notify() 93 for (i = 0; i < 32; i++, addr += s->blocksize) { in tz_mpc_iommu_notify() 110 memory_region_notify_iommu(&s->upstream, IOMMU_IDX_S, event); in tz_mpc_iommu_notify() 111 memory_region_notify_iommu(&s->upstream, IOMMU_IDX_NS, event); in tz_mpc_iommu_notify() 116 event.entry.target_as = &s->blocked_io_as; in tz_mpc_iommu_notify() [all …]
|
H A D | tz-msc.c | 21 #include "hw/misc/tz-msc.h" 22 #include "hw/qdev-properties.h" 26 bool level = s->irq_status; in tz_msc_update_irq() 29 qemu_set_irq(s->irq, level); in tz_msc_update_irq() 37 s->cfg_nonsec = level; in tz_msc_cfg_nonsec() 45 s->cfg_sec_resp = level; in tz_msc_cfg_sec_resp() 54 s->irq_clear = level; in tz_msc_irq_clear() 56 s->irq_status = false; in tz_msc_irq_clear() 64 * MemTxAttrs indicating a non-secure transaction. 78 * is blocked, the caller must check cfg_sec_resp to determine in tz_msc_check() [all …]
|
H A D | aspeed_sdmc.c | 7 * the COPYING file in the top-level directory. 13 #include "qemu/error-report.h" 15 #include "hw/qdev-properties.h" 102 * what we care about right now as it is checked by U-Boot to 164 if (addr >= ARRAY_SIZE(s->regs)) { in aspeed_sdmc_read() 166 "%s: Out-of-bounds read at offset 0x%" HWADDR_PRIx "\n", in aspeed_sdmc_read() 171 trace_aspeed_sdmc_read(addr, s->regs[addr]); in aspeed_sdmc_read() 172 return s->regs[addr]; in aspeed_sdmc_read() 183 if (addr >= ARRAY_SIZE(s->regs)) { in aspeed_sdmc_write() 185 "%s: Out-of-bounds write at offset 0x%" HWADDR_PRIx "\n", in aspeed_sdmc_write() [all …]
|
H A D | tz-ppc.c | 21 #include "hw/misc/tz-ppc.h" 22 #include "hw/qdev-properties.h" 26 bool level = s->irq_status && s->irq_enable; in tz_ppc_update_irq() 29 qemu_set_irq(s->irq, level); in tz_ppc_update_irq() 38 s->cfg_nonsec[n] = level; in tz_ppc_cfg_nonsec() 47 s->cfg_ap[n] = level; in tz_ppc_cfg_ap() 55 s->cfg_sec_resp = level; in tz_ppc_cfg_sec_resp() 63 s->irq_enable = level; in tz_ppc_irq_enable() 73 s->irq_clear = level; in tz_ppc_irq_clear() 75 s->irq_status = false; in tz_ppc_irq_clear() [all …]
|
/qemu/chardev/ |
H A D | spice.c | 3 #include "ui/qemu-spice.h" 7 #include "qemu/error-report.h" 33 len -= last_out; in vmc_write() 44 int bytes = MIN(len, scd->datalen); in vmc_read() 47 memcpy(buf, scd->datapos, bytes); in vmc_read() 48 scd->datapos += bytes; in vmc_read() 49 scd->datalen -= bytes; in vmc_read() 50 assert(scd->datalen >= 0); in vmc_read() 52 if (scd->datalen == 0) { in vmc_read() 53 scd->datapos = 0; in vmc_read() [all …]
|
/qemu/bsd-user/ |
H A D | signal.c | 4 * Copyright (c) 2003 - 2008 Fabrice Bellard 25 #include "exec/page-protection.h" 26 #include "user/page-protection.h" 28 #include "user/tswap-target.h" 30 #include "signal-common.h" 32 #include "accel/tcg/cpu-ops.h" 33 #include "host-signal.h" 45 return sp - ts->sigaltstack_used.ss_sp < ts->sigaltstack_used.ss_size; in on_sig_stack() 50 return ts->sigaltstack_used.ss_size == 0 ? SS_DISABLE : in sas_ss_flags() 78 signum--; in target_sigaddset() [all …]
|
/qemu/migration/ |
H A D | colo.c | 2 * COarse-grain LOck-stepping Virtual Machines for Non-stop Service (COLO) 10 * later. See the COPYING file in the top-level directory. 16 #include "qapi/qapi-commands-migration.h" 18 #include "qemu-file.h" 21 #include "io/channel-buffer.h" 23 #include "qemu/error-report.h" 24 #include "qemu/main-loop.h" 29 #include "net/colo-compare.h" 32 #include "qapi/qapi-events-migration.h" 50 return (s->state == MIGRATION_STATUS_COLO); in migration_in_colo_state() [all …]
|
/qemu/include/hw/xen/interface/ |
H A D | vcpu.h | 1 /* SPDX-License-Identifier: MIT */ 20 * @extra_args == Operation-specific extra arguments (NULL if none). 25 * newly-initialised VCPU will not run until it is brought up by VCPUOP_up. 41 * Bring down a VCPU (i.e., make it non-runnable). 45 * idea to ensure that the VCPU has entered a non-critical loop before 51 * practise to move a VCPU onto an 'idle' or default page table, LDT and 90 /* VCPU is blocked (a.k.a. idle). It is therefore not runnable. */ 94 * VCPU is not runnable, but it is not blocked. 140 * Set or stop a VCPU's single-shot timer. Every VCPU has one single-shot 153 /* Require the timeout to be in the future (return -ETIME if it's passed). */ [all …]
|
/qemu/linux-user/loongarch64/ |
H A D | signal.c | 1 /* SPDX-License-Identifier: GPL-2.0-or-later */ 10 #include "user-internals.h" 11 #include "signal-common.h" 12 #include "linux-user/trace.h" 15 #include "vdso-asmoffset.h" 74 uint8_t __unused[1024 / 8 - sizeof(target_sigset_t)]; 114 sp -= sizeof(struct target_sctx_info) + size; in extframe_alloc() 117 sctx->gaddr = sp; in extframe_alloc() 119 size = orig_sp - sp; in extframe_alloc() 120 sctx->size = size; in extframe_alloc() [all …]
|
/qemu/linux-user/ |
H A D | signal.c | 23 #include "exec/page-protection.h" 24 #include "accel/tcg/cpu-ops.h" 30 #include "user-internals.h" 34 #include "signal-common.h" 35 #include "host-signal.h" 37 #include "user/page-protection.h" 38 #include "user/safe-syscall.h" 71 /* valid sig is between 1 and _NSIG - 1 */ 97 signum--; in target_sigaddset() 99 set->sig[signum / TARGET_NSIG_BPW] |= mask; in target_sigaddset() [all …]
|
/qemu/trace/ |
H A D | simple.c | 7 * the COPYING file in the top-level directory. 18 #include "qemu/error-report.h" 19 #include "qemu/qemu-print.h" 31 #define DROPPED_EVENT_ID (~(uint64_t)0 - 1) 119 (*recordptr)->event &= ~TRACE_RECORD_VALID; in get_trace_record() 188 unused = fwrite(recordptr, recordptr->length, 1, trace_fp); in writeout_thread() 189 writeout_idx += recordptr->length; in writeout_thread() 201 rec->rec_off = write_to_buffer(rec->rec_off, &val, sizeof(uint64_t)); in trace_record_write_u64() 207 rec->rec_off = write_to_buffer(rec->rec_off, &slen, sizeof(slen)); in trace_record_write_str() 209 rec->rec_off = write_to_buffer(rec->rec_off, (void*)s, slen); in trace_record_write_str() [all …]
|
/qemu/hw/display/ |
H A D | vhost-user-gpu.c | 2 * vhost-user GPU Device 7 * Marc-André Lureau <marcandre.lureau@redhat.com> 10 * See the COPYING file in the top-level directory. 14 #include "qemu/error-report.h" 16 #include "hw/qdev-properties.h" 17 #include "hw/virtio/virtio-gpu.h" 18 #include "chardev/char-fe.h" 21 #include "standard-headers/drm/drm_fourcc.h" 120 static void vhost_user_gpu_update_blocked(VhostUserGPU *g, bool blocked); 125 VhostUserGpuCursorPos *pos = &msg->payload.cursor_pos; in vhost_user_gpu_handle_cursor() [all …]
|
/qemu/docs/devel/migration/ |
H A D | postcopy.rst | 25 ``migrate_set_capability postcopy-ram on`` 43 ``migrate_set_capability postcopy-blocktime on`` 45 Postcopy blocktime can be retrieved by query-migrate qmp command. 46 postcopy-blocktime value of qmp command will show overlapped blocking 47 time for all vCPU, postcopy-vcpu-blocktime will show list of blocking 59 ------------- 62 ADVISE->DISCARD->LISTEN->RUNNING->END 64 - Advise 74 - Discard 82 - Listen [all …]
|
H A D | vfio.rst | 10 Migration of VFIO devices consists of two phases: the optional pre-copy phase, 11 and the stop-and-copy phase. The pre-copy phase is iterative and allows to 13 transferred. The iterative pre-copy phase of migration allows for the guest to 15 helps to reduce the total downtime of the VM. VFIO devices opt-in to pre-copy 19 When pre-copy is supported, it's possible to further reduce downtime by 20 enabling "switchover-ack" migration capability. 21 VFIO migration uAPI defines "initial bytes" as part of its pre-copy data stream 35 safe P2P-wise, since starting and stopping the devices is not done atomically 44 linux-headers/linux/vfio.h. 54 remaining pre-copy data that the vendor driver has yet to save for the VFIO [all …]
|
/qemu/system/ |
H A D | qemu-seccomp.c | 10 * the COPYING file in the top-level directory. 12 * Contributions after 2012-01-13 are licensed under the terms of the 18 #include "qemu/config-file.h" 50 * See 'NOTES' in 'man 2 clone' - s390 has 'flags' in 126 /* default set of syscalls that should get blocked */ 275 return -1; in qemu_seccomp() 284 static int kill_process = -1; in qemu_seccomp_update_action() 285 if (kill_process == -1) { in qemu_seccomp_update_action() 305 int rc = -1; in seccomp_start() 322 error_setg_errno(errp, -rc, in seccomp_start() [all …]
|
/qemu/qapi/ |
H A D | migration.json | 1 # -*- Mode: Python -*- 28 # @normal-bytes: number of normal bytes sent (since 1.2) 30 # @dirty-pages-rate: number of pages dirtied by second by the guest 35 # @dirty-sync-count: number of times that dirty ram was synchronized 38 # @postcopy-requests: The number of page requests received from the 41 # @page-size: The number of bytes per page for the various page-based 44 # @multifd-bytes: The number of bytes sent through multifd (since 3.0) 46 # @pages-per-second: the number of memory pages transferred per second 49 # @precopy-bytes: The number of bytes sent in the pre-copy phase 52 # @downtime-bytes: The number of bytes sent while the guest is paused [all …]
|
/qemu/include/hw/s390x/ |
H A D | s390-pci-bus.h | 10 * your option) any later version. See the COPYING file in the top-level 22 #include "hw/s390x/s390-pci-clp.h" 25 #define TYPE_S390_PCI_HOST_BRIDGE "s390-pcihost" 26 #define TYPE_S390_PCI_BUS "s390-pcibus" 28 #define TYPE_S390_PCI_IOMMU "s390-pci-iommu" 29 #define TYPE_S390_IOMMU_MEMORY_REGION "s390-iommu-memory-region" 149 #define ZPCI_SFAA_MASK (~((1ULL << 20) - 1)) 158 #define ZPCI_PT_MASK (ZPCI_PT_ENTRIES - 1) 175 #define ZPCI_ETT_PT -1 179 * reserved: default; device has just been plugged or is in progress of being [all …]
|
/qemu/hw/s390x/ |
H A D | s390-pci-inst.c | 10 * your option) any later version. See the COPYING file in the top-level 18 #include "qemu/error-report.h" 22 #include "hw/s390x/s390-pci-inst.h" 23 #include "hw/s390x/s390-pci-bus.h" 24 #include "hw/s390x/s390-pci-kvm.h" 25 #include "hw/s390x/s390-pci-vfio.h" 32 if (iommu->dma_limit) { in inc_dma_avail() 33 iommu->dma_limit->avail++; in inc_dma_avail() 39 if (iommu->dma_limit) { in dec_dma_avail() 40 iommu->dma_limit->avail--; in dec_dma_avail() [all …]
|
/qemu/python/qemu/utils/ |
H A D | qemu_ga_client.py | 8 # qemu [...] -chardev socket,path=/tmp/qga.sock,server=on,wait=off,id=qga0 \ 9 -device virtio-serial \ 10 -device virtserialport,chardev=qga0,name=org.qemu.guest_agent.0 14 $ qemu-ga-client --address=/tmp/qga.sock <command> [args...] 19 $ qemu-ga-client <command> [args...] 23 $ qemu-ga-client cat /etc/resolv.conf 26 $ qemu-ga-client fsfreeze status 28 $ qemu-ga-client fsfreeze freeze 37 # the COPYING file in the top-level directory. 61 # pylint: disable=missing-docstring [all …]
|
/qemu/hw/acpi/ |
H A D | pcihp.c | 2 * QEMU<->ACPI BIOS PCI hotplug interface 6 * Interface specification - see docs/specs/acpi_pci_hotplug.txt 23 * Contributions after 2012-01-13 are licensed under the terms of the 30 #include "hw/pci-host/i440fx.h" 35 #include "hw/pci-bridge/xio3130_downstream.h" 36 #include "hw/i386/acpi-build.h" 41 #include "qom/qom-qobject.h" 67 return -1; in acpi_pcihp_get_bsel() 83 DeviceState *br = bus->qbus.parent; in acpi_set_bsel() 88 if (!is_bridge || (!br->hotplugged && info->has_bridge_hotplug)) { in acpi_set_bsel() [all …]
|
/qemu/qga/ |
H A D | main.c | 11 * See the COPYING file in the top-level directory. 21 #include "qemu/help-texts.h" 22 #include "qobject/json-parser.h" 25 #include "guest-agent-core.h" 26 #include "qga-qapi-init-commands.h" 33 #include "qemu-version.h" 37 #include "qga/service-win32.h" 38 #include "qga/vss-win32.h" 40 #include "commands-common.h" 46 #define QGA_VIRTIO_PATH_DEFAULT "/dev/virtio-ports/org.qemu.guest_agent.0" [all …]
|