[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH v2 0/2] xen/arm: Support compressed uImages


  • To: <xen-devel@xxxxxxxxxxxxxxxxxxxx>
  • From: Michal Orzel <michal.orzel@xxxxxxx>
  • Date: Thu, 2 Feb 2023 09:49:03 +0100
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 165.204.84.17) smtp.rcpttodomain=lists.xenproject.org smtp.mailfrom=amd.com; dmarc=pass (p=quarantine sp=quarantine pct=100) action=none header.from=amd.com; dkim=none (message not signed); arc=none
  • Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=+6Eo5jZUWqNLVzdk/vGpM1jEX2B1rRX1AXUhmQQCXhs=; b=BwTsKNk9iwvVGlEVpgEifjjfngN2uCjTxArBxM4T622sjhNEnPCX5GIU2wRk+JdBwDgC2hjNv5GGNznsoxI42HiRRrHPHMpPHtFBw8nR81kutNCPoDMvyuRjJqV5XWrsYRPEVw6B6QsoisZnVkf1PliVLlfjtL94I4NB9AgSXmJWJz3ZiL9v/0qlHMYKG1uANC1ntrcxnQz4B0U6OeDT77ChvdZw65/FX5exDHMxVWgedsY/zjIK9/72GXd2DaVAx5QLmrme/QKKtAsux6PbhK55Kpt6A7jjETgd0VKEdppY7WAsSXEtUCH+dOYTj1EiA4MPbT9hm83fUlTFcKmi4w==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=ekFfT8jY++frHPAdzxDLftK0xJsyhat1XmOaBf87Nt3t9DQ4bLlRv1G4sawboGhZDu/Ku4yWem6czwSO3uAdoiqqFFInggJ0QT7aGo6DLwDesGJgzQNnjq6kz/pluPFdc1wPZFu89nrwm1/jsgLQBsi2K3GsODrFTsC2id50pNDfTtq79yF5FASL3cjHuJyc8Im1+kbVvpH2B3dYJTvfOgIVsdw+E45OJlDkjC5fVStYlanON9EmxJROYyuDXAX8fW8lP4hpnI4Pl/EHyO1KLOhk/dMbS8TrjmZaYVT/oLe/Hpf9DtCIMZW7GHmrhL420OLbOBlECJpc0oZAIHF67g==
  • Cc: Michal Orzel <michal.orzel@xxxxxxx>, Stefano Stabellini <sstabellini@xxxxxxxxxx>, Julien Grall <julien@xxxxxxx>, Bertrand Marquis <bertrand.marquis@xxxxxxx>, Volodymyr Babchuk <Volodymyr_Babchuk@xxxxxxxx>, <ayankuma@xxxxxxx>
  • Delivery-date: Thu, 02 Feb 2023 08:49:54 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>

This series adds support for booting gzip compressed images with u-boot header.
Currently Xen does not support such images because we are trying to decompress
the kernel before probing uImage header.

The problem can be solved using 2 different approaches:
1) Split uImage probing into 2 stages. The first stage is called before
   decompression, does the usual probing and sets up correctly module start
   address and size by taking the uImage header size into account. The second
   stage is called after decompression to update the zimage.{kernel_addr,len}.

2) Call the decompression function (modified to take gzip offset) from within
   the uImage probing to avoid the split and to make the function
   self-containing. This way the only case for falling through to try to probe
   other image types is when there is no u-boot header detected.

In this series the second approach is taken that results in a better looking
code.

Michal Orzel (2):
  xen/arm: Move kernel_uimage_probe definition after kernel_decompress
  xen/arm: Add support for booting gzip compressed uImages

 docs/misc/arm/booting.txt |   3 -
 xen/arch/arm/kernel.c     | 225 ++++++++++++++++++++++++--------------
 2 files changed, 144 insertions(+), 84 deletions(-)

-- 
2.25.1




 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.