|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [XEN v1] xen/Arm: Probe the entry point address of an uImage correctly
Hi, On 08/12/2022 15:24, Michal Orzel wrote: On 08/12/2022 14:51, Julien Grall wrote:Caution: This message originated from an External Source. Use proper caution when opening attachments, clicking links, or responding. Hi, Title extra NIT: I have seen it multiple time and so far refrain to say it. Please use 'arm' rather than 'Arm'. This is for consistency in the way we name the subsystem in the title. On 08/12/2022 12:49, Ayan Kumar Halder wrote:Currently, kernel_uimage_probe() does not set info->zimage.start. As a result, it contains the default value (ie 0). This causes, kernel_zimage_place() to treat the binary (contained within uImage) as position independent executable. Thus, it loads it at an incorrect address. The correct approach would be to read "uimage.ep" and set info->zimage.start. This will ensure that the binary is loaded at the correct address.In non-statically allocated setup, a user doesn't know where the memory for dom0/domU will be allocated. So I think this was correct to ignore the address. In fact, I am worry that... If that's the only reason, then I would rather prefer if we go with zImage for a few reasons: - The zImage protocol has at least some documentation (not perfect) of the expected state of the memory/registers when jumping to the image. - AFAICT libxl is not (yet) supporting uImage. So this means zephyr cannot be loaded on older Xen releases (not great). Note this doesn't mean we should not fix Xen for uImage. That's a good point. It would be best if the behavior is consistent. Cheers, -- Julien Grall
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |