/qemu/hw/misc/ |
H 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/intc/ |
H 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 …]
|
H 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/hw/xen/ |
H A D | xen-hvm-common.c | 221 state->send_vcpu = i; in cpu_get_ioreq() 479 req.state = STATE_IOREQ_READY; in handle_buffered_iopage() 532 XenIOState *state = opaque; in handle_buffered_io() local 539 qemu_xen_evtchn_unmask(state->xce_handle, state->bufioreq_local_port); in handle_buffered_io() 545 XenIOState *state = opaque; in cpu_handle_ioreq() local 589 state->ioreq_local_port[state->send_vcpu]); in cpu_handle_ioreq() 620 XenIOState *state = opaque; in xen_hvm_change_state_handler() local 636 if (state->fres != NULL) { in xen_exit_notifier() 663 if (state->fres != NULL) { in xen_map_ioreq_server() 710 if (state->shared_page == NULL || state->buffered_io_page == NULL) { in xen_map_ioreq_server() [all …]
|
/qemu/target/i386/nvmm/ |
H 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/ |
H A D | curl.c | 170 s = state->s; in curl_sock_cb() 283 uint64_t buf_end = (state->buf_start + state->buf_off); in curl_find_buf() 284 uint64_t buf_fend = (state->buf_start + state->buf_len); in curl_find_buf() 297 char *buf = state->orig_buf + (start - state->buf_start); in curl_find_buf() 459 return state; in curl_find_state() 545 state->s = s; in curl_init_state() 801 if (!state) { in curl_open() 914 if (state) { in curl_setup_preadv() 934 state->orig_buf = g_try_malloc(state->buf_len); in curl_setup_preadv() 935 if (state->buf_len && state->orig_buf == NULL) { in curl_setup_preadv() [all …]
|
/qemu/util/ |
H 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/ |
H 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 …]
|
H 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/ |
H 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/ |
H 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/ |
H 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 …]
|
H A D | kerneldoc.py | 69 env = self.state.document.settings.env 87 tab_width = self.options.get('tab-width', self.state.document.settings.tab_width) 158 with switch_source_input(self.state, result): 159 self.state.nested_parse(result, 0, node, match_titles=1) 161 … save = self.state.memo.title_styles, self.state.memo.section_level, self.state.memo.reporter 162 self.state.memo.reporter = AutodocReporter(result, self.state.memo.reporter) 163 self.state.memo.title_styles, self.state.memo.section_level = [], 0 165 self.state.nested_parse(result, 0, node, match_titles=1) 167 … self.state.memo.title_styles, self.state.memo.section_level, self.state.memo.reporter = save
|
H A D | hxtool.py | 99 env = self.state.document.settings.env 105 state = HxState.CTEXT 120 if state == HxState.RST: 123 state = HxState.RST 133 if state == HxState.CTEXT: 136 state = HxState.CTEXT 163 if state == HxState.RST: 189 with switch_source_input(self.state, result): 192 save = self.state.memo.reporter 193 self.state.memo.reporter = AutodocReporter(result, self.state.memo.reporter) [all …]
|
/qemu/hw/tpm/ |
H 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 …]
|
H 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/hw/dma/ |
H A D | pxa2xx_dma.c | 33 uint32_t state; member 141 if (s->chan[ch].state & DCSR_STARTINTR) in pxa2xx_dma_update() 146 if (s->chan[ch].state & DCSR_ENDINTR) in pxa2xx_dma_update() 181 s->chan[ch].state |= DCSR_STARTINTR; in pxa2xx_dma_descriptor_fetch() 201 while ((ch->state & DCSR_RUN) && !(ch->state & DCSR_STOPINTR)) { in pxa2xx_dma_run() 251 ch->state &= ~DCSR_RUN; in pxa2xx_dma_run() 295 return s->chan[channel].state; in pxa2xx_dma_read() 450 s->chan[ch].state |= DCSR_RASINTR; in pxa2xx_dma_request() 452 s->chan[ch].state &= ~DCSR_RASINTR; in pxa2xx_dma_request() 454 s->chan[ch].state |= DCSR_EORINT; in pxa2xx_dma_request() [all …]
|
/qemu/scripts/tracetool/format/ |
H 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/hw/sd/ |
H A D | sd.c | 198 return state_name[state]; in sd_state_name() 248 switch (sd->state) { in sd_set_mode() 1058 switch (sd->state) { in sd_cmd_SEND_RELATIVE_ADDR() 1141 switch (sd->state) { in sd_normal_command() 1165 switch (sd->state) { in sd_normal_command() 1219 switch (sd->state) { in sd_normal_command() 1242 switch (sd->state) { in sd_normal_command() 1265 switch (sd->state) { in sd_normal_command() 1311 switch (sd->state) { in sd_normal_command() 1329 switch (sd->state) { in sd_normal_command() [all …]
|
/qemu/ |
H A D | qemu-keymap.c | 62 struct xkb_state *state = data; in walk_map() local 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 235 state = xkb_state_new(map); in main() 236 xkb_keymap_key_for_each(map, walk_map, state); in main() 237 xkb_state_unref(state); in main() [all …]
|
H 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() 1498 ret = bdrv_append(state->new_bs, state->old_bs, errp); in external_snapshot_action() 1624 state->bs = bs; in drive_backup_action() 1741 if (state->job) { in drive_backup_abort() 1801 state->bs = bs; in blockdev_backup_action() 1911 bdrv_clear_dirty_bitmap(state->bitmap, &state->backup); in block_dirty_bitmap_clear_action() 1919 bdrv_restore_dirty_bitmap(state->bitmap, state->backup); in block_dirty_bitmap_restore() 1955 state->was_enabled = bdrv_dirty_bitmap_enabled(state->bitmap); in block_dirty_bitmap_enable_action() [all …]
|
/qemu/docs/system/ |
H 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/ |
H 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/ |
H 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/ |
H A D | migration.c | 1069 switch (s->state) { in migration_is_setup_or_active() 1091 switch (s->state) { in migration_is_running() 1197 int state = qatomic_read(&s->state); in fill_source_migration_info() local 1217 switch (state) { in fill_source_migration_info() 1549 switch (state) { in migration_postcopy_is_alive() 2098 if (s->state != state) { in qmp_migrate_continue() 2960 migrate_set_state(&s->state, s->state, in postcopy_pause() 3011 int state = s->state; in migration_detect_error() local 3050 migrate_set_state(&s->state, state, MIGRATION_STATUS_FAILED); in migration_detect_error() 3077 migrate_set_state(&s->state, s->state, in migration_completion_end() [all …]
|