Re: [PATCH v2 3/4] xen: arm: enable stack protector feature

2024-11-30 Thread Julien Grall
Hi Volodymyr, On 30/11/2024 01:10, Volodymyr Babchuk wrote: Enable previously added CONFIG_STACK_PROTECTOR feature for ARM platform. Here we can call boot_stack_chk_guard_setup() in start_xen() function, because it never returns, so stack protector code will not be triggered because of changed c

Re: [PATCH 3/5] build: arm64: provide -target and -march if using clang

2024-11-30 Thread Julien Grall
Hi Volodymyr, On 29/11/2024 01:49, Volodymyr Babchuk wrote: Provide -target and -march explicitly when building with clang. This makes cross-compilation much easier, because clang accept this parameters regardless of host platform. Basically, make XEN_TARGET_ARCH=arm64 clang=y llvm=y will b

Re: [PATCH v6 1/3] xen/arm: mpu: Create boot-time MPU protection regions

2024-11-30 Thread Julien Grall
Hi Ayan, On 18/11/2024 12:12, Ayan Kumar Halder wrote: +/* + * Macro to prepare and set a EL2 MPU memory region. + * We will also create an according MPU memory region entry, which + * is a structure of pr_t, in table \prmap. + * + * sel: region selector + * base:reg storing bas

Re: [PATCH 3/5] build: arm64: provide -target and -march if using clang

2024-11-30 Thread Julien Grall
Hi, On 29/11/2024 22:12, Volodymyr Babchuk wrote: Hi Jan, Jan Beulich writes: On 29.11.2024 02:49, Volodymyr Babchuk wrote: Provide -target and -march explicitly when building with clang. This makes cross-compilation much easier, because clang accept this parameters regardless of host plat