/xen-4.10.0-shim-comet/tools/libs/call/ |
A D | buffer.c | 60 if ( nr_pages > 1 ) in cache_alloc() 88 if ( nr_pages == 1 && in cache_free() 130 void *p = cache_alloc(xcall, nr_pages); in xencall_alloc_buffer_pages() 133 p = osdep_alloc_pages(xcall, nr_pages); in xencall_alloc_buffer_pages() 138 memset(p, 0, nr_pages * PAGE_SIZE); in xencall_alloc_buffer_pages() 148 if ( !cache_free(xcall, p, nr_pages) ) in xencall_free_buffer_pages() 149 osdep_free_pages(xcall, p, nr_pages); in xencall_free_buffer_pages() 153 int nr_pages; member 159 int nr_pages = actual_size >> PAGE_SHIFT; in xencall_alloc_buffer() local 162 hdr = xencall_alloc_buffer_pages(xcall, nr_pages); in xencall_alloc_buffer() [all …]
|
A D | private.h | 53 void *osdep_alloc_pages(xencall_handle *xcall, size_t nr_pages); 54 void osdep_free_pages(xencall_handle *xcall, void *p, size_t nr_pages);
|
/xen-4.10.0-shim-comet/xen/arch/x86/ |
A D | dom0_build.c | 308 nr_pages = dom0_nrpages; in dom0_compute_nr_pages() 317 if ( !nr_pages ) in dom0_compute_nr_pages() 318 nr_pages = -(pv_shim ? pv_shim_mem(avail) in dom0_compute_nr_pages() 322 if ( (long)nr_pages < 0 ) nr_pages += avail; in dom0_compute_nr_pages() 327 nr_pages = max(nr_pages, min_pages); in dom0_compute_nr_pages() 328 nr_pages = min(nr_pages, max_pages); in dom0_compute_nr_pages() 329 nr_pages = min(nr_pages, avail); in dom0_compute_nr_pages() 335 avail -= dom0_paging_pages(d, nr_pages); in dom0_compute_nr_pages() 357 end = vend + nr_pages * sizeof_long; in dom0_compute_nr_pages() 367 nr_pages = min_pages; in dom0_compute_nr_pages() [all …]
|
A D | setup.c | 665 unsigned long nr_pages, raw_max_page, modules_headroom, *module_map; in __start_xen() local 907 nr_pages = 0; in __start_xen() 910 nr_pages += e820.map[i].size >> PAGE_SHIFT; in __start_xen() 911 set_kexec_crash_area_size((u64)nr_pages << PAGE_SHIFT); in __start_xen() 1362 nr_pages = 0; in __start_xen() 1365 nr_pages += e820.map[i].size >> PAGE_SHIFT; in __start_xen() 1367 nr_pages >> (20 - PAGE_SHIFT), in __start_xen() 1368 nr_pages << (PAGE_SHIFT - 10)); in __start_xen() 1369 total_pages = nr_pages; in __start_xen()
|
/xen-4.10.0-shim-comet/xen/arch/x86/pv/ |
A D | descriptor-tables.c | 61 unsigned int i, nr_pages = (entries + 511) / 512; in pv_set_gdt() local 67 for ( i = 0; i < nr_pages; i++ ) in pv_set_gdt() 88 for ( i = 0; i < nr_pages; i++ ) in pv_set_gdt() 107 int nr_pages = (entries + 511) / 512; in do_set_gdt() local 116 if ( copy_from_guest(frames, frame_list, nr_pages) ) in do_set_gdt() 186 unsigned int i, nr_pages = (entries + 511) / 512; in compat_set_gdt() local 194 if ( !guest_handle_okay(frame_list, nr_pages) ) in compat_set_gdt() 197 for ( i = 0; i < nr_pages; ++i ) in compat_set_gdt()
|
A D | dom0_build.c | 100 unsigned long nr_pages) in setup_pv_physmap() argument 114 >> PAGE_SHIFT) + 3 > nr_pages ) in setup_pv_physmap() 284 unsigned long nr_pages; in dom0_construct_pv() local 396 nr_pages = dom0_compute_nr_pages(d, &parms, initrd_len); in dom0_construct_pv() 489 if ( (1UL << order) + PFN_UP(initrd_len) > nr_pages ) in dom0_construct_pv() 542 if ( d->tot_pages < nr_pages ) in dom0_construct_pv() 544 nr_pages - d->tot_pages); in dom0_construct_pv() 760 si->nr_pages = nr_pages; in dom0_construct_pv() 782 nr_pages); in dom0_construct_pv() 828 while ( pfn < nr_pages ) in dom0_construct_pv() [all …]
|
/xen-4.10.0-shim-comet/xen/arch/x86/hvm/ |
A D | dom0_build.c | 80 nr_pages -= rc; in modify_identity_mmio() 99 while ( nr_pages != 0 ) in pvh_populate_memory_range() 132 nr_pages -= 1UL << order; in pvh_populate_memory_range() 332 if ( nr_pages == cur_pages ) in pvh_setup_e820() 361 cur_pages = nr_pages; in pvh_setup_e820() 371 ASSERT(cur_pages == nr_pages); in pvh_setup_e820() 378 unsigned long nr_pages; in pvh_setup_p2m() local 386 pvh_setup_e820(d, nr_pages); in pvh_setup_p2m() 782 unsigned long mfn, nr_pages, i; in acpi_memory_banned() local 786 for ( i = 0 ; i < nr_pages; i++ ) in acpi_memory_banned() [all …]
|
/xen-4.10.0-shim-comet/stubdom/vtpmmgr/ |
A D | vtpm_disk.c | 134 for (i = 0; i < group->nr_pages; i++) in vtpm_sync_group() 166 if (pgidx >= group->nr_pages) { in create_vtpm() 167 if (pgidx != group->nr_pages) in create_vtpm() 169 group->nr_pages++; in create_vtpm() 170 group->data = realloc(group->data, group->nr_pages * sizeof(*page)); in create_vtpm() 192 struct mem_vtpm_page *last_pg = group->data + (group->nr_pages - 1); in delete_vtpm() 208 group->nr_pages--; in delete_vtpm() 223 for (j = 0; j < group->nr_pages; j++) { in find_vtpm()
|
A D | disk_read.c | 40 for (i = 0; i < group->nr_pages; i++) { in group_free() 372 group->nr_pages = (group->nr_vtpms + VTPMS_PER_SECTOR - 1) / VTPMS_PER_SECTOR; in load_verify_group() 374 group->data = calloc(group->nr_pages, sizeof(group->data[0])); in load_verify_group() 376 rc = load_verify_vtpm_itree(dst, 0, group->nr_pages, disk.v.vtpm_hash, in load_verify_group()
|
A D | vtpm_disk.h | 151 int nr_pages; member
|
/xen-4.10.0-shim-comet/tools/libxc/ |
A D | xc_core.c | 352 int nr_vcpus, unsigned long nr_pages) in elfnote_dump_core_header() argument 365 header.xch_nr_pages = nr_pages; in elfnote_dump_core_header() 440 unsigned long nr_pages; in xc_domain_dumpcore_via_callback() local 535 nr_pages = info.nr_pages; in xc_domain_dumpcore_via_callback() 681 filesz = (uint64_t)nr_pages * PAGE_SIZE; in xc_domain_dumpcore_via_callback() 697 filesz = (uint64_t)nr_pages * sizeof(p2m_array[0]); in xc_domain_dumpcore_via_callback() 705 filesz = (uint64_t)nr_pages * sizeof(pfn_array[0]); in xc_domain_dumpcore_via_callback() 793 if ( j >= nr_pages ) in xc_domain_dumpcore_via_callback() 857 if ( j < nr_pages ) in xc_domain_dumpcore_via_callback() 862 DPRINTF("j (%ld) != nr_pages (%ld)", j, nr_pages); in xc_domain_dumpcore_via_callback() [all …]
|
A D | xc_hcall_buf.c | 30 void *xc__hypercall_buffer_alloc_pages(xc_interface *xch, xc_hypercall_buffer_t *b, int nr_pages) in xc__hypercall_buffer_alloc_pages() argument 32 void *p = xencall_alloc_buffer_pages(xch->xcall, nr_pages); in xc__hypercall_buffer_alloc_pages() 42 void xc__hypercall_buffer_free_pages(xc_interface *xch, xc_hypercall_buffer_t *b, int nr_pages) in xc__hypercall_buffer_free_pages() argument 44 xencall_free_buffer_pages(xch->xcall, b->hbuf, nr_pages); in xc__hypercall_buffer_free_pages()
|
A D | xc_sr_save.c | 87 unsigned i, p, nr_pages = 0, nr_pages_mapped = 0; in write_batch() local 151 mfns[nr_pages++] = mfns[i]; in write_batch() 154 if ( nr_pages > 0 ) in write_batch() 157 ctx->domid, PROT_READ, nr_pages, mfns, errors); in write_batch() 163 nr_pages_mapped = nr_pages; in write_batch() 195 --nr_pages; in write_batch() 220 rec.length += nr_pages * PAGE_SIZE; in write_batch() 239 if ( nr_pages ) in write_batch() 248 --nr_pages; in write_batch() 260 assert(nr_pages == 0); in write_batch()
|
A D | xc_core_x86.c | 93 if ( dinfo->p2m_size < info->nr_pages ) in xc_core_arch_map_p2m_rw() 95 ERROR("p2m_size < nr_pages -1 (%lx < %lx", dinfo->p2m_size, info->nr_pages - 1); in xc_core_arch_map_p2m_rw()
|
A D | xc_sr_restore.c | 212 nr_pages = 0; in process_page_data() local 249 mfns[nr_pages++] = ctx->restore.ops.pfn_to_gfn(ctx, pfns[i]); in process_page_data() 255 if ( nr_pages == 0 ) in process_page_data() 260 nr_pages, mfns, map_errs); in process_page_data() 265 nr_pages, count); in process_page_data() 320 xenforeignmemory_unmap(xch->fmem, mapping, nr_pages); in process_page_data()
|
/xen-4.10.0-shim-comet/tools/libs/call/include/ |
A D | xencall.h | 112 void *xencall_alloc_buffer_pages(xencall_handle *xcall, size_t nr_pages); 113 void xencall_free_buffer_pages(xencall_handle *xcall, void *p, size_t nr_pages);
|
/xen-4.10.0-shim-comet/tools/memshr/ |
A D | shm.c | 94 int nr_pages, i; in shm_shared_info_open() local 96 nr_pages = (sizeof(shared_memshr_info_t) >> XC_PAGE_SHIFT) + 1; in shm_shared_info_open() 98 nr_pages * XC_PAGE_SIZE, in shm_shared_info_open()
|
/xen-4.10.0-shim-comet/tools/firmware/hvmloader/ |
A D | pci.c | 362 unsigned int nr_pages = min_t( in pci_setup() local 368 hvm_info->low_mem_pgend -= nr_pages; in pci_setup() 371 nr_pages, in pci_setup() 378 xatp.size = nr_pages; in pci_setup() 381 hvm_info->high_mem_pgend += nr_pages; in pci_setup()
|
/xen-4.10.0-shim-comet/stubdom/grub/ |
A D | kexec.c | 89 for (source_pfn = 0; source_pfn < start_info.nr_pages; source_pfn++) in do_exchange() 92 ASSERT(source_pfn < start_info.nr_pages); in do_exchange() 279 dom->total_pages = start_info.nr_pages; in kexec() 394 for (nr_m2p_updates = pfn = 0; pfn < start_info.nr_pages; pfn++) in kexec() 399 for (i = pfn = 0; pfn < start_info.nr_pages; pfn++) in kexec()
|
/xen-4.10.0-shim-comet/xen/include/asm-x86/ |
A D | dom0_build.h | 31 unsigned long nr_pages);
|
/xen-4.10.0-shim-comet/tools/python/xen/migration/ |
A D | libxc.py | 266 nr_pages = 0 280 nr_pages += 1 282 pagesz = nr_pages * 4096
|
/xen-4.10.0-shim-comet/tools/python/scripts/ |
A D | convert-legacy-stream | 386 nr_pages = len([x for x in pfns if (x & 0xf0000000) < 0xd0000000]) 387 pages = rdexact(nr_pages * 4096) 506 _, nr_pages = unpack_exact("=IQ") 507 info(" IOREQ server pages: %d" % (nr_pages, )) 509 [public.HVM_PARAM_NR_IOREQ_SERVER_PAGES, nr_pages])
|
/xen-4.10.0-shim-comet/xen/include/xen/ |
A D | mm.h | 559 static inline unsigned int get_order_from_pages(unsigned long nr_pages) in get_order_from_pages() argument 563 nr_pages--; in get_order_from_pages() 564 for ( order = 0; nr_pages; order++ ) in get_order_from_pages() 565 nr_pages >>= 1; in get_order_from_pages()
|
/xen-4.10.0-shim-comet/tools/misc/ |
A D | xen-lowmemd.c | 67 dom0_pages = (unsigned long long) dom0_info.nr_pages; in handle_low_mem()
|
/xen-4.10.0-shim-comet/xen/common/ |
A D | page_alloc.c | 1718 struct page_info *pg, unsigned long nr_pages) in init_heap_pages() argument 1732 for ( i = 0; i < nr_pages; i++ ) in init_heap_pages() 1739 unsigned long e = page_to_mfn(pg + nr_pages - 1) + 1; in init_heap_pages() 1745 n = init_node_heap(nid, page_to_mfn(pg+i), nr_pages - i, in init_heap_pages() 1747 BUG_ON(i + n > nr_pages); in init_heap_pages() 1753 if ( i + n == nr_pages ) in init_heap_pages() 1755 nr_pages -= n; in init_heap_pages()
|