Home
last modified time | relevance | path

Searched full:state (Results 1 – 25 of 1339) sorted by relevance

12345678910>>...54

/qemu/hw/misc/
H A Di2c-echo.c32 enum i2c_echo_state state; member
41 I2CEchoState *state = opaque; in i2c_echo_bh() local
43 switch (state->state) { in i2c_echo_bh()
48 if (i2c_start_send_async(state->bus, state->data[0])) { in i2c_echo_bh()
52 state->pos++; in i2c_echo_bh()
53 state->state = I2C_ECHO_STATE_ACK; in i2c_echo_bh()
57 if (state->pos > 2) { in i2c_echo_bh()
61 if (i2c_send_async(state->bus, state->data[state->pos++])) { in i2c_echo_bh()
69 i2c_end_transfer(state->bus); in i2c_echo_bh()
71 i2c_bus_release(state->bus); in i2c_echo_bh()
[all …]
/qemu/hw/xen/
H A Dxen-hvm-common.c75 XenIOState *state = container_of(listener, XenIOState, memory_listener); in xen_set_memory() local
81 xen_map_memory_section(xen_domid, state->ioservid, in xen_set_memory()
84 xen_unmap_memory_section(xen_domid, state->ioservid, in xen_set_memory()
89 arch_xen_set_memory(state, section, add); in xen_set_memory()
109 XenIOState *state = container_of(listener, XenIOState, io_listener); in xen_io_add() local
118 xen_map_io_section(xen_domid, state->ioservid, section); in xen_io_add()
124 XenIOState *state = container_of(listener, XenIOState, io_listener); in xen_io_del() local
131 xen_unmap_io_section(xen_domid, state->ioservid, section); in xen_io_del()
139 XenIOState *state = container_of(listener, XenIOState, device_listener); in xen_device_realize() local
148 QLIST_INSERT_HEAD(&state->dev_list, xendev, entry); in xen_device_realize()
[all …]
H A Dxen-bus.c79 xs_node_printf(xenbus->xsh, tid, xendev->backend_path, "state", in xen_device_unplug()
152 if (!strcmp(key[i], "state") || in xen_bus_backend_create()
203 enum xenbus_state state; in xen_bus_type_enumerate() local
206 if (xs_node_scanf(xenbus->xsh, XBT_NULL, backend_path, "state", in xen_bus_type_enumerate()
207 NULL, "%u", &state) != 1) in xen_bus_type_enumerate()
208 state = XenbusStateUnknown; in xen_bus_type_enumerate()
214 if (online && state == XenbusStateInitialising && in xen_bus_type_enumerate()
446 enum xenbus_state state) in xen_device_backend_set_state() argument
450 if (xendev->backend_state == state) { in xen_device_backend_set_state()
455 xs_strstate(state)); in xen_device_backend_set_state()
[all …]
/qemu/ui/
H A Dtrace-events43 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"
45 vnc_msg_server_audio_data(void *state, void *ioc, const void *buf, size_t len) "VNC server msg audi…
46 vnc_msg_server_desktop_resize(void *state, void *ioc, int width, int height) "VNC server msg ext re…
47 …g_server_ext_desktop_resize(void *state, void *ioc, int width, int height, int reason) "VNC server…
48 vnc_msg_client_audio_enable(void *state, void *ioc) "VNC client msg audio enable state=%p ioc=%p"
49 vnc_msg_client_audio_disable(void *state, void *ioc) "VNC client msg audio disable state=%p ioc=%p"
50 vnc_msg_client_audio_format(void *state, void *ioc, int fmt, int channels, int freq) "VNC client ms…
51 …client_set_desktop_size(void *state, void *ioc, int width, int height, int screens) "VNC client ms…
52 vnc_client_eof(void *state, void *ioc) "VNC client EOF state=%p ioc=%p"
[all …]
/qemu/hw/intc/
H A Dgrlib_irqmp.c71 IRQMPState *state; member
90 static void grlib_irqmp_check_irqs(IRQMPState *state) in grlib_irqmp_check_irqs() argument
94 assert(state != NULL); in grlib_irqmp_check_irqs()
95 assert(state->parent != NULL); in grlib_irqmp_check_irqs()
97 for (i = 0; i < state->parent->ncpus; i++) { in grlib_irqmp_check_irqs()
98 uint32_t pend = (state->pending | state->force[i]) & state->mask[i]; in grlib_irqmp_check_irqs()
99 uint32_t level0 = pend & ~state->level; in grlib_irqmp_check_irqs()
100 uint32_t level1 = pend & state->level; in grlib_irqmp_check_irqs()
102 trace_grlib_irqmp_check_irqs(state->pending, state->force[i], in grlib_irqmp_check_irqs()
103 state->mask[i], level1, level0); in grlib_irqmp_check_irqs()
[all …]
H A Dxics_kvm.c67 uint64_t state; in icp_get_kvm_state() local
80 ret = kvm_get_one_reg(icp->cs, KVM_REG_PPC_ICP_STATE, &state); in icp_get_kvm_state()
82 error_report("Unable to retrieve KVM interrupt controller state" in icp_get_kvm_state()
87 icp->xirr = state >> KVM_REG_PPC_ICP_XISR_SHIFT; in icp_get_kvm_state()
88 icp->mfrr = (state >> KVM_REG_PPC_ICP_MFRR_SHIFT) in icp_get_kvm_state()
90 icp->pending_priority = (state >> KVM_REG_PPC_ICP_PPRI_SHIFT) in icp_get_kvm_state()
108 uint64_t state; in icp_set_kvm_state() local
121 state = ((uint64_t)icp->xirr << KVM_REG_PPC_ICP_XISR_SHIFT) in icp_set_kvm_state()
125 ret = kvm_set_one_reg(icp->cs, KVM_REG_PPC_ICP_STATE, &state); in icp_set_kvm_state()
128 "Unable to restore KVM interrupt controller state (0x%" in icp_set_kvm_state()
[all …]
/qemu/include/ui/
H A Dkbd-state.h31 * qkbd_state_init: init keyboard state tracker.
33 * Allocates and initializes keyboard state struct.
35 * @con: QemuConsole for this state tracker. Gets passed down to
41 * qkbd_state_free: free keyboard tracker state.
43 * @kbd: state tracker state.
50 * Update keyboard state, send event to the guest.
55 * @kbd: state tracker state.
67 * @kbd: state tracker state.
73 * qkbd_state_key_get: get key state.
77 * @kbd: state tracker state.
[all …]
/qemu/target/i386/nvmm/
H A Dnvmm-all.c86 struct nvmm_x64_state *state = vcpu->state; in nvmm_set_registers() local
94 state->gprs[NVMM_X64_GPR_RAX] = env->regs[R_EAX]; in nvmm_set_registers()
95 state->gprs[NVMM_X64_GPR_RCX] = env->regs[R_ECX]; in nvmm_set_registers()
96 state->gprs[NVMM_X64_GPR_RDX] = env->regs[R_EDX]; in nvmm_set_registers()
97 state->gprs[NVMM_X64_GPR_RBX] = env->regs[R_EBX]; in nvmm_set_registers()
98 state->gprs[NVMM_X64_GPR_RSP] = env->regs[R_ESP]; in nvmm_set_registers()
99 state->gprs[NVMM_X64_GPR_RBP] = env->regs[R_EBP]; in nvmm_set_registers()
100 state->gprs[NVMM_X64_GPR_RSI] = env->regs[R_ESI]; in nvmm_set_registers()
101 state->gprs[NVMM_X64_GPR_RDI] = env->regs[R_EDI]; in nvmm_set_registers()
103 state->gprs[NVMM_X64_GPR_R8] = env->regs[R_R8]; in nvmm_set_registers()
[all …]
/qemu/block/
H A Dcurl.c166 CURLState *state = NULL; in curl_sock_cb() local
169 curl_easy_getinfo(curl, CURLINFO_PRIVATE, (char **)&state); in curl_sock_cb()
170 s = state->s; in curl_sock_cb()
274 CURLState *state = &s->states[i]; in curl_find_buf() local
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()
278 if (!state->orig_buf) in curl_find_buf()
280 if (!state->buf_off) in curl_find_buf()
284 if ((start >= state->buf_start) && in curl_find_buf()
286 (clamped_end >= state->buf_start) && in curl_find_buf()
[all …]
/qemu/include/system/
H A Drunstate.h4 #include "qapi/qapi-types-run-state.h"
7 bool runstate_check(RunState state);
14 typedef void VMChangeStateHandler(void *opaque, bool running, RunState state);
15 typedef int VMChangeStateHandlerWithRet(void *opaque, bool running, RunState state);
35 * vm_state_notify: Notify the state of the VM
38 * @state: the #RunState of the VM.
44 int vm_state_notify(bool running, RunState state);
52 * In a "live" state, the vcpu clock is ticking, and the runstate notifiers
55 static inline bool runstate_is_live(RunState state) in runstate_is_live() argument
57 return state == RUN_STATE_RUNNING || state == RUN_STATE_SUSPENDED; in runstate_is_live()
[all …]
/qemu/docs/sphinx/
H A Ddbusparser.py122 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:
209 self.state = DBusXMLParser.STATE_NODE
211 self.state = DBusXMLParser.STATE_IGNORED
212 elif self.state == DBusXMLParser.STATE_NODE:
214 self.state = DBusXMLParser.STATE_INTERFACE
219 self.state = DBusXMLParser.STATE_ANNOTATION
[all …]
/qemu/docs/devel/testing/
H A Dblkdebug.rst62 ``state``
63 (optional) the engine must be in this state number in order for this
64 rule to match. See `State transitions`_ for information
102 write out unwritten block driver state (e.g. cached metadata)
111 State transitions
120 How do we match the 2nd ``write_aio`` but not the first? This is where state
123 The error injection engine has an integer called the "state" that always starts
124 initialized to 1. The state integer is internal to ``blkdebug`` and cannot be
128 Rules can be conditional on the current state and they can transition to a new
129 state.
[all …]
/qemu/docs/system/
H A Dmanaged-startup.rst5 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/docs/devel/migration/
H A Dvfio.rst5 Migration of virtual machine involves saving the state for each device that
6 the guest is running on source host and restoring this saved state on the
14 continue whilst the VFIO device state is transferred to the destination, this
27 themselves, VFIO migration uAPI defines an intermediate P2P quiescent state.
28 While in the P2P quiescent state, P2P DMA transactions cannot be initiated by
31 the device enters this state.
34 quiescent state and only then are they stopped or started. This makes migration
51 _RESUMING state.
79 _STOP_COPY state and iteratively copies the data for the VFIO device until
84 provides thread handler performing multifd device state transfer.
[all …]
H A Dmain.rst7 QEMU has code to load/save the state of the guest that it is running.
8 These are two complementary operations. Saving the state just does
9 that, saves the state for each device that the guest is running.
11 state of each device.
14 two times. I.e. it can only restore the state in one guest that has
25 because some guests run with a lot of state (specially RAM), and it
26 can take a while to move all state from one machine to another. Live
27 migration allows the guest to continue running while the state is
28 transferred. Only while the last part of the state is transferred has
73 save/restore state devices. This infrastructure is shared with the
[all …]
/qemu/qapi/
H A Dvfio.json18 # @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.
59 # "device-state": "stop" } }
[all …]
H A Dtrace.json16 # State of a tracing event.
36 # @state: Tracing state.
41 'data': {'name': 'str', 'state': 'TraceEventState' } }
44 # @trace-event-get-state:
46 # Query the state of events.
56 # -> { "execute": "trace-event-get-state",
58 # <- { "return": [ { "name": "qemu_memalign", "state": "disabled", "vcpu": false } ] } string
60 { 'command': 'trace-event-get-state',
65 # @trace-event-set-state:
67 # Set the dynamic tracing state of events.
[all …]
/qemu/util/
H A Dqemu-progress.c36 static struct progress_state state; variable
46 printf(" (%3.2f/100%%)\r", state.current); in progress_simple_print()
57 state.print = progress_simple_print; in progress_simple_init()
58 state.end = progress_simple_end; in progress_simple_init()
71 fprintf(stderr, " (%3.2f/100%%)\n", state.current); in progress_dummy_print()
105 state.print = progress_dummy_print; in progress_dummy_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()
149 current = state.current + delta / 100 * max; in qemu_progress_print()
[all …]
/qemu/tests/qemu-iotests/
H A D219.out39 {"error": {"class": "GenericError", "desc": "Job 'job0' in state 'running' cannot accept command ve…
40 {"error": {"class": "GenericError", "desc": "Job 'job0' in state 'running' cannot accept command ve…
41 {"error": {"class": "GenericError", "desc": "Job 'job0' in state 'running' cannot accept command ve…
42 {"error": {"class": "GenericError", "desc": "Job 'job0' in state 'running' cannot accept command ve…
43 {"error": {"class": "GenericError", "desc": "Job 'job0' in state 'running' cannot accept command ve…
44 {"error": {"class": "GenericError", "desc": "Job 'job0' in state 'running' cannot accept command ve…
47 Waiting for READY state...
80 {"error": {"class": "GenericError", "desc": "Job 'job0' in state 'ready' cannot accept command verb…
81 {"error": {"class": "GenericError", "desc": "Job 'job0' in state 'ready' cannot accept command verb…
82 {"error": {"class": "GenericError", "desc": "Job 'job0' in state 'ready' cannot accept command verb…
[all …]
H A D29378 $QEMU_IMG amend $SECRETS $IMGS0 -o ${PR}state=active,${PR}new-secret=sec4,${PR}iter-time=10,${PR}ke…
80 $QEMU_IMG amend $SECRETS $IMGS0 -o ${PR}state=active,${PR}new-secret=sec1,${PR}iter-time=10
82 $QEMU_IMG amend $SECRETS $IMGS1 -o ${PR}state=active,${PR}new-secret=sec3,${PR}iter-time=10,${PR}ke…
85 $QEMU_IMG amend $SECRETS $IMGS3 -o ${PR}state=active,${PR}new-secret=sec2,${PR}iter-time=10
89 $QEMU_IMG amend $SECRETS $IMGS1 -o ${PR}state=inactive,${PR}keyslot=4 | _filter_img_create
100 $QEMU_IMG amend $SECRETS $IMGS1 -o ${PR}state=inactive,${PR}old-secret=sec0 | _filter_img_create
105 $QEMU_IMG amend $SECRETS $IMGS1 -o ${PR}state=inactive,${PR}keyslot=2 | _filter_img_create
114 $QEMU_IMG amend $SECRETS $IMGS3 -o ${PR}state=active,${PR}new-secret=sec2,${PR}iter-time=10
119 $QEMU_IMG amend $SECRETS $IMGS3 -o ${PR}state=active,${PR}new-secret=sec0,${PR}iter-time=10
123 $QEMU_IMG amend $SECRETS $IMGS3 -o ${PR}state=active,${PR}new-secret=sec3,${PR}iter-time=10
[all …]
/qemu/docs/spin/
H A Dwin32-qemu-event.promela38 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/tpm/
H A Dtpm_tis_sysbus.c39 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),
59 VMSTATE_UINT8(state.aborting_locty, TPMStateSysBus),
60 VMSTATE_UINT8(state.next_locty, TPMStateSysBus),
62 VMSTATE_STRUCT_ARRAY(state.loc, TPMStateSysBus, TPM_TIS_NUM_LOCALITIES,
72 TPMState *s = &sbdev->state; in tpm_tis_sysbus_request_completed()
80 TPMState *s = &sbdev->state; in tpm_tis_sysbus_get_tpm_version()
[all …]
H A Dtpm_tis_isa.c40 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),
60 VMSTATE_UINT8(state.aborting_locty, TPMStateISA),
61 VMSTATE_UINT8(state.next_locty, TPMStateISA),
63 VMSTATE_STRUCT_ARRAY(state.loc, TPMStateISA, TPM_TIS_NUM_LOCALITIES, 0,
73 TPMState *s = &isadev->state; in tpm_tis_isa_request_completed()
81 TPMState *s = &isadev->state; in tpm_tis_isa_get_tpm_version()
[all …]
/qemu/scripts/tracetool/format/
H A Dlog_stap.py35 state = 0
46 if state != STATE_LITERAL:
50 if state == STATE_LITERAL:
51 state = STATE_SKIP
55 if state == STATE_MACRO:
58 state = STATE_LITERAL
60 if state == STATE_MACRO:
63 state = STATE_SKIP
64 elif state == STATE_LITERAL:
68 if state == STATE_SKIP:
[all …]
/qemu/
H A Dblockdev.c1215 InternalSnapshotState *state = g_new0(InternalSnapshotState, 1); in internal_snapshot_action() local
1221 tran_add(tran, &internal_snapshot_drv, state); in internal_snapshot_action()
1232 state->bs = bs; in internal_snapshot_action()
1286 sn = &state->sn; in internal_snapshot_action()
1307 state->created = true; in internal_snapshot_action()
1312 InternalSnapshotState *state = opaque; in internal_snapshot_abort() local
1313 BlockDriverState *bs = state->bs; in internal_snapshot_abort()
1314 QEMUSnapshotInfo *sn = &state->sn; in internal_snapshot_abort()
1319 if (!state->created) { in internal_snapshot_abort()
1339 g_autofree InternalSnapshotState *state = opaque; in internal_snapshot_clean() local
[all …]

12345678910>>...54