Lines Matching refs:mfn
26 * P2M_PER_PAGE depends on the architecture, as a mfn is always
209 * - After resume we're called from within stop_machine, but the mfn
214 unsigned long pfn, mfn;
233 /* Reinitialise, mfn's all change after migration */
246 mfn = pte_mfn(*ptep);
249 /* Don't bother allocating any mfn mid levels if
250 * they're just missing, just update the stored mfn,
269 mid_mfn_p[mididx] = mfn;
310 unsigned long mfn;
315 mfn = xen_p2m_addr[pfn];
317 if (mfn == INVALID_P2M_ENTRY)
320 if (mfn & IDENTITY_FRAME_BIT)
522 * parallel mfn tree is kept in sync. We may race with other cpus, so
555 /* Separately check the mid mfn level */
645 bool __set_phys_to_machine(unsigned long pfn, unsigned long mfn)
652 return mfn == INVALID_P2M_ENTRY;
658 if (likely(!xen_safe_write_ulong(xen_p2m_addr + pfn, mfn)))
665 return mfn == INVALID_P2M_ENTRY;
668 return mfn == IDENTITY_FRAME(pfn);
673 bool set_phys_to_machine(unsigned long pfn, unsigned long mfn)
675 if (unlikely(!__set_phys_to_machine(pfn, mfn))) {
682 return __set_phys_to_machine(pfn, mfn);
706 unsigned long mfn, pfn;
718 mfn = pte_mfn(*pte);
720 mfn = PFN_DOWN(map_ops[i].dev_bus_addr);
726 if (likely(set_phys_to_machine(pfn, FOREIGN_FRAME(mfn))))
782 unsigned long mfn = __pfn_to_mfn(page_to_pfn(pages[i]));
785 if (mfn != INVALID_P2M_ENTRY && (mfn & FOREIGN_FRAME_BIT))