| /qemu/hw/misc/ |
| A D | i2c-echo.c | 42 switch (state->state) { in i2c_echo_bh() 47 if (i2c_start_send_async(state->bus, state->data[0])) { in i2c_echo_bh() 51 state->pos++; in i2c_echo_bh() 52 state->state = I2C_ECHO_STATE_ACK; in i2c_echo_bh() 60 if (i2c_send_async(state->bus, state->data[state->pos++])) { in i2c_echo_bh() 72 state->state = I2C_ECHO_STATE_IDLE; in i2c_echo_bh() 92 state->state = I2C_ECHO_STATE_START_SEND; in i2c_echo_event() 93 i2c_bus_master(state->bus, state->bh); in i2c_echo_event() 115 return state->data[state->pos++]; in i2c_echo_recv() 126 state->data[state->pos++] = data; in i2c_echo_send() [all …]
|
| /qemu/hw/xen/ |
| A D | xen-hvm-common.c | 233 state->send_vcpu = i; in cpu_get_ioreq() 556 qemu_xen_evtchn_unmask(state->xce_handle, state->bufioreq_local_port); in handle_buffered_io() 609 state->ioreq_local_port[state->send_vcpu]); in cpu_handle_ioreq() 656 if (state->fres != NULL) { in xen_exit_notifier() 681 if (state->has_bufioreq) { in xen_map_ioreq_server() 691 if (state->fres != NULL) { in xen_map_ioreq_server() 710 if (state->shared_page == NULL || state->has_bufioreq) { in xen_map_ioreq_server() 736 if (state->has_bufioreq && state->buffered_io_page == NULL) { in xen_map_ioreq_server() 751 (state->has_bufioreq && state->buffered_io_page == NULL)) { in xen_map_ioreq_server() 755 if (state->has_bufioreq) { in xen_map_ioreq_server() [all …]
|
| /qemu/hw/intc/ |
| A D | grlib_irqmp.c | 71 IRQMPState *state; member 98 uint32_t pend = (state->pending | state->force[i]) & state->mask[i]; in grlib_irqmp_check_irqs() 102 trace_grlib_irqmp_check_irqs(state->pending, state->force[i], in grlib_irqmp_check_irqs() 126 state = irqmp->state; in grlib_irqmp_ack() 143 s = irqmp->state; in grlib_irqmp_set_irq() 167 IRQMPState *state; in grlib_irqmp_read() local 170 state = irqmp->state; in grlib_irqmp_read() 233 IRQMPState *state; in grlib_irqmp_write() local 237 state = irqmp->state; in grlib_irqmp_write() 345 memset(irqmp->state, 0, sizeof *irqmp->state); in grlib_irqmp_reset() [all …]
|
| A D | xics_kvm.c | 67 uint64_t state; in icp_get_kvm_state() local 108 uint64_t state; in icp_set_kvm_state() local 187 uint64_t state; in ics_get_kvm_state() local 216 if (state & KVM_XICS_MASKED) { in ics_get_kvm_state() 241 if (state & KVM_XICS_QUEUED) { in ics_get_kvm_state() 254 uint64_t state; in ics_set_kvm_state_one() local 263 state = irq->server; in ics_set_kvm_state_one() 271 state |= KVM_XICS_MASKED; in ics_set_kvm_state_one() 277 state |= KVM_XICS_PENDING; in ics_set_kvm_state_one() 285 state |= KVM_XICS_PRESENTED; in ics_set_kvm_state_one() [all …]
|
| /qemu/target/i386/nvmm/ |
| A D | nvmm-all.c | 86 struct nvmm_x64_state *state = vcpu->state; in nvmm_set_registers() local 148 state->fpu.fx_cw = env->fpuc; in nvmm_set_registers() 150 state->fpu.fx_tw = 0; in nvmm_set_registers() 154 state->fpu.fx_opcode = env->fpop; in nvmm_set_registers() 157 state->fpu.fx_mxcsr = env->mxcsr; in nvmm_set_registers() 224 struct nvmm_x64_state *state = vcpu->state; in nvmm_get_registers() local 304 env->fpuc = state->fpu.fx_cw; in nvmm_get_registers() 353 struct nvmm_x64_state *state = vcpu->state; in nvmm_can_take_int() local 395 struct nvmm_x64_state *state = vcpu->state; in nvmm_vcpu_pre_run() local 565 struct nvmm_x64_state *state = vcpu->state; in nvmm_handle_rdmsr() local [all …]
|
| /qemu/block/ |
| A D | curl.c | 170 s = state->s; in curl_sock_cb() 275 uint64_t buf_end = (state->buf_start + state->buf_off); in curl_find_buf() 276 uint64_t buf_fend = (state->buf_start + state->buf_len); in curl_find_buf() 289 char *buf = state->orig_buf + (start - state->buf_start); in curl_find_buf() 451 return state; in curl_find_state() 537 state->s = s; in curl_init_state() 793 if (!state) { in curl_open() 906 if (state) { in curl_setup_preadv() 926 state->orig_buf = g_try_malloc(state->buf_len); in curl_setup_preadv() 927 if (state->buf_len && state->orig_buf == NULL) { in curl_setup_preadv() [all …]
|
| /qemu/util/ |
| A D | qemu-progress.c | 36 static struct progress_state state; variable 57 state.print = progress_simple_print; in progress_simple_init() 58 state.end = progress_simple_end; in progress_simple_init() 106 state.end = progress_dummy_end; in progress_dummy_init() 118 state.min_skip = min_skip; in qemu_progress_init() 128 state.end(); in qemu_progress_end() 154 state.current = current; in qemu_progress_print() 156 if (current > (state.last_print + state.min_skip) || in qemu_progress_print() 157 current < (state.last_print - state.min_skip) || in qemu_progress_print() 159 state.last_print = state.current; in qemu_progress_print() [all …]
|
| /qemu/hw/audio/ |
| A D | gusemu_hal.c | 95 GUS_irqrequest(state, state->gusirq, 1); in gus_read() 126 GUS_irqclear(state, state->gusirq); in gus_read() 206 GUS_irqrequest(state, state->gusirq, 1); in gus_write() 229 GUS_irqrequest(state, state->gusirq, 1); in gus_write() 249 GUS_irqclear(state, state->gusirq); in gus_write() 262 GUS_irqrequest(state, state->gusirq, 1); in gus_write() 293 GUS_irqclear(state, state->gusirq); in gus_write() 310 GUS_irqclear(state, state->gusirq); in gus_write() 435 GUS_irqclear(state, state->gusirq); in gus_write() 465 GUS_irqclear(state, state->gusirq); in gus_write() [all …]
|
| A D | gusemu.h | 44 int GUS_irqrequest(GUSEmuState *state, int hwirq, int num);/* needed in both mixer and bus emulati… 45 void GUS_irqclear( GUSEmuState *state, int hwirq); /* used by gus_write() only - can be left empty… 46 void GUS_dmarequest(GUSEmuState *state); /* used by gus_write() only - can be left empty… 55 unsigned int gus_read( GUSEmuState *state, int port, int size); 56 void gus_write(GUSEmuState *state, int port, int size, unsigned int data); 61 void gus_dma_transferdata(GUSEmuState *state, char *dma_addr, unsigned int count, int TC); 79 void gus_mixvoices(GUSEmuState *state, unsigned int playback_freq, unsigned int numsamples, int16_t… 83 void gus_irqgen(GUSEmuState *state, unsigned int elapsed_time);
|
| /qemu/ui/ |
| A D | trace-events | 43 vnc_msg_server_audio_begin(void *state, void *ioc) "VNC server msg audio begin state=%p ioc=%p" 44 vnc_msg_server_audio_end(void *state, void *ioc) "VNC server msg audio end state=%p ioc=%p" 48 vnc_msg_client_audio_enable(void *state, void *ioc) "VNC client msg audio enable state=%p ioc=%p" 52 vnc_client_eof(void *state, void *ioc) "VNC client EOF state=%p ioc=%p" 54 vnc_client_connect(void *state, void *ioc) "VNC client connect state=%p ioc=%p" 55 vnc_client_disconnect_start(void *state, void *ioc) "VNC client disconnect start state=%p ioc=%p" 71 vnc_job_nrects(void *state, void *job, int nrects) "VNC job state=%p job=%p nrects=%d" 73 vnc_auth_start(void *state, int method) "VNC client auth start state=%p method=%d" 74 vnc_auth_pass(void *state, int method) "VNC client auth passed state=%p method=%d" 83 vnc_auth_sasl_ssf(void *state, int ssf) "VNC client auth SASL SSF state=%p size=%d" [all …]
|
| /qemu/tests/qemu-iotests/ |
| A D | 293 | 139 $QEMU_IMG amend $SECRETS $IMGS1 -o ${PR}state=inactive,${PR}old-secret=sec2 142 $QEMU_IMG amend $SECRETS $IMGS1 -o ${PR}state=inactive,${PR}old-secret=sec1 145 $QEMU_IMG amend $SECRETS $IMGS0 -o ${PR}state=inactive,${PR}old-secret=sec0 148 $QEMU_IMG amend $SECRETS $IMGS3 -o ${PR}state=inactive,${PR}old-secret=sec3 161 $QEMU_IMG amend $SECRETS $IMGS0 -o ${PR}state=inactive,${PR}old-secret=sec3 186 $QEMU_IMG amend $SECRETS $IMGS1 -o ${PR}state=inactive,${PR}keyslot=0 187 $QEMU_IMG amend $SECRETS $IMGS1 -o ${PR}state=inactive,${PR}old-secret=sec1 191 $QEMU_IMG amend $SECRETS $IMGS1 -o ${PR}state=inactive,${PR}old-secret=sec5 --force 192 $QEMU_IMG amend $SECRETS $IMGS1 -o ${PR}state=inactive,${PR}old-secret=sec0 --force 193 $QEMU_IMG amend $SECRETS $IMGS1 -o ${PR}state=inactive,${PR}keyslot=1 --force [all …]
|
| /qemu/docs/sphinx/ |
| A D | dbusparser.py | 122 self.state = DBusXMLParser.STATE_TOP 203 old_state = self.state 205 if self.state == DBusXMLParser.STATE_IGNORED: 206 self.state = DBusXMLParser.STATE_IGNORED 207 elif self.state == DBusXMLParser.STATE_TOP: 212 elif self.state == DBusXMLParser.STATE_NODE: 269 self.state = DBusXMLParser.STATE_ARG 303 self.state = DBusXMLParser.STATE_ARG 338 elif self.state == DBusXMLParser.STATE_ARG: 359 self.state, name [all …]
|
| /qemu/hw/tpm/ |
| A D | tpm_tis_sysbus.c | 39 TPMState state; /* not a QOM object */ member 48 return tpm_tis_pre_save(&sbdev->state); in OBJECT_DECLARE_SIMPLE_TYPE() 56 VMSTATE_BUFFER(state.buffer, TPMStateSysBus), 57 VMSTATE_UINT16(state.rw_offset, TPMStateSysBus), 58 VMSTATE_UINT8(state.active_locty, TPMStateSysBus), 60 VMSTATE_UINT8(state.next_locty, TPMStateSysBus), 72 TPMState *s = &sbdev->state; in tpm_tis_sysbus_request_completed() 80 TPMState *s = &sbdev->state; in tpm_tis_sysbus_get_tpm_version() 88 TPMState *s = &sbdev->state; in tpm_tis_sysbus_reset() 102 TPMState *s = &sbdev->state; in tpm_tis_sysbus_initfn() [all …]
|
| A D | tpm_tis_isa.c | 40 TPMState state; /* not a QOM object */ member 49 return tpm_tis_pre_save(&isadev->state); in OBJECT_DECLARE_SIMPLE_TYPE() 57 VMSTATE_BUFFER(state.buffer, TPMStateISA), 58 VMSTATE_UINT16(state.rw_offset, TPMStateISA), 59 VMSTATE_UINT8(state.active_locty, TPMStateISA), 61 VMSTATE_UINT8(state.next_locty, TPMStateISA), 73 TPMState *s = &isadev->state; in tpm_tis_isa_request_completed() 81 TPMState *s = &isadev->state; in tpm_tis_isa_get_tpm_version() 89 TPMState *s = &isadev->state; in tpm_tis_isa_reset() 104 TPMState *s = &isadev->state; in tpm_tis_isa_initfn() [all …]
|
| /qemu/scripts/tracetool/format/ |
| A D | log_stap.py | 35 state = 0 46 if state != STATE_LITERAL: 50 if state == STATE_LITERAL: 51 state = STATE_SKIP 58 state = STATE_LITERAL 60 if state == STATE_MACRO: 63 state = STATE_SKIP 68 if state == STATE_SKIP: 69 state = STATE_MACRO 76 if state == STATE_MACRO: [all …]
|
| /qemu/ |
| A D | blockdev.c | 1226 state->bs = bs; in internal_snapshot_action() 1266 sn = &state->sn; in internal_snapshot_action() 1317 if (!state->bs) { in internal_snapshot_clean() 1500 ret = bdrv_append(state->new_bs, state->old_bs, errp); in external_snapshot_action() 1626 state->bs = bs; in drive_backup_action() 1743 if (state->job) { in drive_backup_abort() 1803 state->bs = bs; in blockdev_backup_action() 1913 bdrv_clear_dirty_bitmap(state->bitmap, &state->backup); in block_dirty_bitmap_clear_action() 1921 bdrv_restore_dirty_bitmap(state->bitmap, state->backup); in block_dirty_bitmap_restore() 1957 state->was_enabled = bdrv_dirty_bitmap_enabled(state->bitmap); in block_dirty_bitmap_enable_action() [all …]
|
| A D | qemu-keymap.c | 62 struct xkb_state *state = data; in walk_map() local 78 kbase = xkb_state_key_get_one_sym(state, code); in walk_map() 92 xkb_state_update_mask(state, 0, 0, 0, 0, 0, 0); in walk_map() 93 kbase = xkb_state_key_get_one_sym(state, code); in walk_map() 97 knumlock = xkb_state_key_get_one_sym(state, code); in walk_map() 103 kshift = xkb_state_key_get_one_sym(state, code); in walk_map() 109 kaltgr = xkb_state_key_get_one_sym(state, code); in walk_map() 159 struct xkb_state *state; in main() local 236 state = xkb_state_new(map); in main() 237 xkb_keymap_key_for_each(map, walk_map, state); in main() [all …]
|
| /qemu/qapi/ |
| A D | vfio.json | 18 # @stop-copy: The device is stopped and its internal state is 21 # @resuming: The device is stopped and its internal state is available 24 # @running-p2p: The device is running in the P2P quiescent state. 26 # @pre-copy: The device is running, tracking its internal state and 27 # its internal state is available for reading. 29 # @pre-copy-p2p: The device is running in the P2P quiescent state, 30 # tracking its internal state and its internal state is available 42 # This event is emitted when a VFIO device migration state is changed. 48 # @device-state: The new changed device migration state. 65 'device-state': 'QapiVfioMigrationState'
|
| /qemu/docs/system/ |
| A D | managed-startup.rst | 5 state using the ``-S`` command line option. In this state the machine 8 state in this paused state depends on the way QEMU was started. It 11 - initial state (after reset/power on state) 12 - with direct kernel loading, the initial state could be amended to execute 14 - with incoming migration, initial state will be amended with the migrated 15 machine state after migration completes 17 This paused state is typically used by users to query machine state and/or 24 allows pausing QEMU before the initial VM creation, in a "preconfig" state, 27 preconfig state, QEMU only allows a limited set of commands over the
|
| /qemu/tests/qtest/ |
| A D | erst-test.c | 119 ERSTState state; in test_acpi_erst_basic() local 124 setup_vm_cmd(&state, in test_acpi_erst_basic() 133 out_reg32(&state, ACTION, 0xD); in test_acpi_erst_basic() 134 log_address_range = in_reg64(&state, VALUE); in test_acpi_erst_basic() 135 out_reg32(&state, ACTION, 0xE); in test_acpi_erst_basic() 136 log_address_length = in_reg64(&state, VALUE); in test_acpi_erst_basic() 137 out_reg32(&state, ACTION, 0xF); in test_acpi_erst_basic() 138 log_address_attr = in_reg32(&state, VALUE); in test_acpi_erst_basic() 143 g_assert_cmpuint(log_address_range, !=, state.reg_bar.addr); in test_acpi_erst_basic() 144 g_assert_cmpuint(log_address_range, ==, state.mem_bar.addr); in test_acpi_erst_basic() [all …]
|
| /qemu/hw/net/ |
| A D | lasi_i82596.c | 40 i82596_h_reset(&d->state); in lasi_82596_mem_write() 47 i82596_ioport_writew(&d->state, d->last_val & 0xff, v); in lasi_82596_mem_write() 52 i82596_ioport_writew(&d->state, PORT_CA, val); in lasi_82596_mem_write() 75 val = i82596_ioport_readw(&d->state, addr); in lasi_82596_mem_read() 113 I82596State *s = &d->state; in lasi_82596_realize() 135 s->state.irq = lan_irq; in lasi_82596_init() 137 s->state.conf.macaddr = HP_MAC; /* set HP MAC prefix */ in lasi_82596_init() 140 memory_region_add_subregion(addr_space, hpa, &s->state.mmio); in lasi_82596_init() 148 i82596_h_reset(&d->state); in lasi_82596_reset() 154 I82596State *s = &d->state; in lasi_82596_instance_init() [all …]
|
| /qemu/migration/ |
| A D | migration.c | 1124 switch (s->state) { in migration_is_running() 1230 int state = qatomic_read(&s->state); in fill_source_migration_info() local 1250 switch (state) { in fill_source_migration_info() 1599 switch (s->state) { in migration_in_postcopy() 1612 switch (state) { in migration_postcopy_is_alive() 2133 if (s->state != state) { in qmp_migrate_continue() 2995 migrate_set_state(&s->state, s->state, in postcopy_pause() 3048 int state = s->state; in migration_detect_error() local 3087 migrate_set_state(&s->state, state, MIGRATION_STATUS_FAILED); in migration_detect_error() 3114 migrate_set_state(&s->state, s->state, in migration_completion_end() [all …]
|
| /qemu/docs/spin/ |
| A D | win32-qemu-event.promela | 38 int state = EV_FREE; 41 #define SET if :: state != EV_SET -> \ 42 atomic { /* xchg_result=xchg(state, EV_SET) */ \ 43 xchg_result = state; \ 44 state = EV_SET; \ 52 #define RESET if :: state == EV_SET -> atomic { state = state | EV_FREE; } \ 57 #define WAIT tmp1 = state; \ 61 atomic { /* tmp2=cas(state, EV_FREE, EV_BUSY) */ \ 62 tmp2 = state; \ 63 if :: tmp2 == EV_FREE -> state = EV_BUSY; \
|
| /qemu/hw/ppc/ |
| A D | spapr_nvdimm.c | 491 state->hcall_ret = hcall_ret; in spapr_nvdimm_flush_completion_cb() 492 QLIST_REMOVE(state, node); in spapr_nvdimm_flush_completion_cb() 499 SpaprNVDIMMDeviceFlushState *state; in spapr_nvdimm_flush_post_load() local 563 SpaprNVDIMMDeviceFlushState *state; in spapr_nvdimm_init_new_flush_state() local 565 state = g_malloc0(sizeof(*state)); in spapr_nvdimm_init_new_flush_state() 575 return state; in spapr_nvdimm_init_new_flush_state() 606 g_free(state); in spapr_nvdimm_finish_flushes() 633 QLIST_REMOVE(state, node); in spapr_nvdimm_get_flush_status() 634 g_free(state); in spapr_nvdimm_get_flush_status() 695 if (!state) { in h_scm_flush() [all …]
|
| /qemu/hw/i386/xen/ |
| A D | xen-hvm.c | 231 if (!xs_write(state->xenstore, 0, path, in xen_save_physmap() 245 static int xen_add_to_physmap(XenIOState *state, in xen_add_to_physmap() argument 323 return xen_save_physmap(state, physmap); in xen_add_to_physmap() 521 current_cpu = state->cpu_by_vcpu_id[state->send_vcpu]; in handle_vmport_ioreq() 529 static void xen_read_physmap(XenIOState *state) in xen_read_physmap() argument 577 static void xen_read_physmap(XenIOState *state) in xen_read_physmap() argument 613 XenIOState *state; in xen_hvm_init_pc() local 615 state = g_new0(XenIOState, 1); in xen_hvm_init_pc() 617 xen_register_ioreq(state, max_cpus, in xen_hvm_init_pc() 624 xen_read_physmap(state); in xen_hvm_init_pc() [all …]
|