Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 18D48C001DE for ; Mon, 24 Jul 2023 02:22:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:Cc :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=0zlYLxeQ9kogPzf028/bnl3XH1Z1frhuoxosrlgIrvA=; b=u0RlFCYFTKUDLJ gpex0eDYwDrMUaCuLOJqbD07qhKU3QKHyftbb804z0g4fWfv4Lkv7d/CpHHASKwVEpvlmCDN/NZna Do4ZzXsSqE36Y9E+nOY4p1YKEn7/P7lPNGWe3s1yfXLCl64iaoembplKL8VW5r5TBHmyJtEbGT3q6 YVYQ1zUkOVJq+qBbiCYPFZqav2C0oZqiCE5sGOfVNvjLP07Ib5lUwIXj8cGwlITzfOWANkN/Njr+v KfpNZnPVYm+LXWHYMrJ/2HpVRnynKcYiqNaP6mfmnbMhRfegmHfhc3z+tNeoziN12NEHZmzEjjwef ubrexrpn+fGRr6I+2ChQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qNlD5-002WIm-1c; Mon, 24 Jul 2023 02:22:07 +0000 Received: from us-smtp-delivery-124.mimecast.com ([170.10.133.124]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qNlD1-002WHv-1P for kexec@lists.infradead.org; Mon, 24 Jul 2023 02:22:04 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1690165321; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=q8F75QmeeV1QCYtMvnip+rV64OfMKqDtSpGHxTJETgg=; b=DNgGWqX337FcCILbxwivsLi5EQSpA8VPRjU8GfC/Br0++cq6sHlaucm7NPj5n/upLZOXua q///tp1Z0qfm2leZo6lmmjuoUrvOCC2WH0fOm2rBZT9ZINHuYMZ7nrO12rH6wgQWNFTiZm vxBHxt21lP7nezO0SdkWiWmchvEQ5bQ= Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-296-N4pR6MRmMAWU6Ro6t3zNRg-1; Sun, 23 Jul 2023 22:21:58 -0400 X-MC-Unique: N4pR6MRmMAWU6Ro6t3zNRg-1 Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.rdu2.redhat.com [10.11.54.1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 95EDE185A7B0; Mon, 24 Jul 2023 02:21:57 +0000 (UTC) Received: from piliu.users.ipa.redhat.com (ovpn-8-19.pek2.redhat.com [10.72.8.19]) by smtp.corp.redhat.com (Postfix) with ESMTP id E99A140C2063; Mon, 24 Jul 2023 02:21:53 +0000 (UTC) From: Pingfan Liu To: kexec@lists.infradead.org Cc: Pingfan Liu , Dave Young , horms@verge.net.au, ardb@kernel.org, jeremy.linton@arm.com Subject: [PATCHv6 0/5] arm64: zboot support Date: Mon, 24 Jul 2023 10:21:37 +0800 Message-Id: <20230724022142.6425-1-piliu@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.1 on 10.11.54.1 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230723_192203_571403_3D29F632 X-CRM114-Status: GOOD ( 12.18 ) X-BeenThere: kexec@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "kexec" Errors-To: kexec-bounces+kexec=archiver.kernel.org@lists.infradead.org As more complicated capsule kernel format occurs like zboot, where the compressed kernel is stored as a payload. The straight forward decompression can not meet the demand. As the first step, on aarch64, reading in the kernel file in a probe method and decide how to unfold the content by the method itself. This series consists of two parts [1/5], simplify the current aarch64 image probe [2-5/5], return the kernel fd by the image load interface, and let the handling of zboot image built on it. (Thanks for Dave Young, who contributes the original idea and the code) To ease the review, a branch is accessable at https://github.com/pfliu/kexec-tools.git branch zbootV6 To: kexec@lists.infradead.org Cc: Dave Young Cc: horms@verge.net.au Cc: ardb@kernel.org Cc: jeremy.linton@arm.com --- v5 -> v6 introduce kexec_info.kernel_fd and return the fd through image load interface. Jeremy Linton (3): kexec/zboot: Add arch independent zboot support arm64: Add ZBOOT PE containing compressed image support arm64: Hook up the ZBOOT support as vmlinuz Pingfan Liu (2): kexec/arm64: Simplify the code for zImage kexec: Introduce a member kernel_fd in kexec_info include/kexec-pe-zboot.h | 15 ++ kexec/Makefile | 1 + kexec/arch/arm64/Makefile | 2 +- kexec/arch/arm64/image-header.h | 1 + kexec/arch/arm64/kexec-arm64.c | 2 +- kexec/arch/arm64/kexec-arm64.h | 8 +- kexec/arch/arm64/kexec-image-arm64.c | 2 +- kexec/arch/arm64/kexec-vmlinuz-arm64.c | 110 ++++++++++++ kexec/arch/arm64/kexec-zImage-arm64.c | 226 ------------------------- kexec/kexec-pe-zboot.c | 131 ++++++++++++++ kexec/kexec.c | 50 ++++-- kexec/kexec.h | 1 + 12 files changed, 298 insertions(+), 251 deletions(-) create mode 100644 include/kexec-pe-zboot.h create mode 100644 kexec/arch/arm64/kexec-vmlinuz-arm64.c delete mode 100644 kexec/arch/arm64/kexec-zImage-arm64.c create mode 100644 kexec/kexec-pe-zboot.c -- 2.31.1 _______________________________________________ kexec mailing list kexec@lists.infradead.org http://lists.infradead.org/mailman/listinfo/kexec