RE: [PATCH v6 09/11] xen/arm64: create boot-time MPU protection regions

2022-11-07 Thread Penny Zheng
Hi Julien > -Original Message- > From: Julien Grall > Sent: Monday, November 7, 2022 5:30 PM > To: Penny Zheng ; Wei Chen > ; xen-devel@lists.xenproject.org > Cc: nd ; Stefano Stabellini ; Bertrand > Marquis ; Volodymyr Babchuk > > Subject: Re: [PATCH v6 09

Re: [PATCH v6 09/11] xen/arm64: create boot-time MPU protection regions

2022-11-07 Thread Julien Grall
On 07/11/2022 06:59, Penny Zheng wrote: Hi Julien Hi Penny, + +/* + * In boot stage, we will use 1 MPU region: + * Region#0: Normal memory for Xen text + data + bss (2MB) + */ Are we only going to modify the MPU in head.S? If not, then I would define the layout in config_mpu.h so there are

RE: [PATCH v6 09/11] xen/arm64: create boot-time MPU protection regions

2022-11-06 Thread Penny Zheng
Hi Julien > -Original Message- > From: Julien Grall > Sent: Monday, November 7, 2022 4:47 AM > To: Wei Chen ; xen-devel@lists.xenproject.org > Cc: nd ; Penny Zheng ; Stefano > Stabellini ; Bertrand Marquis > ; Volodymyr Babchuk > > Subject: Re: [PATCH v6 09

Re: [PATCH v6 09/11] xen/arm64: create boot-time MPU protection regions

2022-11-06 Thread Julien Grall
Hi Wei, On 04/11/2022 10:07, Wei Chen wrote: From: Penny Zheng Like boot-time page table in MMU system, we need a boot-time MPU protection region configuration in MPU system so Xen can fetch code and data from normal memory. This operation need to access Armv8-R MPU system registers, but thes