Lines Matching refs:mfn
26 * P2M_PER_PAGE depends on the architecture, as a mfn is always
214 * - After resume we're called from within stop_machine, but the mfn
219 unsigned long pfn, mfn;
238 /* Reinitialise, mfn's all change after migration */
251 mfn = pte_mfn(*ptep);
254 /* Don't bother allocating any mfn mid levels if
255 * they're just missing, just update the stored mfn,
274 mid_mfn_p[mididx] = mfn;
315 unsigned long mfn;
320 mfn = xen_p2m_addr[pfn];
322 if (mfn == INVALID_P2M_ENTRY)
325 if (mfn & IDENTITY_FRAME_BIT)
527 * parallel mfn tree is kept in sync. We may race with other cpus, so
560 /* Separately check the mid mfn level */
650 bool __set_phys_to_machine(unsigned long pfn, unsigned long mfn)
657 return mfn == INVALID_P2M_ENTRY;
663 if (likely(!xen_safe_write_ulong(xen_p2m_addr + pfn, mfn)))
670 return mfn == INVALID_P2M_ENTRY;
673 return mfn == IDENTITY_FRAME(pfn);
678 bool set_phys_to_machine(unsigned long pfn, unsigned long mfn)
680 if (unlikely(!__set_phys_to_machine(pfn, mfn))) {
687 return __set_phys_to_machine(pfn, mfn);
711 unsigned long mfn, pfn;
723 mfn = pte_mfn(*pte);
725 mfn = PFN_DOWN(map_ops[i].dev_bus_addr);
731 if (likely(set_phys_to_machine(pfn, FOREIGN_FRAME(mfn))))
788 unsigned long mfn = __pfn_to_mfn(page_to_pfn(pages[i]));
791 if (mfn != INVALID_P2M_ENTRY && (mfn & FOREIGN_FRAME_BIT))