 
	
| [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [PATCH v8 3/8] xen/arm: Fold mmu_init_secondary_cpu() to head.S
 On 01/11/2023 01:58, Henry Wang wrote: Hi Julien, Hi, On Nov 1, 2023, at 02:29, Julien Grall <julien@xxxxxxx> wrote: Hi Henry, +Ayan On 23/10/2023 03:13, Henry Wang wrote:Currently mmu_init_secondary_cpu() only enforces the page table should not contain mapping that are both Writable and eXecutables after boot. To ease the arch/arm/mm.c split work, fold this function to head.S. For arm32, introduce an assembly macro pt_enforce_wxn. The macro is called before secondary CPUs jumping into the C world. For arm64, set the SCTLR_Axx_ELx_WXN flag right when the MMU is enabled. This would avoid the extra TLB flush and SCTLR dance.For a random reader, it is not clear why you can't set WnX early for arm32 as well. I think it would helpful to explain the difference. I.e. at the point the MMU is enabled, the page-tables may still contain mapping which are writable and executable.Sounds good, I will add the suggested sentence. No it is only for arm32. If it is only for Arm32, do you need me adding the print for Arm64 as well in this patch? No need. For arm64, we will enable WnX at the same time as the MMU. So we are already covered by the other prints. I will add a print at that point. Meanwhile, I would move the call a few lines above? This will allow Ayan to drop [1].Yeah I will include Ayan’s change in this patch and add his sign-off. I am fine with that. Cheers, -- Julien Grall 
 
 
 | 
|  | Lists.xenproject.org is hosted with RackSpace, monitoring our |