Home
last modified time | relevance | path

Searched refs:ctx (Results 1 – 25 of 145) sorted by relevance

123456

/xen-4.10.0-shim-comet/tools/libxc/
A Dxc_sr_save.c122 types[i] = mfns[i] = ctx->save.ops.pfn_to_gfn(ctx, in write_batch()
337 (ctx->dominfo.domid != ctx->domid) ) in suspend_domain()
398 return ctx->save.ops.check_vm_state(ctx); in send_dirty_pages()
412 return send_dirty_pages(ctx, ctx->save.p2m_size); in send_all_pages()
582 rc = read_record(ctx, ctx->save.recv_fd, &rec); in colo_merge_secondary_dirty_bitmap()
793 rc = ctx->save.ops.setup(ctx); in setup()
828 if ( ctx->save.ops.cleanup(ctx) ) in cleanup()
858 rc = ctx->save.ops.start_of_stream(ctx); in save()
863 rc = ctx->save.ops.start_of_checkpoint(ctx); in save()
867 rc = ctx->save.ops.check_vm_state(ctx); in save()
[all …]
A Dxc_compression.c119 char *dest = (ctx->compbuf + ctx->compbuf_pos); in add_full_page()
135 char *dest = (ctx->compbuf + ctx->compbuf_pos); in compress_page()
317 if (!ctx->pfns_len || (ctx->pfns_index == ctx->pfns_len)) { in xc_compression_compress_pages()
318 ctx->pfns_len = ctx->pfns_index = 0; in xc_compression_compress_pages()
326 for (; ctx->pfns_index < ctx->pfns_len; ctx->pfns_index++) in xc_compression_compress_pages()
360 ctx->pfns_index = ctx->pfns_len = 0; in xc_compression_reset_pagebuf()
463 free(ctx); in xc_compression_free_context()
474 if (!ctx) in xc_compression_create_context()
527 ctx->page_list_head = &(ctx->cache[0]); in xc_compression_create_context()
528 ctx->page_list_tail = &(ctx->cache[num_cache_pages -1]); in xc_compression_create_context()
[all …]
A Dxc_sr_restore_x86_pv.c9 return xc_pfn_to_mfn(pfn, ctx->x86_pv.p2m, ctx->x86_pv.width); in pfn_to_mfn()
38 ctx->x86_pv.p2m = p2m; in expand_p2m()
62 ctx->restore.ops.set_gfn(ctx, i, INVALID_MFN); in expand_p2m()
63 ctx->restore.ops.set_page_type(ctx, i, 0); in expand_p2m()
192 ctx->restore.xenstore_evtchn, ctx->x86_pv.width); in process_start_info()
213 ctx->restore.console_evtchn, ctx->x86_pv.width); in process_start_info()
217 ctx->x86_pv.max_pfn + 1, ctx->x86_pv.width); in process_start_info()
325 SET_FIELD(&vcpu, ctrlreg[3], mfn_to_cr3(ctx, mfn), ctx->x86_pv.width); in process_vcpu_basic()
575 (ctx->x86_pv.max_pfn + 1) * ctx->x86_pv.width); in update_guest_p2m()
1039 ctx->x86_pv.restore.nr_vcpus = ctx->dominfo.max_vcpu_id + 1; in x86_pv_setup()
[all …]
A Dxc_sr_save_x86_pv.c20 xch, ctx->domid, PAGE_SIZE, PROT_READ, ctx->dominfo.shared_info_frame); in map_shinfo()
85 ctx->x86_pv.p2m = xc_map_foreign_pages(xch, ctx->domid, PROT_READ, in map_p2m_leaves()
93 ctx->save.p2m_size = ctx->x86_pv.max_pfn + 1; in map_p2m_leaves()
114 ctx->x86_pv.p2m_pfns[x] = mfn_to_pfn(ctx, mfns[x]); in map_p2m_leaves()
221 ctx->x86_pv.p2m_frames = (ctx->x86_pv.max_pfn + fpp) / fpp; in map_p2m_tree()
338 ctx->x86_pv.p2m_frames = ctx->x86_pv.max_pfn / fpp + 1; in map_p2m_list()
471 ctx->x86_pv.max_pfn = GET_FIELD(ctx->x86_pv.shinfo, arch.max_pfn, in map_p2m()
475 return p2m_cr3 ? map_p2m_list(ctx, p2m_cr3) : map_p2m_tree(ctx); in map_p2m()
1013 return xc_pfn_to_mfn(pfn, ctx->x86_pv.p2m, ctx->x86_pv.width); in x86_pv_pfn_to_gfn()
1138 munmap(ctx->x86_pv.p2m, ctx->x86_pv.p2m_frames * PAGE_SIZE); in x86_pv_cleanup()
[all …]
A Dxc_sr_restore.c184 ctx->restore.ops.set_gfn(ctx, pfns[i], mfns[i]); in populate_pfns()
231 ctx->restore.ops.set_page_type(ctx, pfns[i], types[i]); in process_page_data()
289 rc = ctx->restore.ops.localise_page(ctx, types[i], page_data); in process_page_data()
372 if ( !ctx->restore.ops.pfn_is_valid(ctx, pfn) ) in handle_page_data()
570 rc = ctx->restore.ops.stream_complete(ctx); in handle_checkpoint()
653 rc = ctx->restore.ops.process_record(ctx, rec); in process_record()
683 rc = ctx->restore.ops.setup(ctx); in setup()
726 if ( ctx->restore.ops.cleanup(ctx) ) in cleanup()
747 rc = read_record(ctx, ctx->fd, &rec); in restore()
802 rc = ctx->restore.ops.stream_complete(ctx); in restore()
[all …]
A Dxc_sr_restore_x86_hvm.c12 xc_interface *xch = ctx->xch; in handle_hvm_context()
22 free(ctx->x86_hvm.restore.context); in handle_hvm_context()
25 ctx->x86_hvm.restore.contextsz = rec->length; in handle_hvm_context()
36 xc_interface *xch = ctx->xch; in handle_hvm_params()
137 xc_interface *xch = ctx->xch; in x86_hvm_setup()
148 ctx->restore.guest_page_size); in x86_hvm_setup()
173 return handle_tsc_info(ctx, rec); in x86_hvm_process_record()
176 return handle_hvm_context(ctx, rec); in x86_hvm_process_record()
179 return handle_hvm_params(ctx, rec); in x86_hvm_process_record()
191 xc_interface *xch = ctx->xch; in x86_hvm_stream_complete()
[all …]
A Dxc_sr_common_x86_pv.c7 assert(mfn <= ctx->x86_pv.max_mfn); in mfn_to_pfn()
8 return ctx->x86_pv.m2p[mfn]; in mfn_to_pfn()
14 (mfn_to_pfn(ctx, mfn) <= ctx->x86_pv.max_pfn) && in mfn_in_pseudophysmap()
15 (xc_pfn_to_mfn(mfn_to_pfn(ctx, mfn), ctx->x86_pv.p2m, in mfn_in_pseudophysmap()
21 xc_interface *xch = ctx->xch; in dump_bad_pseudophysmap_entry()
28 pfn = ctx->x86_pv.m2p[mfn]; in dump_bad_pseudophysmap_entry()
35 pfn, xc_pfn_to_mfn(pfn, ctx->x86_pv.p2m, ctx->x86_pv.width)); in dump_bad_pseudophysmap_entry()
40 if ( ctx->x86_pv.width == 8 ) in cr3_to_mfn()
56 if ( ctx->x86_pv.width == 8 ) in mfn_to_cr3()
70 xc_interface *xch = ctx->xch; in x86_pv_domain_info()
[all …]
A Dxc_sr_save_x86_hvm.c12 xc_interface *xch = ctx->xch; in write_hvm_context()
45 rc = write_record(ctx, &hvm_rec); in write_hvm_context()
83 xc_interface *xch = ctx->xch; in write_hvm_params()
143 xc_interface *xch = ctx->xch; in x86_hvm_setup()
161 ctx->save.p2m_size = nr_pfns; in x86_hvm_setup()
164 ctx->domid, 1, ctx->save.callbacks->data) ) in x86_hvm_setup()
198 rc = write_tsc_info(ctx); in x86_hvm_end_of_checkpoint()
203 rc = write_hvm_context(ctx); in x86_hvm_end_of_checkpoint()
208 rc = write_hvm_params(ctx); in x86_hvm_end_of_checkpoint()
217 xc_interface *xch = ctx->xch; in x86_hvm_cleanup()
[all …]
A Dxc_sr_common.h63 int (*setup)(struct xc_sr_context *ctx);
69 int (*start_of_stream)(struct xc_sr_context *ctx);
76 int (*start_of_checkpoint)(struct xc_sr_context *ctx);
83 int (*end_of_checkpoint)(struct xc_sr_context *ctx);
92 int (*check_vm_state)(struct xc_sr_context *ctx);
98 int (*cleanup)(struct xc_sr_context *ctx);
140 int (*setup)(struct xc_sr_context *ctx);
159 int (*stream_complete)(struct xc_sr_context *ctx);
165 int (*cleanup)(struct xc_sr_context *ctx);
372 static inline int write_record(struct xc_sr_context *ctx, in write_record() argument
[all …]
/xen-4.10.0-shim-comet/xen/common/
A Dgdbstub.c177 ctx->in_bytes < sizeof(ctx->in_buf); in attempt_receive_packet()
183 ctx->in_buf[ctx->in_bytes] = ch; in attempt_receive_packet()
187 if ( ctx->in_bytes == sizeof(ctx->in_buf) ) in attempt_receive_packet()
193 ctx->in_buf[ctx->in_bytes] = '\0'; in attempt_receive_packet()
223 ctx->out_offset = 1; in gdb_start_packet()
224 ctx->out_csum = 0; in gdb_start_packet()
231 ctx->out_buf[ctx->out_offset] = data; in gdb_write_to_packet_char()
232 ctx->out_offset++; in gdb_write_to_packet_char()
326 gdb_io_write(ctx->out_buf, ctx->out_offset, ctx); in gdb_send_packet()
348 gdb_write_to_packet_hex(ctx->signum, sizeof(ctx->signum), ctx); in gdb_cmd_signum()
[all …]
/xen-4.10.0-shim-comet/tools/libxl/
A Dlibxl.h1121 void libxl_key_value_list_copy(libxl_ctx *ctx,
1430 int libxl_domain_soft_reset(libxl_ctx *ctx,
1488 int libxl_get_max_cpus(libxl_ctx *ctx);
1491 int libxl_get_online_cpus(libxl_ctx *ctx);
1499 int libxl_get_max_nodes(libxl_ctx *ctx);
1533 int libxl_domain_need_memory(libxl_ctx *ctx,
2141 int libxl_get_scheduler(libxl_ctx *ctx);
2223 int libxl_tmem_freeable(libxl_ctx *ctx);
2255 int libxl_flask_getenforce(libxl_ctx *ctx);
2268 int libxl_psr_cmt_enabled(libxl_ctx *ctx);
[all …]
A Dlibxl.c28 ctx = malloc(sizeof(*ctx)); in libxl_ctx_alloc()
29 if (!ctx) { in libxl_ctx_alloc()
37 ctx->lg = lg; in libxl_ctx_alloc()
42 ctx->nogc_gc.owner = ctx; in libxl_ctx_alloc()
78 if (libxl__init_recursive_mutex(ctx, &ctx->lock) < 0) { in libxl_ctx_alloc()
81 ctx = 0; in libxl_ctx_alloc()
172 if (ctx->xch) xc_interface_close(ctx->xch); in libxl_ctx_free()
174 if (ctx->xsh) xs_daemon_close(ctx->xsh); in libxl_ctx_free()
175 if (ctx->xce) xenevtchn_close(ctx->xce); in libxl_ctx_free()
177 libxl__poller_put(ctx, ctx->poller_app); in libxl_ctx_free()
[all …]
A Dlibxl_utils.h29 char *libxl_domid_to_name(libxl_ctx *ctx, uint32_t domid);
35 int libxl_cpupoolid_is_valid(libxl_ctx *ctx, uint32_t poolid);
36 int libxl_get_stubdom_id(libxl_ctx *ctx, int guest_domid);
59 int libxl_pipe(libxl_ctx *ctx, int pipes[2]);
67 int libxl_mac_to_device_nic(libxl_ctx *ctx, uint32_t domid,
94 void libxl_bitmap_copy(libxl_ctx *ctx, libxl_bitmap *dptr,
102 int libxl_bitmap_or(libxl_ctx *ctx, libxl_bitmap *or_map,
105 int libxl_bitmap_and(libxl_ctx *ctx, libxl_bitmap *and_map,
159 int libxl_nodemap_to_cpumap(libxl_ctx *ctx,
163 int libxl_node_to_cpumap(libxl_ctx *ctx, int node,
[all …]
A Dlibxl_cpupool.c67 int libxl_cpupool_info(libxl_ctx *ctx, in libxl_cpupool_info() argument
70 GC_INIT(ctx); in libxl_cpupool_info()
78 GC_INIT(ctx); in libxl_list_cpupool()
117 ncpus = libxl_get_max_cpus(ctx); in libxl_get_freecpus()
135 GC_INIT(ctx); in libxl_cpupool_create()
194 GC_INIT(ctx); in libxl_cpupool_destroy()
246 xc_cpupool_infofree(ctx->xch, info); in libxl_cpupool_destroy()
254 GC_INIT(ctx); in libxl_cpupool_rename()
297 GC_INIT(ctx); in libxl_cpupool_cpuadd()
360 GC_INIT(ctx); in libxl_cpupool_cpuremove()
[all …]
A Dlibxlu_cfg.c45 ctx->cfg= cfg; in ctx_prep()
46 ctx->err= 0; in ctx_prep()
49 ctx->scanner= 0; in ctx_prep()
51 e= xlu__cfg_yylex_init_extra(ctx, &ctx->scanner); in ctx_prep()
61 if (ctx->scanner) xlu__cfg_yylex_destroy(ctx->scanner); in ctx_dispose()
73 if (ctx->err && ctx->likely_python) { in parse()
100 parse(&ctx); in xlu_cfg_readfile()
106 return ctx.err; in xlu_cfg_readfile()
125 parse(&ctx); in xlu_cfg_readdata()
131 return ctx.err; in xlu_cfg_readdata()
[all …]
A Dlibxl_psr.c134 GC_INIT(ctx); in libxl_psr_cmt_attach()
149 GC_INIT(ctx); in libxl_psr_cmt_detach()
174 int libxl_psr_cmt_enabled(libxl_ctx *ctx) in libxl_psr_cmt_enabled() argument
176 return xc_psr_cmt_enabled(ctx->xch); in libxl_psr_cmt_enabled()
181 GC_INIT(ctx); in libxl_psr_cmt_get_total_rmid()
198 GC_INIT(ctx); in libxl_psr_cmt_get_l3_cache_size()
222 GC_INIT(ctx); in libxl_psr_cmt_type_supported()
245 GC_INIT(ctx); in libxl_psr_cmt_get_sample()
317 GC_INIT(ctx); in libxl_psr_cat_set_cbm()
350 GC_INIT(ctx); in libxl_psr_cat_get_cbm()
[all …]
A Dlibxl_tmem.c23 GC_INIT(ctx); in libxl_tmem_list()
37 int libxl_tmem_freeze(libxl_ctx *ctx, uint32_t domid) in libxl_tmem_freeze() argument
40 GC_INIT(ctx); in libxl_tmem_freeze()
56 int libxl_tmem_thaw(libxl_ctx *ctx, uint32_t domid) in libxl_tmem_thaw() argument
59 GC_INIT(ctx); in libxl_tmem_thaw()
92 GC_INIT(ctx); in libxl_tmem_set()
94 r = xc_tmem_control(ctx->xch, -1 /* pool_id */, in libxl_tmem_set()
127 GC_INIT(ctx); in libxl_tmem_shared_auth()
129 r = xc_tmem_auth(ctx->xch, domid, uuid, auth); in libxl_tmem_shared_auth()
142 int libxl_tmem_freeable(libxl_ctx *ctx) in libxl_tmem_freeable() argument
[all …]
/xen-4.10.0-shim-comet/tools/blktap2/vhd/lib/
A Dlibvhd.c693 blk += ctx->spb + ctx->bm_secs; in vhd_end_of_data()
777 return vhd_read_footer(ctx, &ctx->footer); in vhd_get_footer()
789 return vhd_read_header(ctx, &ctx->header); in vhd_get_header()
802 return vhd_read_bat(ctx, &ctx->bat); in vhd_get_bat()
815 return vhd_read_batmap(ctx, &ctx->batmap); in vhd_get_batmap()
2300 ctx->bm_secs + (sector % ctx->spb); in vhd_offset()
2376 ctx->fd = open(ctx->file, oflags, 0644); in vhd_open()
2395 err = vhd_read_footer(ctx, &ctx->footer); in vhd_open()
2769 return vhd_write_bat(ctx, &ctx->bat); in vhd_create_bat()
3234 err = vhd_write_bat(ctx, &ctx->bat); in __vhd_io_allocate_block()
[all …]
/xen-4.10.0-shim-comet/xen/drivers/acpi/apei/
A Dapei-base.c60 if (!ctx) in apei_exec_ctx_init()
63 ctx->ins_table = ins_table; in apei_exec_ctx_init()
66 ctx->entries = entries; in apei_exec_ctx_init()
92 ctx->value = val; in apei_exec_read_register()
105 ctx->value = (ctx->value == entry->value); in apei_exec_read_register_value()
164 ctx->ip = 0; in __apei_exec_run()
178 if (ip == ctx->ip) { in __apei_exec_run()
187 rc = run(ctx, entry); in __apei_exec_run()
191 ctx->ip++; in __apei_exec_run()
194 if (ctx->ip < ip) in __apei_exec_run()
[all …]
A Derst.c137 ctx->var1 += ctx->var2; in erst_exec_add()
144 ctx->var1 -= ctx->var2; in erst_exec_subtract()
157 val += ctx->value; in erst_exec_add_value()
171 val -= ctx->value; in erst_exec_subtract_value()
181 ctx->var1); in erst_exec_stall()
193 ctx->var1; in erst_exec_stall_while_true()
199 if (val != ctx->value) in erst_exec_stall_while_true()
218 ctx->ip += 2; in erst_exec_skip_next_instruction_if_true()
228 ctx->ip = ctx->value; in erst_exec_goto()
262 src = ioremap(ctx->src_base + offset, ctx->var2); in erst_exec_move_data()
[all …]
A Dapei-internal.h11 typedef int (*apei_exec_ins_func_t)(struct apei_exec_context *ctx,
34 int apei_exec_ctx_init(struct apei_exec_context *ctx,
43 ctx->value = input; in apei_exec_ctx_set_input()
48 return ctx->value; in apei_exec_ctx_get_output()
55 return __apei_exec_run(ctx, action, 0); in apei_exec_run()
61 return __apei_exec_run(ctx, action, 1); in apei_exec_run_optional()
71 int apei_exec_read_register(struct apei_exec_context *ctx,
75 int apei_exec_write_register(struct apei_exec_context *ctx,
79 int apei_exec_noop(struct apei_exec_context *ctx,
81 int apei_exec_pre_map_gars(struct apei_exec_context *ctx);
[all …]
/xen-4.10.0-shim-comet/tools/blktap2/drivers/
A Dio-optimize.c53 free(ctx->opios); in opio_free()
54 ctx->opios = NULL; in opio_free()
80 if (!ctx->opios || !ctx->free_opios || in opio_init()
81 !ctx->iocb_queue || !ctx->event_queue) in opio_init()
85 ctx->free_opios[i] = &ctx->opios[i]; in opio_init()
90 opio_free(ctx); in opio_init()
99 return ctx->free_opios[--ctx->free_opio_cnt]; in alloc_opio()
106 ctx->free_opios[ctx->free_opio_cnt++] = op; in free_opio()
228 q = ctx->iocb_queue; in io_merge()
362 #define print_iocb(ctx, io) __print_iocb(ctx, io, null_prefix) argument
[all …]
/xen-4.10.0-shim-comet/tools/xenstore/
A Dtalloc.h45 #define talloc(ctx, type) (type *)talloc_named_const(ctx, sizeof(type), #type) argument
46 #define talloc_size(ctx, size) talloc_named_const(ctx, size, __location__) argument
48 #define talloc_new(ctx) talloc_named_const(ctx, 0, "talloc_new: " __location__) argument
50 #define talloc_zero(ctx, type) (type *)_talloc_zero(ctx, sizeof(type), #type) argument
51 #define talloc_zero_size(ctx, size) _talloc_zero(ctx, size, __location__) argument
55 #define talloc_array_size(ctx, size, count) _talloc_array(ctx, size, count, __location__) argument
80 #define talloc_zero_p(ctx, type) talloc_zero(ctx, type) argument
81 #define talloc_p(ctx, type) talloc(ctx, type) argument
82 #define talloc_array_p(ctx, type, count) talloc_array(ctx, type, count) argument
83 #define talloc_realloc_p(ctx, p, type, count) talloc_realloc(ctx, p, type, count) argument
[all …]
/xen-4.10.0-shim-comet/tools/tests/x86_emulator/
A Dblowfish.c324 y = ctx->S[0][a] + ctx->S[1][b]; in F()
325 y = y ^ ctx->S[2][c]; in F()
326 y = y + ctx->S[3][d]; in F()
342 Xl = Xl ^ ctx->P[i]; in Blowfish_Encrypt()
354 Xr = Xr ^ ctx->P[N]; in Blowfish_Encrypt()
355 Xl = Xl ^ ctx->P[N + 1]; in Blowfish_Encrypt()
372 Xl = Xl ^ ctx->P[i]; in Blowfish_Decrypt()
386 Xr = Xr ^ ctx->P[1]; in Blowfish_Decrypt()
387 Xl = Xl ^ ctx->P[0]; in Blowfish_Decrypt()
419 ctx->P[i] = datal; in Blowfish_Init()
[all …]
/xen-4.10.0-shim-comet/stubdom/vtpmmgr/
A Dtpmrsa.c47 tpmrsa_free(ctx); in tpmrsa_set_pubkey()
50 mpi_lset(&ctx->E, 65537); in tpmrsa_set_pubkey()
56 ctx->len = ( mpi_msb(&ctx->N) + 7) >> 3; in tpmrsa_set_pubkey()
71 if( mpi_cmp_mpi( &T, &ctx->N ) >= 0 ) in tpmrsa_public()
77 olen = ctx->len; in tpmrsa_public()
78 MPI_CHK( mpi_exp_mod( &T, &T, &ctx->E, &ctx->N, &ctx->RN ) ); in tpmrsa_public()
97 unsigned char *tmp = alloca(ctx->len); in tpmrsa_sigcheck()
100 rv = tpmrsa_public(ctx, input, tmp); in tpmrsa_sigcheck()
130 sha1_context ctx = mctx; in mgf_mask() local
134 sha1_finish(&ctx, mask); in mgf_mask()
[all …]

Completed in 82 milliseconds

123456