Home
last modified time | relevance | path

Searched refs:xc_handle (Results 1 – 23 of 23) sorted by relevance

/xen/tools/tests/mce-test/tools/
A Dxen-mceinj.c146 if ( xc_handle ) in err()
164 return xc_mca_op(xc_handle, &mc); in flush_msr_inj()
176 if (!xc_mca_op(xc_handle, &mc)) in mca_cpuinfo()
189 nr_cpus = mca_cpuinfo(xc_handle); in inject_cmci()
202 return xc_mca_op(xc_handle, &mc); in inject_cmci()
215 return xc_mca_op(xc_handle, &mc); in inject_mce()
284 flush_msr_inj(xc_handle); in add_msr_intpose()
391 ret = flush_msr_inj(xc_handle); in inject()
467 xc_interface *xc_handle; in main() local
478 if ( !xc_handle ) { in main()
[all …]
/xen/tools/python/xen/lowlevel/xc/
A Dxc.c51 xc_interface *xc_handle; member
1726 xc_interface *xc_handle; in pyflask_context_to_sid() local
1738 if (!xc_handle) { in pyflask_context_to_sid()
1757 xc_interface *xc_handle; in pyflask_sid_to_context() local
1770 if (!xc_handle) { in pyflask_sid_to_context()
1799 if (!xc_handle) { in pyflask_load()
1821 if (!xc_handle) { in pyflask_getenforce()
1851 if (!xc_handle) { in pyflask_setenforce()
1887 if (!xc_handle) { in pyflask_access()
2458 self->xc_handle = NULL; in PyXc_new()
[all …]
/xen/tools/misc/
A Dxenpm.c36 static xc_interface *xc_handle; variable
245 show_max_cstate(xc_handle); in cxstat_func()
256 show_cxstat_by_cpuid(xc_handle, cpuid); in cxstat_func()
364 show_pxstat_by_cpuid(xc_handle, cpuid); in pxstat_func()
398 show_cpufreq_by_cpuid(xc_handle, cpuid); in cpufreq_func()
611 xc_interface_close(xc_handle); in signal_int_handler()
1257 xc_handle = xc_interface_open(0,0,0); in main()
1258 if ( !xc_handle ) in main()
1264 ret = xc_physinfo(xc_handle, &physinfo); in main()
1270 xc_interface_close(xc_handle); in main()
[all …]
A Dxenlockprof.c23 xc_interface *xc_handle; in main() local
38 if ( (xc_handle = xc_interface_open(0,0,0)) == 0 ) in main()
47 if ( xc_lockprof_reset(xc_handle) != 0 ) in main()
57 if ( xc_lockprof_query_number(xc_handle, &n) != 0 ) in main()
65 data = xc_hypercall_buffer_alloc(xc_handle, data, sizeof(*data) * n); in main()
74 if ( xc_lockprof_query(xc_handle, &i, &time, HYPERCALL_BUFFER(data)) != 0 ) in main()
117 xc_hypercall_buffer_free(xc_handle, data); in main()
A Dxenperf.c74 xc_interface *xc_handle; in main() local
115 if ( (xc_handle = xc_interface_open(0,0,0)) == 0 ) in main()
124 if ( xc_perfc_reset(xc_handle) != 0 ) in main()
134 if ( xc_perfc_query_number(xc_handle, &num_desc, &num_val) != 0 ) in main()
141 pcd = xc_hypercall_buffer_alloc(xc_handle, pcd, sizeof(*pcd) * num_desc); in main()
142 pcv = xc_hypercall_buffer_alloc(xc_handle, pcv, sizeof(*pcv) * num_val); in main()
151 if ( xc_perfc_query(xc_handle, HYPERCALL_BUFFER(pcd), HYPERCALL_BUFFER(pcv)) != 0 ) in main()
202 xc_hypercall_buffer_free(xc_handle, pcd); in main()
203 xc_hypercall_buffer_free(xc_handle, pcv); in main()
/xen/tools/xentrace/
A Dsetsize.c9 xc_interface *xc_handle = xc_interface_open(0,0,0); in main() local
11 if ( xc_tbuf_get_size(xc_handle, &size) != 0 ) in main()
26 if ( xc_tbuf_set_size(xc_handle, size) != 0 ) in main()
33 if (xc_tbuf_get_size(xc_handle, &size) != 0) in main()
39 xc_interface_close(xc_handle); in main()
A Dxentrace.c78 static xc_interface *xc_handle; variable
432 if ( !xc_handle ) in disable_tbufs()
438 if ( xc_tbuf_disable(xc_handle) != 0 ) in disable_tbufs()
443 xc_interface_close(xc_handle); in disable_tbufs()
556 int ret = xc_tbuf_set_cpu_mask(xc_handle, map); in set_cpu_mask()
577 ret = xc_tbuf_set_evt_mask(xc_handle, mask); in set_evt_mask()
595 ret = xc_physinfo(xc_handle, &physinfo); in get_num_cpus()
964 nmaskbits = xc_get_max_cpus(xc_handle); in parse_cpumask_range()
1038 map = xc_cpumap_alloc(xc_handle); in parse_cpu_mask()
1183 xc_handle = xc_interface_open(0,0,0); in main()
[all …]
A Dxenctx.c76 xc_interface *xc_handle; member
985 if (xc_vcpu_getcontext(xenctx.xc_handle, xenctx.domid, vcpu, &ctx) < 0) { in dump_ctx()
996 xenctx.xc_handle, xenctx.domid, HVM_SAVE_CODE(CPU), in dump_ctx()
1005 if (xc_version(xenctx.xc_handle, XENVER_capabilities, &xen_caps) != 0) { in dump_ctx()
1012 if ( !xc_domain_get_guest_width(xenctx.xc_handle, xenctx.domid, &gw) ) in dump_ctx()
1048 if ( xc_vcpu_getinfo(xenctx.xc_handle, xenctx.domid, vcpu, &vinfo) ) in dump_all_vcpus()
1267 if (xenctx.xc_handle == NULL) { in main()
1272 ret = xc_domain_getinfo(xenctx.xc_handle, xenctx.domid, 1, &xenctx.dominfo); in main()
1278 ret = xc_domain_pause(xenctx.xc_handle, xenctx.domid); in main()
1305 ret = xc_domain_unpause(xenctx.xc_handle, xenctx.domid); in main()
[all …]
/xen/tools/xenmon/
A Dsetmask.c45 xc_interface *xc_handle = xc_interface_open(0,0,0); in main() local
49 ret = xc_sysctl(xc_handle, &sysctl); in main()
65 ret = xc_sysctl(xc_handle, &sysctl); in main()
76 ret = xc_sysctl(xc_handle, &sysctl); in main()
86 xc_interface_close(xc_handle); in main()
A Dxenbaked.c337 if ( !xc_handle ) in get_tbufs()
350 xc_interface_close(xc_handle); in get_tbufs()
356 xc_tbuf_disable(xc_handle); in disable_tracing()
357 xc_interface_close(xc_handle); in disable_tracing()
371 xc_interface *xc_handle; in map_tbufs() local
375 xc_handle = xc_interface_open(0,0,0); in map_tbufs()
376 if ( !xc_handle ) in map_tbufs()
429 xc_interface_close(xc_handle); in map_tbufs()
451 xc_interface_close(xc_handle); in get_num_cpus()
785 xc_interface *xc_handle; in indexof() local
[all …]
/xen/tools/xenstat/libxenstat/src/
A Dxenstat.c103 handle->xc_handle = xc_interface_open(0,0,0); in xenstat_init()
104 if (!handle->xc_handle) { in xenstat_init()
113 xc_interface_close(handle->xc_handle); in xenstat_init()
127 xc_interface_close(handle->xc_handle); in xenstat_uninit()
152 if (xc_physinfo(handle->xc_handle, &physinfo) < 0) { in xenstat_get_node()
178 new_domains = xc_domain_getinfolist(handle->xc_handle, in xenstat_get_node()
470 if (xc_vcpu_getinfo(node->handle->xc_handle, in xenstat_collect_vcpus()
599 vnum = xc_version(node->handle->xc_handle, in xenstat_collect_xen_version()
605 if (xc_version(node->handle->xc_handle, XENVER_extraversion, in xenstat_collect_xen_version()
A Dxenstat_priv.h36 xc_interface *xc_handle; member
A Dxenstat_qmp.c426 num_doms = xc_domain_getinfolist(node->handle->xc_handle, in read_attributes_qdisk()
/xen/tools/xenpaging/
A Dxenpaging.c74 xc_interface *xch = paging->xc_handle; in xenpaging_wait_for_event_or_timeout()
168 xc_interface *xch = paging->xc_handle; in xenpaging_get_tot_pages()
299 paging->xc_handle = xch = xc_interface_open(dbg, NULL, 0); in xenpaging_init()
519 xc_interface *xch = paging->xc_handle; in xenpaging_teardown()
524 paging->xc_handle = NULL; in xenpaging_teardown()
597 xc_interface *xch = paging->xc_handle; in xenpaging_evict_page()
696 xc_interface *xch = paging->xc_handle; in xenpaging_populate_page()
738 xc_interface *xch = paging->xc_handle; in resume_pages()
763 xc_interface *xch = paging->xc_handle; in evict_victim()
816 xc_interface *xch = paging->xc_handle; in evict_pages()
[all …]
A Dxenpaging.h46 xc_interface *xc_handle; member
A Dpagein.c67 page_in_args.xch = paging->xc_handle; in create_page_in_thread()
A Dpolicy_default.c81 xc_interface *xch = paging->xc_handle; in policy_choose_victim()
/xen/tools/libxc/include/
A Dxenctrl.h2344 int xc_flask_load(xc_interface *xc_handle, char *buf, uint32_t size);
2347 int xc_flask_getenforce(xc_interface *xc_handle);
2348 int xc_flask_setenforce(xc_interface *xc_handle, int mode);
2358 int xc_flask_del_pirq(xc_interface *xc_handle, unsigned int pirq);
2361 int xc_flask_del_device(xc_interface *xc_handle, unsigned long device);
2362 int xc_flask_access(xc_interface *xc_handle, const char *scon, const char *tcon,
2367 int xc_flask_avc_cachestats(xc_interface *xc_handle, char *buf, int size);
2368 int xc_flask_policyvers(xc_interface *xc_handle);
2369 int xc_flask_avc_hashstats(xc_interface *xc_handle, char *buf, int size);
2370 int xc_flask_getavc_threshold(xc_interface *xc_handle);
[all …]
/xen/tools/debugger/kdd/
A Dkdd-xen.c56 xc_interface *xc_handle; member
87 xc_domain_pause(g->xc_handle, g->domid); in kdd_halt()
90 sz = xc_domain_hvm_getcontext(g->xc_handle, g->domid, 0, 0); in kdd_halt()
106 sz = xc_domain_hvm_getcontext(g->xc_handle, g->domid, buf, sz); in kdd_halt()
125 if (g->hvm_buf && xc_domain_hvm_setcontext(g->xc_handle, g->domid, in hvm_writeback()
136 xc_domain_unpause(g->xc_handle, g->domid); in kdd_run()
508 map = xc_map_foreign_range(g->xc_handle, in kdd_access_physical_page()
588 g->xc_handle = xch; in kdd_guest_init()
621 xc_interface_close(g->xc_handle); in kdd_guest_teardown()
/xen/stubdom/grub/
A Dkexec.c56 int pin_table(xc_interface *xc_handle, unsigned int type, unsigned long mfn,
218 xc_interface *xc_handle; in kexec() local
227 xc_handle = xc_interface_open(0,0,0); in kexec()
229 dom = xc_dom_allocate(xc_handle, cmdline, features); in kexec()
247 if ( (rc = xc_dom_boot_xen_init(dom, xc_handle, domid)) != 0 ) { in kexec()
431 xc_interface_close(xc_handle ); in kexec()
/xen/tools/console/client/
A Dmain.c413 xc_interface *xc_handle = xc_interface_open(0,0,0); in main() local
414 if (xc_handle == NULL) in main()
416 if ( (xc_domain_getinfo(xc_handle, domid, 1, &xcinfo) != 1) || in main()
418 xc_interface_close(xc_handle); in main()
426 xc_interface_close(xc_handle); in main()
/xen/tools/tests/xen-access/
A Dxen-access.c75 xc_interface *xc_handle; member
144 rc = xc_monitor_disable(xenaccess->xc_handle, in xenaccess_teardown()
177 rc = xc_interface_close(xenaccess->xc_handle); in xenaccess_teardown()
183 xenaccess->xc_handle = NULL; in xenaccess_teardown()
208 xenaccess->xc_handle = xch; in xenaccess_init()
215 xc_monitor_enable(xenaccess->xc_handle, in xenaccess_init()
263 rc = xc_domain_maximum_gpfn(xenaccess->xc_handle, in xenaccess_init()
/xen/tools/xenstore/
A Dxenstored_domain.c38 static xc_interface **xc_handle; variable
223 return xc_domain_getinfo(*xc_handle, domid, 1, dominfo) == 1 && in get_domain_info()
737 xc_handle = talloc(talloc_autofree_context(), xc_interface*); in domain_init()
738 if (!xc_handle) in domain_init()
741 *xc_handle = xc_interface_open(0,0,0); in domain_init()
742 if (!*xc_handle) in domain_init()
745 talloc_set_destructor(xc_handle, close_xc_handle); in domain_init()
811 if (!xc_handle && domid == 0) in chk_domain_generation()

Completed in 241 milliseconds