On 25/04/2025 1:45 pm, Jan Beulich wrote: > On 25.04.2025 13:29, Oleksii Kurochko wrote: >> On 4/25/25 1:24 PM, Andrew Cooper wrote: >>> The type used for pagetable attributes/permissions is currently unsigned >>> int, >>> but needs to become architecture dependent as PPC needs unsigned long. >> Not only PPC, RISC-V needs it too. >> >>> Introduce mm-types.h to house pte_attr_t. >> Do we really want a separate mm-types.h? > I think so, yes. It'll (hopefully) allow to avoid including xen/mm.h in a few > places, in the longer run.
Yes, that's the intention. We need to use this pattern here and elsewhere (especially sched.h) to avoid having most TUs pull in most of the world. ~Andrew