/xen/tools/ocaml/test/ |
A D | list_domains.ml | 5 let print_dominfo dominfo = 6 let id = dominfo.Xenlight.Dominfo.domid 7 and running = bool_as_char dominfo.Xenlight.Dominfo.running 'r' 8 and blocked = bool_as_char dominfo.Xenlight.Dominfo.blocked 'b' 9 and paused = bool_as_char dominfo.Xenlight.Dominfo.paused 'p' 10 and shutdown = bool_as_char dominfo.Xenlight.Dominfo.shutdown 's' 11 and dying = bool_as_char dominfo.Xenlight.Dominfo.dying 'd' 12 and memory = dominfo.Xenlight.Dominfo.current_memkb
|
/xen/tools/helpers/ |
A D | init-dom-json.c | 16 libxl_dominfo dominfo; in gen_stub_json_config() local 31 libxl_dominfo_init(&dominfo); in gen_stub_json_config() 32 if (libxl_domain_info(ctx, &dominfo, domid)) { in gen_stub_json_config() 38 dom_config.c_info.type = (dominfo.domain_type == LIBXL_DOMAIN_TYPE_HVM) in gen_stub_json_config() 57 libxl_dominfo_dispose(&dominfo); in gen_stub_json_config()
|
/xen/tools/xl/ |
A D | xl_vcpu.c | 129 libxl_dominfo *dominfo; in vcpulist() local 142 if (!(dominfo = libxl_list_domain(ctx, &nb_domain))) { in vcpulist() 148 print_domain_vcpuinfo(dominfo[i].domid, physinfo.max_cpu_id + 1); in vcpulist() 150 libxl_dominfo_list_free(dominfo, nb_domain); in vcpulist() 287 libxl_dominfo dominfo; in main_vcpupin() local 289 if (libxl_domain_info(ctx, &dominfo, domid)) { in main_vcpupin() 295 apply_global_affinity_masks(dominfo.domain_type, hard, 1); in main_vcpupin() 349 libxl_dominfo dominfo; in vcpuset() local 351 if (libxl_domain_info(ctx, &dominfo, domid)) in vcpuset() 354 online_vcpus = dominfo.vcpu_online; in vcpuset() [all …]
|
A D | xl_psr.c | 106 static void psr_cmt_print_domain_info(libxl_dominfo *dominfo, in psr_cmt_print_domain_info() argument 114 if (!libxl_psr_cmt_domain_attached(ctx, dominfo->domid)) in psr_cmt_print_domain_info() 117 domain_name = libxl_domid_to_name(ctx, dominfo->domid); in psr_cmt_print_domain_info() 118 printf("%-40s %5d", domain_name, dominfo->domid); in psr_cmt_print_domain_info() 124 if (!libxl_psr_cmt_get_sample(ctx, dominfo->domid, type, socketid, in psr_cmt_print_domain_info() 130 if (!psr_cmt_get_mem_bandwidth(dominfo->domid, type, socketid, in psr_cmt_print_domain_info() 201 libxl_dominfo dominfo; in psr_cmt_show() local 203 libxl_dominfo_init(&dominfo); in psr_cmt_show() 204 if (libxl_domain_info(ctx, &dominfo, domid)) { in psr_cmt_show() 209 psr_cmt_print_domain_info(&dominfo, type, &socketmap); in psr_cmt_show() [all …]
|
A D | xl_vmcontrol.c | 235 libxl_dominfo *dominfo; in main_shutdown_or_reboot() local 237 if (!(dominfo = libxl_list_domain(ctx, &nb_domain))) { in main_shutdown_or_reboot() 246 if (dominfo[i].domid == 0 || dominfo[i].never_stop) in main_shutdown_or_reboot() 248 fn(dominfo[i].domid, deathws ? &deathws[i] : NULL, i, in main_shutdown_or_reboot() 258 libxl_dominfo_list_free(dominfo, nb_domain); in main_shutdown_or_reboot()
|
/xen/tools/libxc/ |
A D | xc_pagetab.c | 32 xc_dominfo_t dominfo; in xc_translate_foreign_address() local 37 if (xc_domain_getinfo(xch, dom, 1, &dominfo) != 1 in xc_translate_foreign_address() 38 || dominfo.domid != dom) in xc_translate_foreign_address() 42 if (dominfo.hvm) { in xc_translate_foreign_address()
|
A D | xc_sr_save.c | 344 (ctx->dominfo.domid != ctx->domid) ) in suspend_domain() 351 if ( !ctx->dominfo.shutdown || in suspend_domain() 352 (ctx->dominfo.shutdown_reason != SHUTDOWN_suspend) ) in suspend_domain() 355 ctx->dominfo.shutdown, ctx->dominfo.shutdown_reason); in suspend_domain() 900 if ( !ctx->dominfo.shutdown || in save() 901 (ctx->dominfo.shutdown_reason != SHUTDOWN_suspend) ) in save() 1003 if ( xc_domain_getinfo(xch, dom, 1, &ctx.dominfo) != 1 ) in xc_domain_save() 1009 if ( ctx.dominfo.domid != dom ) in xc_domain_save() 1025 if ( ctx.dominfo.hvm ) in xc_domain_save() 1035 io_fd, dom, flags, ctx.dominfo.hvm); in xc_domain_save() [all …]
|
A D | xc_sr_restore.c | 929 if ( xc_domain_getinfo(xch, dom, 1, &ctx.dominfo) != 1 ) in xc_domain_restore() 935 if ( ctx.dominfo.domid != dom ) in xc_domain_restore() 942 io_fd, dom, ctx.dominfo.hvm, stream_type); in xc_domain_restore() 956 ctx.restore.ops = ctx.dominfo.hvm in xc_domain_restore()
|
A D | xc_sr_save_x86_pv.c | 20 xch, ctx->domid, PAGE_SIZE, PROT_READ, ctx->dominfo.shared_info_frame); in map_shinfo() 24 ctx->dominfo.shared_info_frame); in map_shinfo() 758 for ( i = 0; i <= ctx->dominfo.max_vcpu_id; ++i ) in write_all_vcpu_information() 946 if ( !ctx->dominfo.paused ) in normalise_pagetable() 968 if ( !ctx->dominfo.paused ) in normalise_pagetable()
|
A D | xc_sr_common.h | 224 xc_dominfo_t dominfo; member
|
A D | xc_sr_restore_x86_pv.c | 220 ctx->dominfo.shared_info_frame << PAGE_SHIFT, ctx->x86.pv.width); in process_start_info() 903 ctx->dominfo.shared_info_frame); in handle_shared_info() 907 ctx->dominfo.shared_info_frame); in handle_shared_info() 1063 ctx->x86.pv.restore.nr_vcpus = ctx->dominfo.max_vcpu_id + 1; in x86_pv_setup()
|
A D | Makefile | 75 ELF_SRCS-y += libelf-dominfo.c
|
/xen/tools/misc/ |
A D | xen-hvmcrash.c | 51 xc_dominfo_t dominfo; in main() local 69 ret = xc_domain_getinfo(xch, domid, 1, &dominfo); in main() 75 if (!dominfo.hvm) { in main()
|
/xen/tools/xenstat/libxenstat/src/ |
A D | xenstat_qmp.c | 421 xc_domaininfo_t dominfo[1024]; in read_attributes_qdisk() local 427 next_domid, 1024, dominfo); in read_attributes_qdisk() 432 if (dominfo[i].domain > 0) in read_attributes_qdisk() 433 read_attributes_qdisk_dom(node, dominfo[i].domain); in read_attributes_qdisk() 435 next_domid = dominfo[num_doms - 1].domain + 1; in read_attributes_qdisk()
|
/xen/tools/xenstore/ |
A D | xenstored_domain.c | 221 static bool get_domain_info(unsigned int domid, xc_dominfo_t *dominfo) in get_domain_info() argument 223 return xc_domain_getinfo(*xc_handle, domid, 1, dominfo) == 1 && in get_domain_info() 224 dominfo->domid == domid; in get_domain_info() 229 xc_dominfo_t dominfo; in domain_cleanup() local 237 dom_valid = get_domain_info(domain->domid, &dominfo); in domain_cleanup() 246 if ((dominfo.crashed || dominfo.shutdown) in domain_cleanup() 251 if (!dominfo.dying) in domain_cleanup() 809 xc_dominfo_t dominfo; in chk_domain_generation() local 818 if (!get_domain_info(domid, &dominfo)) in chk_domain_generation()
|
/xen/tools/libvchan/ |
A D | vchan-socket-proxy.c | 225 xc_dominfo_t dominfo; in connect_vchan() local 257 ret = xc_domain_getinfo(xc, domid, 1, &dominfo); in connect_vchan() 262 if (ret == 1 && (dominfo.domid != (uint32_t)domid || dominfo.dying)) in connect_vchan()
|
/xen/xen/common/libelf/ |
A D | Makefile | 3 libelf-objs := libelf-tools.o libelf-loader.o libelf-dominfo.o
|
/xen/tools/fuzz/libelf/ |
A D | Makefile | 7 ELF_SRCS-y += libelf-tools.c libelf-loader.c libelf-dominfo.c
|
/xen/tools/libxl/ |
A D | libxl_utils.c | 74 libxl_dominfo *dominfo; in libxl_name_to_domid() local 77 dominfo = libxl_list_domain(ctx, &nb_domains); in libxl_name_to_domid() 78 if (!dominfo) in libxl_name_to_domid() 82 domname = libxl_domid_to_name(ctx, dominfo[i].domid); in libxl_name_to_domid() 86 *domid = dominfo[i].domid; in libxl_name_to_domid() 93 libxl_dominfo_list_free(dominfo, nb_domains); in libxl_name_to_domid()
|
A D | libxl_types.idl | 331 libxl_dominfo = Struct("dominfo",[
|
/xen/tools/console/daemon/ |
A D | io.c | 965 xc_dominfo_t dominfo; in enum_domains() local 970 while (xc_domain_getinfo(xc, domid, 1, &dominfo) == 1) { in enum_domains() 971 dom = lookup_domain(dominfo.domid); in enum_domains() 972 if (dominfo.dying) { in enum_domains() 977 dom = create_domain(dominfo.domid); in enum_domains() 981 domid = dominfo.domid + 1; in enum_domains()
|
/xen/tools/xentrace/ |
A D | xenctx.c | 95 xc_dominfo_t dominfo; member 992 if (xenctx.dominfo.hvm) { in dump_ctx() 1046 for (vcpu = 0; vcpu <= xenctx.dominfo.max_vcpu_id; vcpu++) in dump_all_vcpus() 1272 ret = xc_domain_getinfo(xenctx.xc_handle, xenctx.domid, 1, &xenctx.dominfo); in main()
|
/xen/tools/xenmon/ |
A D | xenbaked.c | 784 xc_dominfo_t dominfo[NDOMAINS]; in indexof() local 806 ndomains = xc_domain_getinfo(xc_handle, 0, NDOMAINS, dominfo); in indexof() 817 if (dominfo[jdx].domid == domid) in indexof()
|
/xen/tools/ocaml/libs/xl/ |
A D | xenlight_stubs.c | 987 CAMLlocal1(dominfo); in stub_xl_dominfo_get() 998 dominfo = Val_dominfo(&c_dominfo); in stub_xl_dominfo_get() 1000 CAMLreturn(dominfo); in stub_xl_dominfo_get()
|