Home
last modified time | relevance | path

Searched refs:mfns (Results 1 – 6 of 6) sorted by relevance

/xen/tools/libxc/
A Dxc_sr_restore.c141 xen_pfn_t *mfns = malloc(count * sizeof(*mfns)), in populate_pfns() local
146 if ( !mfns || !pfns ) in populate_pfns()
149 2 * count * sizeof(*mfns)); in populate_pfns()
171 xch, ctx->domid, nr_pfns, 0, 0, mfns); in populate_pfns()
180 if ( mfns[i] == INVALID_MFN ) in populate_pfns()
195 free(mfns); in populate_pfns()
209 xen_pfn_t *mfns = malloc(count * sizeof(*mfns)); in process_page_data() local
217 if ( !mfns || !map_errs ) in process_page_data()
221 count * (sizeof(*mfns) + sizeof(*map_errs))); in process_page_data()
263 nr_pages, mfns, map_errs); in process_page_data()
[all …]
A Dxc_sr_save_x86_pv.c99 n_mfns * sizeof(*mfns)); in map_p2m_leaves()
106 if ( !mfn_in_pseudophysmap(ctx, mfns[x]) ) in map_p2m_leaves()
319 xen_pfn_t *mfns = NULL; in map_p2m_list() local
374 mfns = malloc(sizeof(*mfns)); in map_p2m_list()
375 if ( !mfns ) in map_p2m_list()
380 mfns[0] = p2m_mfn; in map_p2m_list()
394 free(mfns); in map_p2m_list()
400 mfns = malloc(sizeof(*mfns) * idx); in map_p2m_list()
401 if ( !mfns ) in map_p2m_list()
417 mfns[idx - idx_start] = mfn; in map_p2m_list()
[all …]
A Dxc_sr_save.c90 xen_pfn_t *mfns = NULL, *types = NULL; in write_batch() local
108 mfns = malloc(nr_pfns * sizeof(*mfns)); in write_batch()
120 if ( !mfns || !types || !errors || !guest_data || !local_pages || !iov ) in write_batch()
129 types[i] = mfns[i] = ctx->save.ops.pfn_to_gfn(ctx, in write_batch()
133 if ( mfns[i] == INVALID_MFN ) in write_batch()
158 mfns[nr_pages++] = mfns[i]; in write_batch()
164 xch->fmem, ctx->domid, PROT_READ, nr_pages, mfns, errors); in write_batch()
185 ctx->save.batch_pfns[i], mfns[p], errors[p]); in write_batch()
281 free(mfns); in write_batch()
/xen/xen/common/
A Dargo.c131 mfn_t *mfns; member
1213 if ( !ring_info->mfns ) in ring_remove_mfns()
1229 XFREE(ring_info->mfns); in ring_remove_mfns()
1452 mfn_t *mfns; in find_ring_mfns() local
1457 if ( ring_info->mfns ) in find_ring_mfns()
1466 ASSERT(!ring_info->mfns); in find_ring_mfns()
1470 if ( !mfns ) in find_ring_mfns()
1474 mfns[i] = INVALID_MFN; in find_ring_mfns()
1479 xfree(mfns); in find_ring_mfns()
1483 ring_info->mfns = mfns; in find_ring_mfns()
[all …]
/xen/stubdom/grub/
A Dmini-os.c666 unsigned long *mfns; in fb_open() local
674 mfns = malloc(numpages * sizeof(*mfns)); in fb_open()
677 mfns[i] = virtual_to_mfn(fb + i * PAGE_SIZE); in fb_open()
679 fb_dev = init_fbfront(NULL, mfns, width, height, depth, linesize, numpages); in fb_open()
680 free(mfns); in fb_open()
/xen/xen/arch/x86/mm/
A Dp2m-pod.c864 mfn_t mfns[POD_SWEEP_STRIDE]; in p2m_pod_zero_check() local
881 mfns[i] = p2m->get_entry(p2m, gfns[i], types + i, &a, in p2m_pod_zero_check()
891 const struct page_info *pg = mfn_to_page(mfns[i]); in p2m_pod_zero_check()
897 map[i] = map_domain_page(mfns[i]); in p2m_pod_zero_check()
924 if ( (mfn_to_page(mfns[i])->count_info & PGC_count_mask) > 1 ) in p2m_pod_zero_check()
930 if ( p2m_set_entry(p2m, gfns[i], mfns[i], PAGE_ORDER_4K, in p2m_pod_zero_check()
972 if ( p2m_set_entry(p2m, gfns[i], mfns[i], PAGE_ORDER_4K, in p2m_pod_zero_check()
990 t.mfn = mfn_x(mfns[i]); in p2m_pod_zero_check()
998 p2m_pod_cache_add(p2m, mfn_to_page(mfns[i]), PAGE_ORDER_4K); in p2m_pod_zero_check()

Completed in 17 milliseconds