Lines Matching refs:ap2m
2199 struct p2m_domain **ap2m) in p2m_altp2m_lazy_copy() argument
2210 *ap2m = p2m_get_altp2m(v); in p2m_altp2m_lazy_copy()
2212 mfn = get_gfn_type_access(*ap2m, gfn_x(gfn), &p2mt, &p2ma, in p2m_altp2m_lazy_copy()
2214 __put_gfn(*ap2m, gfn_x(gfn)); in p2m_altp2m_lazy_copy()
2226 p2m_lock(*ap2m); in p2m_altp2m_lazy_copy()
2236 rv = p2m_set_entry(*ap2m, gfn, mfn, page_order, p2mt, p2ma); in p2m_altp2m_lazy_copy()
2237 p2m_unlock(*ap2m); in p2m_altp2m_lazy_copy()
2243 gfn_x(gfn), mfn_x(mfn), (unsigned long)*ap2m); in p2m_altp2m_lazy_copy()
2380 struct p2m_domain *hp2m, *ap2m; in p2m_change_altp2m_gfn() local
2391 ap2m = d->arch.altp2m_p2m[idx]; in p2m_change_altp2m_gfn()
2394 p2m_lock(ap2m); in p2m_change_altp2m_gfn()
2396 mfn = ap2m->get_entry(ap2m, old_gfn, &t, &a, 0, NULL, NULL); in p2m_change_altp2m_gfn()
2401 p2m_remove_page(ap2m, gfn_x(old_gfn), mfn_x(mfn), PAGE_ORDER_4K); in p2m_change_altp2m_gfn()
2425 if ( ap2m->set_entry(ap2m, gfn, mfn, page_order, t, a, 1) ) in p2m_change_altp2m_gfn()
2430 mfn = ap2m->get_entry(ap2m, new_gfn, &t, &a, 0, NULL, NULL); in p2m_change_altp2m_gfn()
2439 if ( !ap2m->set_entry(ap2m, old_gfn, mfn, PAGE_ORDER_4K, t, a, in p2m_change_altp2m_gfn()
2444 if ( gfn_x(new_gfn) < ap2m->min_remapped_gfn ) in p2m_change_altp2m_gfn()
2445 ap2m->min_remapped_gfn = gfn_x(new_gfn); in p2m_change_altp2m_gfn()
2446 if ( gfn_x(new_gfn) > ap2m->max_remapped_gfn ) in p2m_change_altp2m_gfn()
2447 ap2m->max_remapped_gfn = gfn_x(new_gfn); in p2m_change_altp2m_gfn()
2451 p2m_unlock(ap2m); in p2m_change_altp2m_gfn()