Re: [PATCH v3 31/52] xen/mpu: make early_fdt_map support in MPU systems

2023-07-14 Thread Julien Grall
On 13/07/2023 04:12, Penny Zheng wrote: Thanks ayan for pointing out that RES0 is not suitable for storing software-only flags, agreed. Then, maybe we should refine the existing "struct pr_t" to store these sw bits, like: ``` typedef union { struct {     uint8_t tran:1; /* Transie

Re: [PATCH v3 31/52] xen/mpu: make early_fdt_map support in MPU systems

2023-07-12 Thread Penny Zheng
Hi Julien On 2023/7/3 17:20, Julien Grall wrote: Hi, On 03/07/2023 06:12, Penny Zheng wrote: Hi, On 2023/6/30 23:02, Julien Grall wrote: Hi, On 30/06/2023 15:42, Ayan Kumar Halder wrote: Hi Julien, On 30/06/2023 12:22, Julien Grall wrote: On 30/06/2023 11:49, Ayan Kumar Halder wrote:

Re: [PATCH v3 31/52] xen/mpu: make early_fdt_map support in MPU systems

2023-07-03 Thread Julien Grall
Hi, On 03/07/2023 06:12, Penny Zheng wrote: Hi, On 2023/6/30 23:02, Julien Grall wrote: Hi, On 30/06/2023 15:42, Ayan Kumar Halder wrote: Hi Julien, On 30/06/2023 12:22, Julien Grall wrote: On 30/06/2023 11:49, Ayan Kumar Halder wrote: On 30/06/2023 05:07, Penny Zheng wrote: Hi, Hi

Re: [PATCH v3 31/52] xen/mpu: make early_fdt_map support in MPU systems

2023-07-02 Thread Penny Zheng
Hi, On 2023/6/30 23:02, Julien Grall wrote: Hi, On 30/06/2023 15:42, Ayan Kumar Halder wrote: Hi Julien, On 30/06/2023 12:22, Julien Grall wrote: On 30/06/2023 11:49, Ayan Kumar Halder wrote: On 30/06/2023 05:07, Penny Zheng wrote: Hi, Hi Penny, On 2023/6/30 01:22, Ayan Kumar Halde

Re: [PATCH v3 31/52] xen/mpu: make early_fdt_map support in MPU systems

2023-06-30 Thread Julien Grall
Hi, On 30/06/2023 15:42, Ayan Kumar Halder wrote: Hi Julien, On 30/06/2023 12:22, Julien Grall wrote: On 30/06/2023 11:49, Ayan Kumar Halder wrote: On 30/06/2023 05:07, Penny Zheng wrote: Hi, Hi Penny, On 2023/6/30 01:22, Ayan Kumar Halder wrote: On 26/06/2023 04:34, Penny Zheng wro

Re: [PATCH v3 31/52] xen/mpu: make early_fdt_map support in MPU systems

2023-06-30 Thread Ayan Kumar Halder
Hi Julien, On 30/06/2023 12:22, Julien Grall wrote: On 30/06/2023 11:49, Ayan Kumar Halder wrote: On 30/06/2023 05:07, Penny Zheng wrote: Hi, Hi Penny, On 2023/6/30 01:22, Ayan Kumar Halder wrote: On 26/06/2023 04:34, Penny Zheng wrote: CAUTION: This message has originated from an Ext

Re: [PATCH v3 31/52] xen/mpu: make early_fdt_map support in MPU systems

2023-06-30 Thread Julien Grall
On 30/06/2023 11:49, Ayan Kumar Halder wrote: On 30/06/2023 05:07, Penny Zheng wrote: Hi, Hi Penny, On 2023/6/30 01:22, 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

Re: [PATCH v3 31/52] xen/mpu: make early_fdt_map support in MPU systems

2023-06-30 Thread Ayan Kumar Halder
On 30/06/2023 05:07, Penny Zheng wrote: Hi, Hi Penny, On 2023/6/30 01:22, 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

Re: [PATCH v3 31/52] xen/mpu: make early_fdt_map support in MPU systems

2023-06-29 Thread Penny Zheng
Hi, On 2023/6/30 01:22, 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. In MPU system, MPU memory re

Re: [PATCH v3 31/52] xen/mpu: make early_fdt_map support in MPU systems

2023-06-29 Thread Ayan Kumar Halder
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. In MPU system, MPU memory region is always mapped PAGE_ALIGN, so in order to no

[PATCH v3 31/52] xen/mpu: make early_fdt_map support in MPU systems

2023-06-25 Thread Penny Zheng
In MPU system, MPU memory region is always mapped PAGE_ALIGN, so in order to not access unexpected memory area, dtb section in xen.lds.S should be made page-aligned too. We add . = ALIGN(PAGE_SIZE); in the head of dtb section to make it happen. In this commit, we map early FDT with a transient MPU