|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [PATCH v2 04/40] xen/arm: add an option to define Xen start address for Armv8-R
On 18/01/2023 03:00, Wei Chen wrote: Hi Julien, Hi Wei, Would this mean a vendor may provide their custom solution to protect the memory?-----Original Message----- From: Julien Grall <julien@xxxxxxx> Sent: 2023年1月18日 7:24 To: Penny Zheng <Penny.Zheng@xxxxxxx>; xen-devel@xxxxxxxxxxxxxxxxxxxx Cc: Wei Chen <Wei.Chen@xxxxxxx>; Stefano Stabellini <sstabellini@xxxxxxxxxx>; Bertrand Marquis <Bertrand.Marquis@xxxxxxx>; Volodymyr Babchuk <Volodymyr_Babchuk@xxxxxxxx>; Jiamei Xie <Jiamei.Xie@xxxxxxx> Subject: Re: [PATCH v2 04/40] xen/arm: add an option to define Xen start address for Armv8-R Hi Penny, On 13/01/2023 05:28, Penny Zheng wrote:From: Wei Chen <wei.chen@xxxxxxx> On Armv8-A, Xen has a fixed virtual start address (link address too) for all Armv8-A platforms. In an MMU based system, Xen can map its loaded address to this virtual start address. So, on Armv8-A platforms, the Xen start address does not need to be configurable. But on Armv8-R platforms, there is no MMU to map loaded address to a fixed virtual address and different platforms will have very different address space layout. So Xen cannot use a fixed physical address on MPU based system and need to have it configurable. In this patch we introduce one Kconfig option for users to define the default Xen start address for Armv8-R. Users can enter the address in config time, or select the tailored platform config file from arch/arm/configs. And as we introduced Armv8-R platforms to Xen, that means the existed Arm64 platforms should not be listed in Armv8-R platform list, so we add !ARM_V8R dependency for these platforms. Signed-off-by: Wei Chen <wei.chen@xxxxxxx> Signed-off-by: Jiamei.Xie <jiamei.xie@xxxxxxx>Your signed-off-by is missing. Although it is unlikely that vendors using the Armv8-R IP will do so, it is indeed an option. In the ID register, there are also related bits in ID_AA64MMFR0_EL1 (MSA_frac) to indicate this. OOI, why do you think this is meaningless? + help + This option allows to set the customized address at which Xen willbe+ linked on MPU systems. This address must be aligned to a page size. + source "arch/arm/tee/Kconfig" config STATIC_SHM diff --git a/xen/arch/arm/platforms/Kconfigb/xen/arch/arm/platforms/Kconfig New patch please or introduce it in the patch where you need it. We had preferred to use separate patches for this kind of changes, but we found the number of patches would become more and more. This problem has been bothering us for organizing patches. I understand the concern of increasing the number of patches. However, this also needs to weight against the review. In this case, it is very difficult for me to understand why we need to introduce FVP_BASER. In fact, on the previous version, we discussed to not introduce any new platform specific config. So I am a bit surprised this is actually needed. Cheers, -- Julien Grall
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |