[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 0/2] xen/arm: Support compressed uImages
- To: <xen-devel@xxxxxxxxxxxxxxxxxxxx>
- From: Michal Orzel <michal.orzel@xxxxxxx>
- Date: Tue, 31 Jan 2023 16:13:52 +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=7N3qgUPJKYn/L7cjGhSZmyThGymjVPPS9OBhdt5y28Q=; b=Pg0sm5+MBd9Mdb3ajk9LGH2gEGHxSqwW9DPnertEJu5JDNo4DPE4pR+Bnwwx2jJ/SeoPTTGIVlxQwGjkDda6WOAoVyFk1ICjMFDK/tOFGSloXc6O/8FiTpynNn4/unnPWi2JirHUAJKTseFxo6sGYMLiZlemtOTPmtAEwjUEUMf0gNZ4MjT0pBQ5a7pfjitN9hgHIzJVVh07eig6MTaESmcQ55hmBEc4MiTCnYqwd8FwrzIg+E1MkWWwWiQgorx5/fNtDecxjxuznyJebYXXNK05243bweEZI/VzdwaJ5VaH+1jBs2kgEIf6xOIk7EwLtMkz7+YuOHn/Wo5aoQezOg==
- Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=UYii56VkzqS28+UZJPaiPTJ3BV7q/dBkvxecgbeT+maRwUc7TL66wOCBWEikEybUhLAVkSCNYRtBcUG4sh32RIMRyUH1tsDMMibRU+CKDNOqtJfCrMvLi7l6BMOuoqxrK6xj78OIwbXh5kQQsvTYep0JD2Dypod6FzSfhOK9gULZb5dzvhEVnWYqh8WVR/SsYMZFS4IVuHe9xcHs4Ovml5PD6dQf4c2+tskbqUJ3FJasLLKQ7fFiKl795328WcvjUtI/tzzMnBDsUvM9P1UmdDMZR62SaG5OzPaPXBesnb3W2brTfi3vtqJr6i1ZkybmwpO8dCZzEUayONj6K/QBxg==
- 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: Tue, 31 Jan 2023 15:14:34 +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 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 | 197 +++++++++++++++++++++++---------------
2 files changed, 118 insertions(+), 82 deletions(-)
--
2.25.1
|