summaryrefslogtreecommitdiffstats
path: root/target/arm/cpu.h
diff options
context:
space:
mode:
authorPeter Maydell2019-05-16 16:47:33 +0200
committerPeter Maydell2019-06-17 16:11:18 +0200
commit5e6dbe1e8cbbe4b6f7407dda2c021cbe80a8ec02 (patch)
treefe60ff3588f74d9367924ea6c2c0b904e8a7c4d2 /target/arm/cpu.h
parenthw/arm/boot: Avoid placing the initrd on top of the kernel (diff)
downloadqemu-5e6dbe1e8cbbe4b6f7407dda2c021cbe80a8ec02.tar.gz
qemu-5e6dbe1e8cbbe4b6f7407dda2c021cbe80a8ec02.tar.xz
qemu-5e6dbe1e8cbbe4b6f7407dda2c021cbe80a8ec02.zip
hw/arm/boot: Honour image size field in AArch64 Image format kernels
Since Linux v3.17, the kernel's Image header includes a field image_size, which gives the total size of the kernel including unpopulated data sections such as the BSS). If this is present, then return it from load_aarch64_image() as the true size of the kernel rather than just using the size of the Image file itself. This allows the code which calculates where to put the initrd to avoid putting it in the kernel's BSS area. This means that we should be able to reliably load kernel images which are larger than 128MB without accidentally putting the initrd or dtb in locations that clash with the kernel itself. Fixes: https://bugs.launchpad.net/qemu/+bug/1823998 Signed-off-by: Peter Maydell <peter.maydell@linaro.org> Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Reviewed-by: Alex Bennée <alex.bennee@linaro.org> Tested-by: Mark Rutland <mark.rutland@arm.com> Message-id: 20190516144733.32399-5-peter.maydell@linaro.org
Diffstat (limited to 'target/arm/cpu.h')
0 files changed, 0 insertions, 0 deletions