On Wed, 2017-08-02 at 08:19 -0400, Pankaj Gupta wrote: > > > > + write_seqlock(&guest_page_lock); > > + while (idx < MAX_FGPT_ENTRIES) { > > + unsigned long pfn = free_page_obj[idx].pfn; > > + unsigned long pfn_end = free_page_obj[idx].pfn + > > + free_page_obj[idx].pages - > > 1; > > + bool prev_free = false; > > + > > + while (pfn <= pfn_end) { > > + struct page *p = pfn_to_page(pfn); > > just one thing here, if we want/planning to use pmem as RAM this > might not work, because pfn will not > have corresponding 'struct page'? pmem is never really used as RAM; allocating and freeing space in pmem is done by a filesystem, not by the memory management subsystem. -- All rights reversed
Attachment:
signature.asc
Description: This is a digitally signed message part