| 
    
 [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-devel] [PATCH 7/8] xen/arm: Set foreign page type to p2m_map_foreign
 On 12/05/2013 04:54 PM, Ian Campbell wrote: On Thu, 2013-12-05 at 16:41 +0000, Julien Grall wrote: Actually the generic walker will not be usefull for p2m_teardown. It seems to be an extension of p2m_lookup, so will only search a specific gfn. The walk might need to support continuations though. I wonder if this ref ought to be taken in create_p2m_entries for all entries and not just foreign ones, and then released in the appropriate places.If I'm not mistaken, Xen already takes a ref when the page is allocated for the domain. Why would we need to take another ref for these pages?There's a nice symmetry to all p2m entries taking a ref count, and it makes the teardown a bit simpler since you can just drop the ref every time without worrying about the type. If I'm not mistaken, even x86 code doesn't have 2 ref for each page. Or I didn't see where the ref is taken/release ... In any case, walk the whole p2m for looking for present page seems a bit tough and slow to release memory for a domain. I'm wondering if we can have a list of foreign page, and browse it when the domain is destroyed. -- Julien Grall _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxx http://lists.xen.org/xen-devel 
 
 
  | 
  
![]()  | 
            
         Lists.xenproject.org is hosted with RackSpace, monitoring our  |