Re: [PATCH v3 24/52] xen/mpu: build up start-of-day Xen MPU memory region map

2023-06-30 Thread Andrew Cooper
On 30/06/2023 10:43 am, Julien Grall wrote: > On 30/06/2023 10:26, Ayan Kumar Halder wrote: >> On 29/06/2023 12:55, Julien Grall wrote: > Furthermore, from my understanding, at least on Armv8-A, there are > caching problem because you will need to save some registers (for > the call to

Re: [PATCH v3 24/52] xen/mpu: build up start-of-day Xen MPU memory region map

2023-06-30 Thread Julien Grall
On 30/06/2023 10:26, Ayan Kumar Halder wrote: On 29/06/2023 12:55, Julien Grall wrote: Furthermore, from my understanding, at least on Armv8-A, there are caching problem because you will need to save some registers (for the call to set_boot_mpumap()) on the stack with cache disabled. This

Re: [PATCH v3 24/52] xen/mpu: build up start-of-day Xen MPU memory region map

2023-06-30 Thread Ayan Kumar Halder
On 29/06/2023 12:55, Julien Grall wrote: Hi Ayan, Hi Julien, On 29/06/2023 12:21, Ayan Kumar Halder wrote: On 28/06/2023 14:42, Julien Grall wrote: What's the guarantee that the compiler will not generate any instructions that could generate an alignment fault? I thought by writing in

Re: [PATCH v3 24/52] xen/mpu: build up start-of-day Xen MPU memory region map

2023-06-29 Thread Julien Grall
Hi Ayan, On 29/06/2023 12:21, Ayan Kumar Halder wrote: On 28/06/2023 14:42, Julien Grall wrote: What's the guarantee that the compiler will not generate any instructions that could generate an alignment fault? I thought by writing in assembly, we tell the compiler what instructions to

Re: [PATCH v3 24/52] xen/mpu: build up start-of-day Xen MPU memory region map

2023-06-29 Thread Ayan Kumar Halder
On 28/06/2023 14:42, Julien Grall wrote: Hi Ayan, Hi Julien, On 28/06/2023 14:22, Ayan Kumar Halder wrote: On 28/06/2023 12:17, Julien Grall wrote: Hi, Hi Julien, On 28/06/2023 11:55, Ayan Kumar Halder wrote: On 26/06/2023 04:34, Penny Zheng wrote: CAUTION: This message has

Re: [PATCH v3 24/52] xen/mpu: build up start-of-day Xen MPU memory region map

2023-06-28 Thread Julien Grall
Hi Ayan, On 28/06/2023 14:22, Ayan Kumar Halder wrote: On 28/06/2023 12:17, Julien Grall wrote: Hi, Hi Julien, On 28/06/2023 11:55, Ayan Kumar Halder wrote: On 26/06/2023 04:34, Penny Zheng wrote: CAUTION: This message has originated from an External Source. Please use proper judgment

Re: [PATCH v3 24/52] xen/mpu: build up start-of-day Xen MPU memory region map

2023-06-28 Thread Ayan Kumar Halder
On 28/06/2023 12:17, Julien Grall wrote: Hi, Hi Julien, On 28/06/2023 11:55, Ayan Kumar Halder wrote: On 26/06/2023 04:34, Penny Zheng wrote: CAUTION: This message has originated from an External Source. Please use proper judgment and caution when opening attachments, clicking links, or

Re: [PATCH v3 24/52] xen/mpu: build up start-of-day Xen MPU memory region map

2023-06-28 Thread Julien Grall
Hi, On 28/06/2023 11:55, Ayan Kumar Halder wrote: On 26/06/2023 04:34, Penny Zheng wrote: CAUTION: This message has originated from an External Source. Please use proper judgment and caution when opening attachments, clicking links, or responding to this email. The start-of-day Xen MPU

Re: [PATCH v3 24/52] xen/mpu: build up start-of-day Xen MPU memory region map

2023-06-28 Thread Ayan Kumar Halder
Hi Penny, On 26/06/2023 04:34, Penny Zheng wrote: CAUTION: This message has originated from an External Source. Please use proper judgment and caution when opening attachments, clicking links, or responding to this email. The start-of-day Xen MPU memory region layout shall be like as

[PATCH v3 24/52] xen/mpu: build up start-of-day Xen MPU memory region map

2023-06-25 Thread Penny Zheng
The start-of-day Xen MPU memory region layout shall be like as follows: xen_mpumap[0] : Xen text xen_mpumap[1] : Xen read-only data xen_mpumap[2] : Xen read-only after init data xen_mpumap[3] : Xen read-write data xen_mpumap[4] : Xen BSS xen_mpumap[5] : Xen init text xen_mpumap[6] : Xen init data