|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: Proposal for Porting Xen to Armv8-R64 - DraftA
On 02/03/2022 07:21, Penny Zheng wrote: Hi julien Hi Penny,
Thank you for the clarification. This makes sense to me. I would suggest to update the proposal to reflect this decision. For PMSA, we still enforce WnX. For your use case, I assume it's alternative. It still may have some possibility to avoid vmap(). But there may be some security issues. We had thought to disable MPU -> update xen text -> enable MPU to copy VMSA alternative's behavior. The problem with this, however, is that at some point, all memory is RWX. There maybe some security risk. But because it's in init stage, it probably doesn't matter as much as I thought.In MMU system, we use vmap() to change requested xen text codes(a few lines) temporarily to RW to apply the alternative codes, the granularity for it could be 4KB. But on MPU system, we give the whole XEN text code a MPU region, so otherwise we disable the whole MPU to make it happen, which leads to a little risk for running c codes where MPU disabled, or all text memory becoming RWX at this alternative time. See my answer to Wei. So long the code is compliant with the Arm Arm, it would be acceptable to have boot code running with RWX for a short period of time. Cheers, -- Julien Grall
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |