/qemu/tests/qtest/libqos/ |
H A D | i2c-imx.c | 4 * Copyright (c) 2013 Jean-Christophe Dubois 36 qtest_writeb(s->parent.qts, s->addr + I2DR_ADDR, in imx_i2c_set_slave_addr() 59 qtest_writeb(i2c->qts, s->addr + I2CR_ADDR, data); in imx_i2c_send() 60 status = qtest_readb(i2c->qts, s->addr + I2SR_ADDR); in imx_i2c_send() 65 status = qtest_readb(i2c->qts, s->addr + I2SR_ADDR); in imx_i2c_send() 69 /* ack the interrupt */ in imx_i2c_send() 70 qtest_writeb(i2c->qts, s->addr + I2SR_ADDR, 0); in imx_i2c_send() 71 status = qtest_readb(i2c->qts, s->addr + I2SR_ADDR); in imx_i2c_send() 76 status = qtest_readb(i2c->qts, s->addr + I2SR_ADDR); in imx_i2c_send() 80 qtest_writeb(i2c->qts, s->addr + I2DR_ADDR, buf[size]); in imx_i2c_send() [all …]
|
/qemu/docs/devel/migration/ |
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/net/ |
H A D | colo.h | 2 * COarse-grain LOck-stepping Virtual Machines for Non-stop Service (COLO) 12 * later. See the COPYING file in the top-level directory. 21 #include "standard-headers/linux/virtio_net.h" 83 /* offset = secondary_seq - primary_seq */ 87 uint32_t fin_ack_seq; /* the seq of 'fin=1,ack=1' */
|
H A D | colo-compare.c | 2 * COarse-grain LOck-stepping Virtual Machines for Non-stop Service (COLO) 12 * later. See the COPYING file in the top-level directory. 16 #include "qemu/error-report.h" 25 #include "chardev/char-fe.h" 29 #include "net/colo-compare.h" 33 #include "block/aio-wait.h" 36 #define TYPE_COLO_COMPARE "colo-compare" 68 * +---------------+ +---------------+ +---------------+ 69 * | conn list + - > conn + ------- > conn + -- > ...... 70 * +---------------+ +---------------+ +---------------+ [all …]
|
H A D | vhost-vdpa.c | 2 * vhost-vdpa.c 4 * Copyright(c) 2017-2018 Intel Corporation. 8 * See the COPYING file in the top-level directory. 14 #include "hw/virtio/virtio-net.h" 16 #include "net/vhost-vdpa.h" 17 #include "hw/virtio/vhost-vdpa.h" 18 #include "qemu/config-file.h" 19 #include "qemu/error-report.h" 27 #include "standard-headers/linux/virtio_net.h" 138 assert(nc->info->type == NET_CLIENT_DRIVER_VHOST_VDPA); in vhost_vdpa_get_vhost_net() [all …]
|
/qemu/include/migration/ |
H A D | register.h | 10 * the COPYING file in the top-level directory. 17 #include "hw/vmstate-if.h" 157 * For example, it is needed for only-postcopy-states, which needs 178 * bandwidth limits tell it to stop. Each call generates one 223 * (block-dirty-bitmap) 244 * (block-dirty-bitmap) 322 * Checks if switchover ack should be used. Called only on 327 * Returns true if switchover ack should be used and false
|
/qemu/hw/i2c/ |
H A D | bitbang_i2c.c | 2 * Bit-Bang i2c emulation extracted from 9 * Contributions after 2012-01-13 are licensed under the terms of the 35 [RECEIVING_BIT7] = "RECEIVING_BIT7 (ACK)", 51 trace_bitbang_i2c_state(sname[i2c->state], sname[state]); in bitbang_i2c_set_state() 52 i2c->state = state; in bitbang_i2c_set_state() 57 if (i2c->current_addr >= 0) in bitbang_i2c_enter_stop() 58 i2c_end_transfer(i2c->bus); in bitbang_i2c_enter_stop() 59 i2c->current_addr = -1; in bitbang_i2c_enter_stop() 66 trace_bitbang_i2c_data(i2c->last_clock, i2c->last_data, in bitbang_i2c_ret() 67 i2c->device_out, level); in bitbang_i2c_ret() [all …]
|
H A D | aspeed_i2c.c | 27 #include "qemu/error-report.h" 31 #include "hw/qdev-properties.h" 40 AspeedI2CClass *aic = ASPEED_I2C_GET_CLASS(bus->controller); in aspeed_i2c_bus_raise_interrupt() 43 uint32_t intr_ctrl_mask = bus->regs[intr_ctrl_reg] | in aspeed_i2c_bus_raise_interrupt() 50 ARRAY_FIELD_EX32(bus->regs, I2CM_INTR_STS, PKT_CMD_DONE) ? in aspeed_i2c_bus_raise_interrupt() 52 SHARED_ARRAY_FIELD_EX32(bus->regs, reg_intr_sts, TX_NAK) ? in aspeed_i2c_bus_raise_interrupt() 54 SHARED_ARRAY_FIELD_EX32(bus->regs, reg_intr_sts, TX_ACK) ? in aspeed_i2c_bus_raise_interrupt() 55 "ack|" : "", in aspeed_i2c_bus_raise_interrupt() 56 SHARED_ARRAY_FIELD_EX32(bus->regs, reg_intr_sts, RX_DONE) ? in aspeed_i2c_bus_raise_interrupt() 58 ARRAY_FIELD_EX32(bus->regs, I2CD_INTR_STS, SLAVE_ADDR_RX_MATCH) ? in aspeed_i2c_bus_raise_interrupt() [all …]
|
/qemu/docs/ |
H A D | COLO-FT.txt | 1 COarse-grained LOck-stepping Virtual Machines for Non-stop Service 2 ---------------------------------------- 8 See the COPYING file in the top-level directory. 14 application-agnostic software-implemented hardware fault tolerance, 15 also known as "non-stop service". 17 COLO (COarse-grained LOck-stepping) is a high availability solution. 45 +------------+ +-----------------------+ +------------------------+ +------------+ 46 | | | HeartBeat +<----->+ HeartBeat | | | 47 | Primary VM | +-----------+-----------+ +-----------+------------+ |Secondary VM| 49 | | +-----------|-----------+ +-----------|------------+ | | [all …]
|
/qemu/hw/mips/ |
H A D | malta.c | 30 #include "qemu/guest-random.h" 35 #include "hw/char/serial-mm.h" 51 #include "qemu/host-utils.h" 56 #include "qemu/error-report.h" 60 #include "hw/qdev-clock.h" 82 MemoryRegion iomem_lo; /* 0 - 0x900 */ 83 MemoryRegion iomem_hi; /* 0xa00 - 0x100000 */ 97 #define TYPE_MIPS_MALTA "mips-malta" 120 for (i = 7 ; i >= 0 ; i--) { in malta_fpga_update_display_leds() 121 if (s->leds & (1 << i)) { in malta_fpga_update_display_leds() [all …]
|
/qemu/hw/scsi/ |
H A D | lsi53c895a.c | 13 * as well-behaved operating systems will not try to use them. 304 uint32_t scratch[18]; /* SCRATCHA-SCRATCHR */ 334 return (s->sien0 & LSI_SIST0_RSL) && (s->scid & LSI_SCID_RRE); in lsi_irq_on_rsl() 341 QTAILQ_FOREACH(p, &s->queue, next) { in get_pending_req() 342 if (p->pending) { in get_pending_req() 352 s->carry = 0; in lsi_soft_reset() 354 s->msg_action = LSI_MSG_ACTION_COMMAND; in lsi_soft_reset() 355 s->msg_len = 0; in lsi_soft_reset() 356 s->waiting = LSI_NOWAIT; in lsi_soft_reset() 357 s->dsa = 0; in lsi_soft_reset() [all …]
|
H A D | trace-events | 3 # scsi-bus.c 184 esp_mem_writeb(uint32_t saddr, uint8_t reg, uint32_t val) "reg[%d]: 0x%2.2x -> 0x%2.2x" 196 esp_mem_writeb_cmd_selatns(uint32_t val) "Select with ATN & stop (0x%2.2x)" 202 # esp-pci.c 208 esp_pci_dma_write(uint32_t saddr, uint32_t reg, uint32_t val) "reg[%d]: 0x%8.8x -> 0x%8.8x" 214 esp_pci_sbac_write(uint32_t reg, uint32_t val) "sbac: 0x%8.8x -> 0x%8.8x" 222 spapr_vscsi_fetch_desc_dma_read_error(int rc) "spapr_vio_dma_read -> %d reading ext_desc" 228 spapr_vscsi_srp_indirect_data_rw(int writing, int rc) "spapr_vio_dma_r/w(%d) -> %d" 285 lsi_execute_script_io_set(const char *atn, const char *ack, const char *tm, const char *cc) "Set%s%… 286 lsi_execute_script_io_clear(const char *atn, const char *ack, const char *tm, const char *cc) "Clea… [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/hw/vfio/ |
H A D | migration.c | 7 * the COPYING file in the top-level directory. 11 #include "qemu/main-loop.h" 14 #include "qemu/error-report.h" 19 #include "hw/vfio/vfio-device.h" 20 #include "hw/vfio/vfio-migration.h" 24 #include "migration/qemu-file.h" 27 #include "migration-multifd.h" 29 #include "qapi/qapi-events-vfio.h" 34 #include "vfio-migration-internal.h" 51 return "STOP"; in mig_state_to_str() [all …]
|
H A D | pci-quirks.c | 4 * Copyright Red Hat, Inc. 2012-2015 10 * the COPYING file in the top-level directory. 18 #include "qemu/error-report.h" 19 #include "qemu/main-loop.h" 26 #include "hw/qdev-properties.h" 28 #include "pci-quirks.h" 57 trace_vfio_quirk_rom_in_denylist(vdev->vbasedev.name, in vfio_opt_rom_in_denylist() 75 VFIOPCIDevice *vdev = window->vdev; in vfio_generic_window_quirk_address_read() 77 return vfio_region_read(&vdev->bars[window->bar].region, in vfio_generic_window_quirk_address_read() 78 addr + window->address_offset, size); in vfio_generic_window_quirk_address_read() [all …]
|
/qemu/tests/qtest/migration/ |
H A D | precopy-tests.c | 4 * Copyright (c) 2016-2018 Red Hat, Inc. and/or its affiliates 5 * based on the vhost-user-test.c that is: 9 * See the COPYING file in the top-level directory. 19 #include "migration/migration-qmp.h" 20 #include "migration/migration-util.h" 21 #include "ppc-util.h" 23 #include "qapi-types-migration.h" 31 * Dirtylimit stop working if dirty page rate error 46 * get-dirty-log dirty tracking. in test_precopy_unix_plain() 94 * rather than get-dirty-log. in test_precopy_unix_dirty_ring() [all …]
|
/qemu/migration/ |
H A D | options.c | 4 * Copyright (c) 2012-2023 Red Hat Inc 11 * See the COPYING file in the top-level directory. 15 #include "qemu/error-report.h" 17 #include "qapi/clone-visitor.h" 19 #include "qapi/qapi-commands-migration.h" 20 #include "qapi/qapi-visit-migration.h" 28 #include "migration-stats.h" 29 #include "qemu-file.h" 40 /* Time in milliseconds we are allowed to stop the source, 90 DEFINE_PROP_BOOL("store-global-state", MigrationState, [all …]
|
H A D | migration.c | 10 * the COPYING file in the top-level directory. 12 * Contributions after 2012-01-13 are licensed under the terms of the 19 #include "qemu/error-report.h" 20 #include "qemu/main-loop.h" 28 #include "system/cpu-throttle.h" 35 #include "migration-stats.h" 37 #include "qemu-file.h" 42 #include "qapi/clone-visitor.h" 43 #include "qapi/qapi-visit-migration.h" 44 #include "qapi/qapi-visit-sockets.h" [all …]
|
H A D | savevm.c | 4 * Copyright (c) 2003-2008 Fabrice Bellard 5 * Copyright (c) 2009-2015 Red Hat Inc 34 #include "migration-stats.h" 39 #include "migration/channel-block.h" 42 #include "qemu-file.h" 44 #include "postcopy-ram.h" 46 #include "qapi/qapi-commands-migration.h" 47 #include "qapi/clone-visitor.h" 48 #include "qapi/qapi-builtin-visit.h" 49 #include "qemu/error-report.h" [all …]
|
H A D | ram.c | 4 * Copyright (c) 2003-2008 Fabrice Bellard 5 * Copyright (c) 2011-2015 Red Hat Inc 34 #include "qemu/main-loop.h" 38 #include "migration-stats.h" 41 #include "qemu-file.h" 42 #include "postcopy-ram.h" 44 #include "qemu/error-report.h" 46 #include "qapi/qapi-types-migration.h" 47 #include "qapi/qapi-events-migration.h" 48 #include "qapi/qapi-commands-migration.h" [all …]
|
/qemu/gdbstub/ |
H A D | gdbstub.c | 6 * https://sourceware.org/gdb/onlinedocs/gdb/Remote-Protocol.html 8 * Copyright (c) 2003-2005 Fabrice Bellard 23 * SPDX-License-Identifier: LGPL-2.0-or-later 30 #include "qemu/error-report.h" 31 #include "qemu/target-info.h" 37 #include "accel/tcg/vcpu-state.h" 47 #include "exec/replay-core.h" 71 * What single-step modes are supported is accelerator dependent. in gdb_init_gdbserver_state() 132 trace_fn(i & -16, line_buffer); in hexdump() 136 /* return -1 if error, 0 if OK */ [all …]
|
/qemu/docs/interop/ |
H A D | vhost-user.rst | 4 Vhost-user Protocol 11 version 2 or later. See the COPYING file in the top-level 26 The protocol defines 2 sides of the communication, *front-end* and 27 *back-end*. The *front-end* is the application that shares its virtqueues, in 28 our case QEMU. The *back-end* is the consumer of the virtqueues. 30 In the current implementation QEMU is the *front-end*, and the *back-end* 33 or a block device back-end processing read & write to a virtual 34 disk. In order to facilitate interoperability between various back-end 38 The *front-end* and *back-end* can be either a client (i.e. connecting) or 42 -------------------------------------- [all …]
|
/qemu/hw/virtio/ |
H A D | vhost-user.c | 2 * vhost-user 7 * See the COPYING file in the top-level directory. 13 #include "hw/virtio/virtio-dmabuf.h" 15 #include "hw/virtio/virtio-crypto.h" 16 #include "hw/virtio/vhost-user.h" 17 #include "hw/virtio/vhost-backend.h" 19 #include "hw/virtio/virtio-net.h" 20 #include "chardev/char-fe.h" 21 #include "io/channel-socket.h" 23 #include "qemu/error-report.h" [all …]
|
/qemu/hw/net/ |
H A D | virtio-net.c | 10 * the COPYING file in the top-level directory. 18 #include "qemu/main-loop.h" 24 #include "qemu/error-report.h" 28 #include "qemu/config-file.h" 30 #include "hw/virtio/virtio-net.h" 33 #include "hw/virtio/virtio-bus.h" 35 #include "qapi/qapi-events-net.h" 36 #include "hw/qdev-properties.h" 37 #include "qapi/qapi-types-migration.h" 38 #include "qapi/qapi-events-migration.h" [all …]
|
H A D | eepro100.c | 4 * Copyright (C) 2006-2011 Stefan Weil 9 * SPDX-License-Identifier: GPL-2.0-or-later 42 * * Wake-on-LAN is not implemented. 48 #include "hw/qdev-properties.h" 75 #define logout(fmt, ...) fprintf(stderr, "EE100\t%-24s" fmt, __func__, ## __VA_ARGS__) 115 #define BITS(n, m) (((0xffffffffU << (31 - n)) >> (31 - n + m)) << m) 249 uint8_t scb_stat; /* SCB stat/ack byte */ 268 /* Statistical counters. Also used for wake-up packet (i82559). */ 314 /* MDI Registers 0 - 6, 7 */ 316 /* MDI Registers 8 - 15 */ [all …]
|