|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-devel] [PATCH v4] xen: arm: Update arm64 image header
On 29/06/2016 12:08, Dirk Behme wrote: On 29.06.2016 12:32, Julien Grall wrote:Hi Dirk, On 27/06/2016 08:53, Dirk Behme wrote: Please read my previous e-mail, I gave an explanation why it breaks on UEFI/bootwrapper. To summarize, the field 'image_size' is the total size of the kernel in memory BSS included. The section BSS is not included in the blob because it is all zeros and it is a waste of disk space. (XEN) Loading kernel from boot module @ 0000000080080000(XEN) Error: Kernel Image size: 16482304 bytes > bootmodule size: 15925760bytes (XEN) The field 'size' does not match the size of blob!For both UEFI and Bootwrapper, the bootmodule is created automatically and the size of the Image on the disk (e.g BSS not included) is used. Yes, this check is there just to avoid the silent failing I observed. If we have the error message, as I have implemented it, it would have saved some debugging time for me ;) So it's not about using the size for real loading, its just used for checking. A short term workaround would be to convert the ERR into WARN and remove the return. This warning will always be printed for all the platform where the size is retrieved from the firmware (e.g UEFI, GRUB). As mentioned in my previous mail, we should not copy more than the size of the bootmodule. Otherwise we may copy sensitive data in DOM0. It's somehow my feeling that there might be an issue regarding the sizes if the warning is there. No, there is no issue. We misinterpreted the meaning of the field 'image_size'. In the case of Xen, the size should only be used for placing the module. Regards, -- Julien Grall _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxx http://lists.xen.org/xen-devel
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |