| 
    
 [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [PATCH 2/2] mm: split out mfn_t / gfn_t / pfn_t definitions and helpers
 Hi Jan, On 03/12/2020 09:39, Jan Beulich wrote: On 02.12.2020 18:35, Julien Grall wrote:On 02/12/2020 14:50, Jan Beulich wrote: I am fine with keeping it here. Can you mention it in the commit message? Thanks for the explanation. AFAICT, this file will mostly contain typesafe for MM. So how about naming it to mm-typesafe.h? Or maybe mm-frame.h?--- /dev/null +++ b/xen/include/xen/frame-num.hIt would feel more natural to me if the file is named mm-types.h.Indeed I was first meaning to use this name (not the least because I don't particularly like the one chosen, but I also couldn't think of a better one). However, then things like struct page_info would imo also belong there (more precisely in asm/mm-types.h to be included from here), which is specifically something I want to avoid. Yes, eventually we may (I'm inclined to even say "will") want such a header, but I still want to keep these even more fundamental types in a separate one. Otherwise we'll again end up with files including mm-types.h just because of needing e.g. gfn_t for a function declaration. (Note that the same isn't the case for struct page_info, which can simply be forward declared.) Cheers, -- Julien Grall 
 
 
  | 
  
![]()  | 
            
         Lists.xenproject.org is hosted with RackSpace, monitoring our  |