summary refs log tree commit diff stats
path: root/include/hw/qdev-core.h
diff options
context:
space:
mode:
authorRichard W.M. Jones <rjones@redhat.com>2014-08-19 18:56:28 +0100
committerPeter Maydell <peter.maydell@linaro.org>2014-08-19 19:02:40 +0100
commit6f5d3cbe8892367026526a7deed0ceecc700a7ad (patch)
tree18357591448ac1f95e1482f3c3ef3e63117e7a6e /include/hw/qdev-core.h
parent235e74afcb85285a8e35e75f0cb6e6811267bb75 (diff)
downloadfocaccia-qemu-6f5d3cbe8892367026526a7deed0ceecc700a7ad.tar.gz
focaccia-qemu-6f5d3cbe8892367026526a7deed0ceecc700a7ad.zip
aarch64: Allow -kernel option to take a gzip-compressed kernel.
On aarch64 it is the bootloader's job to uncompress the kernel.  UEFI
and u-boot bootloaders do this automatically when the kernel is
gzip-compressed.

However the qemu -kernel option does not do this.  The following
command does not work:

  qemu-system-aarch64 [...] -kernel /boot/vmlinuz

because it tries to execute the gzip-compressed data.

This commit lets gzip-compressed kernels be uncompressed
transparently.

Currently this is only done when emulating aarch64.

Signed-off-by: Richard W.M. Jones <rjones@redhat.com>
Reviewed-by: Alex Bennée <alex.bennee@linaro.org>
Reviewed-by: Peter Crosthwaite <peter.crosthwaite@xilinx.com>
Reviewed-by: Alex Bennée <alex.bennee@linaro.org>
Message-id: 1407831259-2115-3-git-send-email-rjones@redhat.com
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Diffstat (limited to 'include/hw/qdev-core.h')
0 files changed, 0 insertions, 0 deletions