/xen-4.10.0-shim-comet/tools/libxc/ |
A D | xc_dom_core.c | 545 dom->pfn_alloc_end - dom->rambase_pfn > dom->total_pages || in xc_dom_chk_alloc_pages() 546 pages > dom->total_pages - dom->pfn_alloc_end + dom->rambase_pfn ) in xc_dom_chk_alloc_pages() 560 dom->allocate(dom); in xc_dom_chk_alloc_pages() 759 dom = malloc(sizeof(*dom)); in xc_dom_allocate() 763 memset(dom, 0, sizeof(*dom)); in xc_dom_allocate() 784 dom->alloc_malloc += sizeof(*dom); in xc_dom_allocate() 817 dom->kernel_blob = xc_dom_malloc_filemap(dom, filename, &dom->kernel_size, in xc_dom_kernel_file() 821 return xc_dom_try_gunzip(dom, &dom->kernel_blob, &dom->kernel_size); in xc_dom_kernel_file() 873 return xc_dom_try_gunzip(dom, &dom->kernel_blob, &dom->kernel_size); in xc_dom_kernel_mem() 951 dom->pfn_alloc_end = dom->rambase_pfn; in xc_dom_rambase_init() [all …]
|
A D | xc_dom_armzimageloader.c | 84 DOMPRINTF_CALLED(dom->xch); in xc_dom_parse_zimage32_kernel() 121 dom->kernel_seg.vstart, dom->kernel_seg.vend); in xc_dom_parse_zimage32_kernel() 163 zimage = dom->kernel_blob; in xc_dom_probe_zimage64_kernel() 180 DOMPRINTF_CALLED(dom->xch); in xc_dom_parse_zimage64_kernel() 182 zimage = dom->kernel_blob; in xc_dom_parse_zimage64_kernel() 210 dom->kernel_seg.vstart, dom->kernel_seg.vend); in xc_dom_parse_zimage64_kernel() 223 DOMPRINTF_CALLED(dom->xch); in xc_dom_load_zimage_kernel() 225 dst = xc_dom_seg_to_ptr(dom, &dom->kernel_seg); in xc_dom_load_zimage_kernel() 234 __func__, dom->kernel_seg.vstart, dom->kernel_seg.vend); in xc_dom_load_zimage_kernel() 236 __func__, dom->kernel_size, dom->kernel_blob, dst); in xc_dom_load_zimage_kernel() [all …]
|
A D | xc_dom_boot.c | 49 pfn = (dom->parms.virt_hypercall - dom->parms.virt_base) in setup_hypercall_page() 106 dom->xen_version >> 16, dom->xen_version & 0xff, in xc_dom_boot_xen_init() 117 rc = dom->arch_hooks->meminit(dom); in xc_dom_boot_mem_init() 150 ptr = xc_map_foreign_ranges(dom->xch, dom->guest_domid, in xc_dom_boot_domU_map() 174 if ( (rc = dom->arch_hooks->bootearly(dom)) != 0 ) in xc_dom_boot_image() 178 rc = xc_domain_getinfo(dom->xch, dom->guest_domid, 1, &info); in xc_dom_boot_image() 203 if ( (rc = dom->arch_hooks->setup_pgtables(dom)) != 0 ) in xc_dom_boot_image() 208 dom->arch_hooks->start_info(dom); in xc_dom_boot_image() 216 if ( (rc = dom->arch_hooks->bootlate(dom)) != 0 ) in xc_dom_boot_image() 220 if ( (rc = dom->arch_hooks->vcpu(dom)) != 0 ) in xc_dom_boot_image() [all …]
|
A D | xc_dom_x86.c | 494 dom->p2m_guest = xc_dom_seg_to_ptr(dom, &dom->p2m_seg); in alloc_p2m_list() 546 xc_clear_domain_page(dom->xch, dom->guest_domid, in alloc_magic_pages_pv() 696 xc_clear_domain_page(dom->xch, dom->guest_domid, dom->console_pfn); in alloc_magic_pages_hvm() 699 xc_clear_domain_page(dom->xch, dom->guest_domid, dom->xenstore_pfn); in alloc_magic_pages_hvm() 720 xc_dom_translated(dom) ? dom->shared_info_pfn : dom->shared_info_mfn; in start_info_x86_32() 766 xc_dom_translated(dom) ? dom->shared_info_pfn : dom->shared_info_mfn; in start_info_x86_64() 1072 rc = x86_compat(dom->xch, dom->guest_domid, dom->guest_type); in meminit_pv() 1121 dom->p2m_size = max(dom->p2m_size, in meminit_pv() 1132 dom->p2m_host = xc_dom_malloc(dom, sizeof(xen_pfn_t) * dom->p2m_size); in meminit_pv() 1577 xc_dom_unmap_one(dom, dom->pgtables_seg.pfn); in bootlate_pv() [all …]
|
A D | xc_dom_elfloader.c | 73 switch ( dom->parms.pae ) in xc_dom_guest_type() 101 xc_dom_panic(dom->xch, in check_elf_kernel() 107 if ( !elf_is_elfbinary(dom->kernel_blob, dom->kernel_size) ) in check_elf_kernel() 127 rc = elf_init(&elf, dom->kernel_blob, dom->kernel_size); in xc_dom_probe_elf_kernel() 159 dom->private_loader = elf; in xc_dom_parse_elf_kernel() 160 rc = elf_init(elf, dom->kernel_blob, dom->kernel_size); in xc_dom_parse_elf_kernel() 194 dom->kernel_seg.vstart = dom->parms.virt_kstart; in xc_dom_parse_elf_kernel() 195 dom->kernel_seg.vend = dom->parms.virt_kend; in xc_dom_parse_elf_kernel() 197 dom->guest_type = xc_dom_guest_type(dom, elf); in xc_dom_parse_elf_kernel() 200 dom->kernel_seg.vstart, dom->kernel_seg.vend); in xc_dom_parse_elf_kernel() [all …]
|
A D | xc_dom_arm.c | 82 dom->xch, dom->guest_domid, NR_MAGIC_PAGES, in alloc_magic_pages() 91 xc_clear_domain_page(dom->xch, dom->guest_domid, dom->console_pfn); in alloc_magic_pages() 92 xc_clear_domain_page(dom->xch, dom->guest_domid, dom->xenstore_pfn); in alloc_magic_pages() 94 xc_clear_domain_page(dom->xch, dom->guest_domid, dom->vuart_gfn); in alloc_magic_pages() 96 xc_hvm_param_set(dom->xch, dom->guest_domid, HVM_PARAM_CONSOLE_PFN, in alloc_magic_pages() 98 xc_hvm_param_set(dom->xch, dom->guest_domid, HVM_PARAM_STORE_PFN, in alloc_magic_pages() 105 xc_hvm_param_set(dom->xch, dom->guest_domid, HVM_PARAM_STORE_EVTCHN, in alloc_magic_pages() 164 rc = xc_vcpu_setcontext(dom->xch, dom->guest_domid, 0, &any_ctx); in vcpu_arm32() 206 rc = xc_vcpu_setcontext(dom->xch, dom->guest_domid, 0, &any_ctx); in vcpu_arm64() 424 rc = set_mode(dom->xch, dom->guest_domid, dom->guest_type); in meminit() [all …]
|
A D | xc_dom_hvmloader.c | 37 if ( dom->kernel_blob == NULL ) in check_elf_kernel() 45 if ( !elf_is_elfbinary(dom->kernel_blob, dom->kernel_size) ) in check_elf_kernel() 68 rc = elf_init(&elf, dom->kernel_blob, dom->kernel_size); in xc_dom_probe_hvm_kernel() 100 dom->private_loader = elf; in xc_dom_parse_hvm_kernel() 101 rc = elf_init(elf, dom->kernel_blob, dom->kernel_size); in xc_dom_parse_hvm_kernel() 153 assert(dom->mmio_start > 0 && dom->mmio_start < UINT32_MAX); in module_init_one() 172 rc = module_init_one(dom, &dom->system_firmware_module, in modules_init() 176 rc = module_init_one(dom, &dom->acpi_modules[0], "ACPI module"); in modules_init() 178 rc = module_init_one(dom, &dom->smbios_module, "SMBIOS module"); in modules_init() 203 dom->xch, dom->guest_domid, pages << PAGE_SHIFT, in xc_dom_load_hvm_kernel() [all …]
|
A D | xc_dom_bzimageloader.c | 60 if ( dom->kernel_size == 0) in xc_try_bzip2_decode() 77 outsize = dom->kernel_size; in xc_try_bzip2_decode() 213 if ( dom->kernel_size == 0) in _xc_try_lzma_decode() 669 hdr = dom->kernel_blob; in xc_dom_probe_bzimage_kernel() 704 dom->kernel_blob = dom->kernel_blob + payload_offset; in xc_dom_probe_bzimage_kernel() 709 ret = xc_dom_try_gunzip(dom, &dom->kernel_blob, &dom->kernel_size); in xc_dom_probe_bzimage_kernel() 719 ret = xc_try_bzip2_decode(dom, &dom->kernel_blob, &dom->kernel_size); in xc_dom_probe_bzimage_kernel() 730 ret = xc_try_xz_decode(dom, &dom->kernel_blob, &dom->kernel_size); in xc_dom_probe_bzimage_kernel() 741 ret = xc_try_lzma_decode(dom, &dom->kernel_blob, &dom->kernel_size); in xc_dom_probe_bzimage_kernel() 752 ret = xc_try_lzo1x_decode(dom, &dom->kernel_blob, &dom->kernel_size); in xc_dom_probe_bzimage_kernel() [all …]
|
A D | xc_dom_compat_linux.c | 49 struct xc_dom_image *dom; in xc_linux_build() local 54 if (dom == NULL) in xc_linux_build() 62 dom->flags |= flags; in xc_linux_build() 63 dom->console_evtchn = console_evtchn; in xc_linux_build() 64 dom->xenstore_evtchn = store_evtchn; in xc_linux_build() 68 if ( (rc = xc_dom_parse_image(dom)) != 0 ) in xc_linux_build() 76 if ( (rc = xc_dom_boot_image(dom)) != 0 ) in xc_linux_build() 78 if ( (rc = xc_dom_gnttab_init(dom)) != 0) in xc_linux_build() 81 *console_mfn = xc_dom_p2m(dom, dom->console_pfn); in xc_linux_build() 82 *store_mfn = xc_dom_p2m(dom, dom->xenstore_pfn); in xc_linux_build() [all …]
|
A D | xc_dom_binloader.c | 127 probe_ptr = dom->kernel_blob; in find_table() 131 probe_end = dom->kernel_blob + dom->kernel_size - sizeof(*table); in find_table() 148 return find_table(dom) ? 0 : -EINVAL; in xc_dom_probe_bin_kernel() 154 char *image = dom->kernel_blob; in xc_dom_parse_bin_kernel() 155 size_t image_size = dom->kernel_size; in xc_dom_parse_bin_kernel() 161 image_info = find_table(dom); in xc_dom_parse_bin_kernel() 218 dom->parms.virt_base = start_addr; in xc_dom_parse_bin_kernel() 251 char *image = dom->kernel_blob; in xc_dom_load_bin_kernel() 253 size_t image_size = dom->kernel_size; in xc_dom_load_bin_kernel() 260 image_info = find_table(dom); in xc_dom_load_bin_kernel() [all …]
|
A D | xc_foreign_memory.c | 23 void *xc_map_foreign_pages(xc_interface *xch, uint32_t dom, int prot, in xc_map_foreign_pages() argument 31 return xenforeignmemory_map(xch->fmem, dom, prot, num, arr, NULL); in xc_map_foreign_pages() 35 uint32_t dom, int size, int prot, in xc_map_foreign_range() argument 51 ret = xc_map_foreign_pages(xch, dom, prot, arr, num); in xc_map_foreign_range() 57 uint32_t dom, size_t size, in xc_map_foreign_ranges() argument 79 ret = xc_map_foreign_pages(xch, dom, prot, arr, num); in xc_map_foreign_ranges() 84 void *xc_map_foreign_bulk(xc_interface *xch, uint32_t dom, int prot, in xc_map_foreign_bulk() argument 87 return xenforeignmemory_map(xch->fmem, dom, prot, num, arr, err); in xc_map_foreign_bulk()
|
/xen-4.10.0-shim-comet/stubdom/grub/ |
A D | kexec.c | 194 sha1(dom->kernel_blob, dom->kernel_size, cmd.hash); in tpm_hash2pcr() 205 sha1(dom->modules[0].blob, dom->modules[0].size, cmd.hash); in tpm_hash2pcr() 282 dom->p2m_size = dom->total_pages; in kexec() 285 dom->p2m_host = malloc(sizeof(*dom->p2m_host) * dom->p2m_size); in kexec() 332 if ( (rc = dom->arch_hooks->setup_pgtables(dom))) { in kexec() 341 dom->arch_hooks->start_info(dom); in kexec() 347 seg = xc_dom_seg_to_ptr(dom, &dom->pgtables_seg); in kexec() 349 seg = xc_dom_seg_to_ptr(dom, &dom->p2m_seg); in kexec() 350 munmap(seg, dom->p2m_seg.vend - dom->p2m_seg.vstart); in kexec() 364 xc_dom_p2m(dom, dom->pgtables_seg.pfn), in kexec() [all …]
|
/xen-4.10.0-shim-comet/tools/libxc/include/ |
A D | xc_dom.h | 198 int (*allocate) (struct xc_dom_image * dom); 257 int (*vcpu) (struct xc_dom_image * dom); 259 int (*bootlate) (struct xc_dom_image * dom); 262 int (*meminit) (struct xc_dom_image * dom); 275 #define XC_DOM_PAGE_SHIFT(dom) ((dom)->arch_hooks->page_shift) argument 276 #define XC_DOM_PAGE_SIZE(dom) (1LL << (dom)->arch_hooks->page_shift) argument 283 void xc_dom_release(struct xc_dom_image *dom); 333 int xc_dom_boot_image(struct xc_dom_image *dom); 432 if ( xc_dom_translated(dom) ) in xc_dom_p2m() 434 if (pfn < dom->rambase_pfn || pfn >= dom->rambase_pfn + dom->total_pages) in xc_dom_p2m() [all …]
|
/xen-4.10.0-shim-comet/tools/xenmon/ |
A D | xenmon.py | 258 if dom == IDLE_DOMAIN: 317 domid = dom[9] 373 if h1[dom][0][1] > 0 or domain_id[dom] == IDLE_DOMAIN: 577 outfiles[dom] = Delayed("%s-dom%d.log" % (options.prefix, dom), 'w') 605 domid = dom[9] 633 if h1[dom][0][1] > 0 or dom == IDLE_DOMAIN: 636 h1[dom][0][0], h1[dom][0][1], h1[dom][0][2], 638 h1[dom][2][0], h1[dom][2][1], h1[dom][2][2], 639 h1[dom][3][0], h1[dom][3][1], h1[dom][3][2], 641 h1[dom][5][0], h1[dom][5][1])) [all …]
|
/xen-4.10.0-shim-comet/tools/xl/ |
A D | xl_tmem.c | 26 const char *dom = NULL; in main_tmem_list() local 41 dom = argv[optind]; in main_tmem_list() 42 if (!dom && all == 0) { in main_tmem_list() 65 const char *dom = NULL; in main_tmem_freeze() local 75 dom = argv[optind]; in main_tmem_freeze() 76 if (!dom && all == 0) { in main_tmem_freeze() 96 const char *dom = NULL; in main_tmem_thaw() local 106 dom = argv[optind]; in main_tmem_thaw() 107 if (!dom && all == 0) { in main_tmem_thaw() 152 dom = argv[optind]; in main_tmem_set() [all …]
|
/xen-4.10.0-shim-comet/tools/ocaml/xenstored/ |
A D | domain.ml | 41 let get_path dom = "/local/domain/" ^ (sprintf "%u" dom.id) 56 let is_paused_for_conflict dom = dom.conflict_credit <= 0.0 67 let notify dom = match dom.port with 73 let bind_interdomain dom = 74 dom.port <- Some (Event.bind_interdomain dom.eventchn dom.id dom.remote_port); 75 …debug "bound domain %d remote port %d to local port %s" dom.id dom.remote_port (string_of_port dom… 78 let close dom = 79 debug "domain %d unbound port %s" dom.id (string_of_port dom.port); 80 begin match dom.port with 102 logfn dom.id dom.caused_conflicts; [all …]
|
A D | domains.ml | 76 let push dom queue = 110 Domain.close dom; 127 Domain.bind_interdomain dom; 128 dom 147 Domain.bind_interdomain dom; 148 Domain.notify dom; 149 dom 152 dom.Domain.caused_conflicts <- Int64.add 1L dom.Domain.caused_conflicts; 155 debug "decr_conflict_credit dom%d %F -> %F" (Domain.get_id dom) before after; 206 let inc dom = [all …]
|
/xen-4.10.0-shim-comet/tools/libxl/ |
A D | libxl_dom.c | 772 if (!dom) { in libxl__build_pv() 811 dom->flags = flags; in libxl__build_pv() 833 dom->vmemranges = xc_dom_malloc(dom, sizeof(*dom->vmemranges) * in libxl__build_pv() 844 dom->vnode_to_pnode = xc_dom_malloc(dom, sizeof(*dom->vnode_to_pnode) * in libxl__build_pv() 859 state->console_mfn = xc_dom_p2m(dom, dom->console_pfn); in libxl__build_pv() 860 state->store_mfn = xc_dom_p2m(dom, dom->xenstore_pfn); in libxl__build_pv() 865 xc_dom_release(dom); in libxl__build_pv() 1194 if (!dom) { in libxl__build_hvm() 1279 dom->vmemranges = libxl__malloc(gc, sizeof(*dom->vmemranges) * in libxl__build_hvm() 1290 dom->vnode_to_pnode = libxl__malloc(gc, sizeof(*dom->vnode_to_pnode) * in libxl__build_hvm() [all …]
|
A D | libxl_arm_acpi.c | 164 dom->acpi_modules[0].data = libxl__zalloc(gc, dom->acpi_modules[0].length); in libxl__allocate_acpi_tables() 360 void *dsdt = dom->acpi_modules[0].data + offset; in make_acpi_dsdt() 366 struct xc_dom_image *dom) in libxl__prepare_acpi() argument 381 dom->acpi_modules[0].data = NULL; in libxl__prepare_acpi() 382 dom->acpi_modules[0].length = 0; in libxl__prepare_acpi() 389 make_acpi_rsdp(gc, dom, acpitables); in libxl__prepare_acpi() 390 make_acpi_xsdt(gc, dom, acpitables); in libxl__prepare_acpi() 391 make_acpi_gtdt(gc, dom, acpitables); in libxl__prepare_acpi() 392 rc = make_acpi_madt(gc, dom, info, acpitables); in libxl__prepare_acpi() 396 make_acpi_fadt(gc, dom, acpitables); in libxl__prepare_acpi() [all …]
|
A D | libxl_x86_acpi.c | 93 struct xc_dom_image *dom, in init_acpi_config() argument 97 xc_interface *xch = dom->xch; in init_acpi_config() 98 uint32_t domid = dom->guest_domid; in init_acpi_config() 117 if (dom->nr_vnodes) { in init_acpi_config() 166 struct xc_dom_image *dom) in libxl__dom_load_acpi() argument 177 libxl_ctxt.page_size = XC_DOM_PAGE_SIZE(dom); in libxl__dom_load_acpi() 178 libxl_ctxt.page_shift = XC_DOM_PAGE_SHIFT(dom); in libxl__dom_load_acpi() 185 rc = init_acpi_config(gc, dom, b_info, &config); in libxl__dom_load_acpi() 222 dom->acpi_modules[0].length = 64; in libxl__dom_load_acpi() 226 dom->acpi_modules[1].length = 4096; in libxl__dom_load_acpi() [all …]
|
/xen-4.10.0-shim-comet/tools/xenstat/libxenstat/src/ |
A D | xenstat_solaris.c | 222 dom->num_networks = 0; in collect_dom_networks() 223 free(dom->networks); in collect_dom_networks() 224 dom->networks = NULL; in collect_dom_networks() 230 dom->num_networks = nr; in collect_dom_networks() 254 if (!(ret = update_nic(priv, dom, &dom->networks[i], tmp))) { in collect_dom_networks() 329 dom->num_vbds = 0; in collect_dom_vbds() 330 free(dom->vbds); in collect_dom_vbds() 331 dom->vbds = NULL; in collect_dom_vbds() 337 dom->num_vbds = nr; in collect_dom_vbds() 362 dom->vbds[i].dev = -1; in collect_dom_vbds() [all …]
|
/xen-4.10.0-shim-comet/tools/console/daemon/ |
A D | io.c | 812 con->d = dom; in console_init() 844 dom = calloc(1, sizeof *dom); in create_domain() 860 dom_head = dom; in create_domain() 864 return dom; in create_domain() 867 free(dom); in create_domain() 875 for (dom = dom_head; dom; dom = dom->next) in lookup_domain() 877 return dom; in lookup_domain() 890 free(dom); in remove_domain() 948 if (dom) in enum_domains() 954 if (dom) in enum_domains() [all …]
|
/xen-4.10.0-shim-comet/tools/python/xen/lowlevel/xc/ |
A D | xc.c | 100 uint32_t dom; in pyxc_domain_dumpcore() local 215 uint32_t dom; in pyxc_domain_resume() local 232 uint32_t dom; in pyxc_vcpu_setaffinity() local 282 uint32_t dom; in pyxc_domain_sethandle() local 450 uint32_t dom; in pyxc_hvm_param_get() local 470 uint32_t dom; in pyxc_hvm_param_set() local 517 uint32_t dom; in pyxc_test_assign_device() local 550 uint32_t dom; in pyxc_assign_device() local 583 uint32_t dom; in pyxc_deassign_device() local 774 uint32_t dom; in pyxc_dom_suppress_spurious_page_faults() local [all …]
|
/xen-4.10.0-shim-comet/tools/libs/foreignmemory/ |
A D | linux.c | 68 static int map_foreign_batch_single(int fd, uint32_t dom, in map_foreign_batch_single() argument 75 ioctlx.dom = dom; in map_foreign_batch_single() 99 static int retry_paged(int fd, uint32_t dom, void *addr, in retry_paged() argument 119 ioctlx.dom = dom; in retry_paged() 145 uint32_t dom, void *addr, in osdep_xenforeignmemory_map() argument 163 ioctlx.dom = dom; in osdep_xenforeignmemory_map() 175 rc = retry_paged(fd, dom, addr, arr, err, num); in osdep_xenforeignmemory_map() 206 ioctlx.dom = dom; in osdep_xenforeignmemory_map() 230 rc = map_foreign_batch_single(fd, dom, pfn + i, in osdep_xenforeignmemory_map()
|
/xen-4.10.0-shim-comet/tools/helpers/ |
A D | init-xenstore-domain.c | 66 struct xc_dom_image *dom = NULL; in build() local 162 rv = xc_dom_parse_image(dom); in build() 168 rv = xc_dom_mem_init(dom, memory); in build() 174 rv = xc_dom_boot_mem_init(dom); in build() 180 rv = xc_dom_build_image(dom); in build() 186 rv = xc_dom_boot_image(dom); in build() 209 if ( dom ) in build() 210 xc_dom_release(dom); in build() 224 uint32_t dom; in check_domain() local 227 dom = 1; in check_domain() [all …]
|