Home
last modified time | relevance | path

Searched refs:state (Results 1 – 25 of 169) sorted by relevance

1234567

/xen/xen/tools/
A Dgen-cpuid.py134 state.hvm_shadow_def = state.pv_def | state.raw['S']
135 state.hvm_hap_def = state.hvm_shadow_def | state.raw['H']
137 state.pv_max = state.raw['A'] | state.raw['a']
138 state.hvm_shadow_max = state.pv_max | state.raw['S'] | state.raw['s']
139 state.hvm_hap_max = state.hvm_shadow_max | state.raw['H'] | state.raw['h']
321 state.nr_deep_deps = len(state.deep_deps.keys())
385 format_uint32s(state, state.raw['!'], 4),
386 format_uint32s(state, state.pv_def, 4),
387 format_uint32s(state, state.pv_max, 4),
390 format_uint32s(state, state.hvm_hap_def, 4),
[all …]
/xen/tools/libvchan/
A Dvchan-socket-proxy.c352 if (state->input_fd == state->output_fd) in data_loop()
438 if (!state.ctrl) { in main()
444 state.input_fd = 0; in main()
482 state.input_fd = state.output_fd = connect_socket(socket_path); in main()
497 state.input_fd = state.output_fd = accept(socket_fd, in main()
507 if (!state.ctrl) { in main()
519 state.ctrl = NULL; in main()
523 if (state.output_fd >= 0) in main()
525 if (state.input_fd >= 0) in main()
526 close(state.input_fd); in main()
[all …]
/xen/xen/common/xz/
A Dlzma2.h64 static inline void INIT lzma_state_literal(enum lzma_state *state) in lzma_state_literal() argument
66 if (*state <= STATE_SHORTREP_LIT_LIT) in lzma_state_literal()
67 *state = STATE_LIT_LIT; in lzma_state_literal()
68 else if (*state <= STATE_LIT_SHORTREP) in lzma_state_literal()
69 *state -= 3; in lzma_state_literal()
71 *state -= 6; in lzma_state_literal()
75 static inline void INIT lzma_state_match(enum lzma_state *state) in lzma_state_match() argument
77 *state = *state < LIT_STATES ? STATE_LIT_MATCH : STATE_NONLIT_MATCH; in lzma_state_match()
83 *state = *state < LIT_STATES ? STATE_LIT_LONGREP : STATE_NONLIT_REP; in lzma_state_long_rep()
89 *state = *state < LIT_STATES ? STATE_LIT_SHORTREP : STATE_NONLIT_REP; in lzma_state_short_rep()
[all …]
/xen/tools/libxl/
A Dlibxl_dom.c385 state->store_port = xc_evtchn_alloc_unbound(ctx->xch, domid, state->store_domid); in libxl__build_pre()
386 state->console_port = xc_evtchn_alloc_unbound(ctx->xch, domid, state->console_domid); in libxl__build_pre()
393 if (!state->restore) in libxl__build_pre()
509 xs_introduce_domain(ctx->xsh, domid, state->store_mfn, state->store_port); in libxl__build_post()
658 if ( state->pv_ramdisk.path && strlen(state->pv_ramdisk.path) ) { in libxl__build_pv()
902 state->pv_kernel.size, state->pv_cmdline); in libxl__domain_firmware()
909 state->pv_kernel.path, state->pv_cmdline); in libxl__domain_firmware()
934 if (state->pv_ramdisk.path && strlen(state->pv_ramdisk.path)) { in libxl__domain_firmware()
1066 (state->shim_path ? state->shim_cmdline : state->pv_cmdline) : in libxl__build_hvm()
1180 &state->store_mfn, state->console_port, in libxl__build_hvm()
[all …]
A Dlibxlu_pci.c51 unsigned state = STATE_DOMAIN; in xlu_pci_parse_bdf() local
59 switch(state) { in xlu_pci_parse_bdf()
62 state = STATE_BUS; in xlu_pci_parse_bdf()
71 state = STATE_DEV; in xlu_pci_parse_bdf()
77 state = STATE_FUNC; in xlu_pci_parse_bdf()
90 state = STATE_FUNC; in xlu_pci_parse_bdf()
101 state = STATE_TERMINAL; in xlu_pci_parse_bdf()
104 state = STATE_VSLOT; in xlu_pci_parse_bdf()
132 state = STATE_OPTIONS_V; in xlu_pci_parse_bdf()
190 unsigned state = STATE_TYPE; in xlu_rdm_parse() local
[all …]
A Dlibxl_vnuma.c167 qsort(state->vmemranges, state->num_vmemranges, sizeof(xen_vmemrange_t), in libxl__vnuma_config_check()
171 if (state->vmemranges[i].end < state->vmemranges[i].start) { in libxl__vnuma_config_check()
178 if (state->vmemranges[i].end > state->vmemranges[i+1].start) { in libxl__vnuma_config_check()
181 state->vmemranges[i].start, state->vmemranges[i].end, in libxl__vnuma_config_check()
182 state->vmemranges[i+1].start, state->vmemranges[i+1].end); in libxl__vnuma_config_check()
236 state->vmemranges = v; in libxl__vnuma_build_vmemrange_pv_generic()
237 state->num_vmemranges = i; in libxl__vnuma_build_vmemrange_pv_generic()
248 assert(state->vmemranges == NULL); in libxl__vnuma_build_vmemrange_pv()
274 assert(state->vmemranges == NULL); in libxl__vnuma_build_vmemrange_hvm()
313 state->vmemranges = vmemranges; in libxl__vnuma_build_vmemrange_hvm()
[all …]
A Dlibxl_arch.h28 libxl__domain_build_state *state,
40 libxl__domain_build_state *state,
54 libxl__domain_build_state *state);
61 libxl__domain_build_state *state);
A Dlibxl_dom_suspend.c109 libxl__xswait_state *xswa, int rc, const char *state);
137 if (!state) return 1; in domain_suspend_pvcontrol_acked()
138 return strcmp(state,"suspend"); in domain_suspend_pvcontrol_acked()
227 if (!rc && !domain_suspend_pvcontrol_acked(state)) in domain_suspend_common_pvcontrol_suspending()
250 if (domain_suspend_pvcontrol_acked(state)) in domain_suspend_common_pvcontrol_suspending()
270 assert(domain_suspend_pvcontrol_acked(state)); in domain_suspend_common_pvcontrol_suspending()
421 const char *path, *state; in libxl__domain_resume_device_model_deprecated() local
428 state = libxl__xs_read(gc, XBT_NULL, path); in libxl__domain_resume_device_model_deprecated()
429 if (state != NULL && !strcmp(state, "paused")) { in libxl__domain_resume_device_model_deprecated()
524 const char *path, *state; in libxl__dm_resume() local
[all …]
A Dlibxl_create.c540 if (state->pv_ramdisk.path) { in libxl__domain_build()
544 if (state->pv_cmdline) { in libxl__domain_build()
918 state->dm_monitor_fd = -1; in libxl__domain_build_state_init()
925 if (state->dm_monitor_fd >= 0) { in libxl__domain_build_state_dispose()
926 close(state->dm_monitor_fd); in libxl__domain_build_state_dispose()
927 state->dm_monitor_fd = -1; in libxl__domain_build_state_dispose()
1340 state->pv_cmdline = bl->cmdline; in domcreate_bootloader_done()
1512 if (state->pv_ramdisk.path) { in domcreate_stream_done()
1516 if (state->pv_cmdline) { in domcreate_stream_done()
2116 libxl__domain_build_state *state; in do_domain_soft_reset() local
[all …]
/xen/xen/arch/x86/hvm/svm/
A Demulate.c69 struct x86_emulate_state *state; in svm_get_insn_len() local
87 state = x86_decode_insn(&ctxt.ctxt, hvmemul_insn_fetch); in svm_get_insn_len()
88 if ( IS_ERR_OR_NULL(state) ) in svm_get_insn_len()
91 emul_len = x86_insn_length(state, &ctxt.ctxt); in svm_get_insn_len()
92 modrm_mod = x86_insn_modrm(state, &modrm_rm, &modrm_reg); in svm_get_insn_len()
93 x86_emulate_free_state(state); in svm_get_insn_len()
127 struct x86_emulate_state *state; in svm_get_task_switch_insn_len() local
132 state = x86_decode_insn(&ctxt.ctxt, hvmemul_insn_fetch); in svm_get_task_switch_insn_len()
133 if ( IS_ERR_OR_NULL(state) ) in svm_get_task_switch_insn_len()
136 emul_len = x86_insn_length(state, &ctxt.ctxt); in svm_get_task_switch_insn_len()
[all …]
/xen/xen/common/efi/
A Druntime.c89 return state; in efi_rs_enter()
91 state.cr3 = read_cr3(); in efi_rs_enter()
116 return state; in efi_rs_enter()
123 if ( !state->cr3 ) in efi_rs_leave()
155 if ( !state.cr3 ) in efi_get_time()
160 efi_rs_leave(&state); in efi_get_time()
174 if ( !state.cr3 ) in efi_halt_system()
177 efi_rs_leave(&state); in efi_halt_system()
187 if ( !state.cr3 ) in efi_reset_system()
191 efi_rs_leave(&state); in efi_reset_system()
[all …]
/xen/xen/common/
A Dstop_machine.c44 enum stopmachine_state state; member
57 static void stopmachine_set_state(enum stopmachine_state state) in stopmachine_set_state() argument
61 stopmachine_data.state = state; in stopmachine_set_state()
106 stopmachine_data.state = STOPMACHINE_START; in stop_machine_run()
147 enum stopmachine_state state = STOPMACHINE_START; in stopmachine_action() local
153 while ( state != STOPMACHINE_EXIT ) in stopmachine_action()
155 while ( stopmachine_data.state == state ) in stopmachine_action()
158 state = stopmachine_data.state; in stopmachine_action()
159 switch ( state ) in stopmachine_action()
A Dunlzma.c282 int state; member
375 if (cst->state < 4) in process_bit0()
376 cst->state = 0; in process_bit0()
378 cst->state -= 3; in process_bit0()
380 cst->state -= 6; in process_bit0()
400 cst->state = cst->state < LZMA_NUM_LIT_STATES ? 0 : 3; in process_bit1()
408 + (cst->state << in process_bit1()
414 cst->state = cst->state < LZMA_NUM_LIT_STATES ? in process_bit1()
444 cst->state = cst->state < LZMA_NUM_LIT_STATES ? 8 : 11; in process_bit1()
478 if (cst->state < 4) { in process_bit1()
[all …]
/xen/xen/arch/x86/acpi/
A Dpower.c170 static void acpi_sleep_prepare(u32 state) in acpi_sleep_prepare() argument
174 if ( state != ACPI_STATE_S3 ) in acpi_sleep_prepare()
190 static void acpi_sleep_post(u32 state) {} in acpi_sleep_post() argument
193 static int enter_state(u32 state) in enter_state() argument
199 if ( (state <= ACPI_STATE_S0) || (state > ACPI_S_STATES_MAX) ) in enter_state()
210 printk(XENLOG_INFO "Preparing system for ACPI S%d state.\n", state); in enter_state()
226 acpi_sleep_prepare(state); in enter_state()
230 printk("Entering ACPI S%d state.\n", state); in enter_state()
255 switch ( state ) in enter_state()
281 if ( (state == ACPI_STATE_S3) && error ) in enter_state()
[all …]
/xen/xen/arch/x86/x86_emulate/
A Dx86_emulate.h291 struct x86_emulate_state *state,
325 struct x86_emulate_state *state,
333 const struct x86_emulate_state *state,
758 x86_insn_opsize(const struct x86_emulate_state *state);
760 x86_insn_modrm(const struct x86_emulate_state *state,
763 x86_insn_operand_ea(const struct x86_emulate_state *state,
766 x86_insn_immediate(const struct x86_emulate_state *state,
769 x86_insn_length(const struct x86_emulate_state *state,
778 x86_insn_is_portio(const struct x86_emulate_state *state,
811 struct x86_emulate_state *state,
[all …]
A Dx86_emulate.c2586 state->desc = (state->desc & ByteOp) | DstNone | SrcMem; in x86_decode_onebyte()
2621 state->desc = (state->desc & ByteOp) | DstNone | SrcMem; in x86_decode_onebyte()
2934 memset(state, 0, sizeof(*state)); in x86_decode()
3382 ea.mem.off = state->regs->bx + state->regs->si; in x86_decode()
3385 ea.mem.off = state->regs->bx + state->regs->di; in x86_decode()
3389 ea.mem.off = state->regs->bp + state->regs->si; in x86_decode()
3393 ea.mem.off = state->regs->bp + state->regs->di; in x86_decode()
3744 #define state (&state) in x86_emulate() macro
11493 #undef state in x86_emulate()
12141 struct x86_emulate_state *state = &this_cpu(state); in x86_decode_insn() local
[all …]
/xen/xen/arch/x86/x86_64/
A Dcpu_idle.c52 compat_processor_cx_t *state) in copy_from_compat_state() argument
59 XLAT_processor_cx(xen_state, state); in copy_from_compat_state()
83 compat_processor_cx_t state; \ in compat_set_cx_pminfo()
97 if ( unlikely(copy_from_guest_offset(&state, states, i, 1)) ) \ in compat_set_cx_pminfo()
99 if ( unlikely(copy_from_compat_state(&xen_states[i], &state)) ) \ in compat_set_cx_pminfo()
/xen/xen/tools/kconfig/
A Dstreamline_config.pl158 my $state = "NONE";
204 $state = "NEW";
214 $state = "DEP";
218 } elsif ($state eq "NEW" && /^\s*depends\s+on\s+(.*)$/) {
219 $state = "DEP";
221 } elsif ($state eq "DEP" && /^\s*depends\s+on\s+(.*)$/) {
223 } elsif ($state eq "DEP" && /^\s*def(_(bool|tristate)|ault)\s+(\S.*)$/) {
232 } elsif ($state ne "NONE" && /^\s*select\s+(\S+)/) {
241 } elsif ($state ne "NONE" && /^\s*(tristate\s+\S|prompt\b)/) {
262 $state = "NONE";
A Dnconf.c1030 state->in_search = 1-state->in_search; in do_match()
1031 bzero(state->pattern, sizeof(state->pattern)); in do_match()
1034 } else if (!state->in_search) in do_match()
1038 state->pattern[strlen(state->pattern)] = c; in do_match()
1039 state->pattern[strlen(state->pattern)] = '\0'; in do_match()
1042 state->match_direction); in do_match()
1046 state->match_direction); in do_match()
1050 state->match_direction); in do_match()
1052 state->pattern[strlen(state->pattern)-1] = '\0'; in do_match()
1058 state->in_search = 0; in do_match()
[all …]
/xen/xen/arch/x86/pv/
A Demul-gate-op.c171 struct x86_emulate_state *state; in pv_emulate_gate_op() local
208 state = x86_decode_insn(&ctxt.ctxt, read_mem); in pv_emulate_gate_op()
210 if ( IS_ERR_OR_NULL(state) ) in pv_emulate_gate_op()
212 if ( PTR_ERR(state) == -X86EMUL_EXCEPTION ) in pv_emulate_gate_op()
228 opnd_sel = x86_insn_immediate(state, 1); in pv_emulate_gate_op()
231 if ( x86_insn_modrm(state, NULL, &modrm_345) >= 3 ) in pv_emulate_gate_op()
242 base = x86_insn_operand_ea(state, &seg); in pv_emulate_gate_op()
243 rc = read_mem(seg, base + (x86_insn_opsize(state) >> 3), in pv_emulate_gate_op()
250 insn_len = x86_insn_length(state, &ctxt.ctxt); in pv_emulate_gate_op()
251 x86_emulate_free_state(state); in pv_emulate_gate_op()
/xen/tools/xl/
A Dxl_utils.c205 int firstset = 0, state = 0; in print_bitmap() local
213 switch (state) { in print_bitmap()
218 state++; in print_bitmap()
224 fprintf(stream, "%s%d", state > 1 ? "," : "", firstset); in print_bitmap()
227 state = 2; in print_bitmap()
232 switch (state) { in print_bitmap()
244 fprintf(stream, "%s%d", state > 1 ? "," : "", firstset); in print_bitmap()
/xen/xen/include/asm-arm/
A Dgic.h347 void (*set_active_state)(struct irq_desc *irqd, bool state);
349 void (*set_pending_state)(struct irq_desc *irqd, bool state);
361 unsigned int hw_irq, unsigned int state);
409 static inline void gic_set_active_state(struct irq_desc *irqd, bool state) in gic_set_active_state() argument
412 gic_hw_ops->set_active_state(irqd, state); in gic_set_active_state()
420 static inline void gic_set_pending_state(struct irq_desc *irqd, bool state) in gic_set_pending_state() argument
422 gic_hw_ops->set_pending_state(irqd, state); in gic_set_pending_state()
/xen/docs/designs/
A Dnon-cooperative-migration.md21 power state S0. The reason for not expecting co-operation if the guest is
22 any sort of suspended state is obvious, but the reason co-operation is
70 the value of both state nodes to 1 (XenbusStateInitialising[2]). This
74 by the frontend driver) will update the backend state node to 2
81 and set the state node in the frontend area to 4 (XenbusStateConnected).
84 end of them) and set the state node in the backend area to 4. Protocol
149 state.
192 Currently no event channel state is preserved on migration, requiring
208 avoided and instead be included in the general event channel state
226 forms part of the guest state.
[all …]
/xen/xen/drivers/char/
A Dehci-dbgp.c325 } state; member
437 dbgp->state = dbgp_unsafe; in dbgp_issue_command()
444 if ( dbgp->state != dbgp_unsafe ) in dbgp_issue_command()
445 dbgp->state = state; in dbgp_issue_command()
454 if ( dbgp->state == dbgp_idle ) in dbgp_check_for_completion()
507 if ( dbgp->state != dbgp_unsafe ) in dbgp_check_for_completion()
508 dbgp->state = dbgp_idle; in dbgp_check_for_completion()
526 dbgp->state = dbgp_unsafe; in dbgp_wait_until_complete()
992 dbgp->state = dbgp_idle; in ehci_dbgp_external_startup()
1183 if ( dbgp->state == dbgp_idle ) in ehci_dbgp_flush()
[all …]
/xen/tools/misc/
A Dxen-livepatch.c53 static const char *state2str(unsigned int state) in state2str() argument
61 if (state >= ARRAY_SIZE(names) || !names[state]) in state2str()
64 return names[state]; in state2str()
148 printf("%-40.*s| %s", len[i], name_str, state2str(info[i].state)); in list_func()
427 if ( status.state == action_options[idx].expected ) in action_func()
434 if ( action_options[idx].allow & status.state ) in action_func()
452 name, state2str(status.state), in action_func()
473 rc = status.state; in action_func()

Completed in 58 milliseconds

1234567