Hi Oleksii,
On 09/02/2024 18:00, Oleksii Kurochko wrote:
ifdefing inclusion of <asm/mem_access.h> in <xen/mem_access.h>
allows to avoid generation of empty <asm/mem_access.h> header
for the case when !CONFIG_MEM_ACCESS.
For Arm it was explicitly added inclusion of <asm/mem_access.h> for p2m.c
and traps.c because they require some functions from <asm/mem_access.h> which
aren't available in case of !CONFIG_MEM_ACCESS.
Ideally we should protect the code relying on <asm/mem_access.h>. But
that's a separate improvement for the Arm folks to deal with. So:
Acked-by: Julien Grall <[email protected]>
Cheers,
--
Julien Grall