Received: by 2002:a05:7412:31a9:b0:e2:908c:2ebd with SMTP id et41csp3857893rdb; Thu, 14 Sep 2023 05:06:53 -0700 (PDT) X-Google-Smtp-Source: AGHT+IH7WzbFh0eue9+GYjyquVdSMB2cywIZkNSW3AGXsmJztshI9cWpeHrmcFsF1MTbjuIxpDoF X-Received: by 2002:a17:902:e888:b0:1b8:a3a0:d9b3 with SMTP id w8-20020a170902e88800b001b8a3a0d9b3mr4923997plg.47.1694693213266; Thu, 14 Sep 2023 05:06:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1694693213; cv=none; d=google.com; s=arc-20160816; b=E+2/JBZUMUC3W2bNdlsZOpBHE6MYqfoAAIsdZB4AwwpghDBp3/HIuCwdGFSbSECcXy TgUQNyzxtcwM5tqHAHjirqxZaJWlAdC2XCCUYkqFO91cFQBE4mbEHeWKxMSTQMhttIYy cEh4LYHp5ABay8psTB3TmEM1+5stCvckBoGCAGRA6H+YDIvjTL/aVTbIWnWAK6dP6AmU T4eDhBac4JXE6VJaTUmIuQheqouvmVCREsEMuGY5dCHwUDZHrAwutiYbMerQEW/G8VeI AqSTrkNKJy3wsdMq7AdRr1OA02mUzqh0kHpvACozfQt0yvbM3K+SkhD8LRw1AnGFxaiS 4Pzw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:references:to:from:subject:cc :message-id:date:content-transfer-encoding:mime-version :dkim-signature; bh=bY6gpFweje0TA1EJp0zihUndohZBvlaM4pTha0LTaaA=; fh=eEbKZGNiLSpZ5iGXOw4/GV+BtAReb9E7+MJ79WALv9c=; b=HKFZyi4PRKb5Jbir/6TJT3I8+LEuXF/rOYHnIuLOe2OELW/9lTkV+0d+06Pgj5PVfN XAtJVxLRJE9+eR84ci6tOi+5rKuoUabTPeJ4o0aRdH1ed9Ow18G38+8xGnXGGdlE3dLs s8yBCwTyFwgC2sScIWuOFBfU6IFK7BKw8copf3MjU+g3skPTgkEgV1/y8tsZaXjsEswo wegweQjvVd3M2DofpVR3C0FgiqF8S6CWqklPvWb0c6aFLg4XfAuFpsI6P7Ua+b0A2OKt dUYLBjN99eYt4V+1TtRuMKK7ZDkY/bbags8fwkjO1CBwOQHGMoyC/E/2y4WAxf3c5bnv TqrA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=HEzvOyz2; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from snail.vger.email (snail.vger.email. [2620:137:e000::3:7]) by mx.google.com with ESMTPS id y3-20020a17090322c300b001bf2437b876si1599482plg.305.2023.09.14.05.06.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 14 Sep 2023 05:06:53 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) client-ip=2620:137:e000::3:7; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=HEzvOyz2; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id 7A08182F4E0A; Thu, 14 Sep 2023 04:52:35 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237307AbjINLwg (ORCPT + 99 others); Thu, 14 Sep 2023 07:52:36 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46930 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237253AbjINLwf (ORCPT ); Thu, 14 Sep 2023 07:52:35 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 63919CC3; Thu, 14 Sep 2023 04:52:31 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 94620C433C7; Thu, 14 Sep 2023 11:52:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1694692351; bh=bY6gpFweje0TA1EJp0zihUndohZBvlaM4pTha0LTaaA=; h=Date:Cc:Subject:From:To:References:In-Reply-To:From; b=HEzvOyz2sdB5n75zpEBiYGCwixAXK/g6GTkdVt1HW5h1rdduTfBe1HUp3E3NRRfvu /jCvLAk6vSoQoX4WKjqZC15948pOwjOnsN+LfWxeGDgeAc4y1brfY+0DznTwvxBtc9 On4Bbg+brNk6wsD7A1xlikvORVdB49qu2NYVpnbyg4kX9bmBQP7ZyqpiJpBr/QYTn3 Kw8UzLpetjgjWhmOJL+yne6upNiPNS7DDUv9R6sqQv2xT5mTU7HdadcrIYzcA6LIy7 nqXRk7dzZKtbQjg+PdcG8LJFRuCbvug99Y0v6jCiudlEQzr+yJKgEEo9m1C3WVsr1w RqX16PtPLdVwQ== Mime-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=UTF-8 Date: Thu, 14 Sep 2023 14:52:26 +0300 Message-Id: Cc: , , , , , , , , "Baoquan He" , , "Luca Boccassi" Subject: Re: [PATCH 0/1] x86/kexec: UKI support From: "Jarkko Sakkinen" To: "Lennart Poettering" , "Jan Hendrik Farr" X-Mailer: aerc 0.14.0 References: <20230909161851.223627-1-kernel@jfarr.cc> <1d974586-1bf7-42e8-9dae-e5e41a3dbc9f@app.fastmail.com> <9580df76-c143-4077-8a39-b1fcc0ed37bd@app.fastmail.com> In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Thu, 14 Sep 2023 04:52:35 -0700 (PDT) On Thu Sep 14, 2023 at 11:48 AM EEST, Lennart Poettering wrote: > On Di, 12.09.23 17:32, Jan Hendrik Farr (kernel@jfarr.cc) wrote: > > > >> The format itself is rather simple. It's just a PE file (as required > > >> by the UEFI spec) that contains a small stub application in the .tex= t, > > >> .data, etc sections that is responsible for invoking the contained > > >> kernel and initrd with the contained cmdline. The kernel image is > > >> placed into a .kernel section, the initrd into a .initrd section, an= d > > >> the cmdline into a .cmdline section in the PE executable. > > > > > > How does this interact with the existing EFI stub support in > > > linux? > > > > It doesn't. During normal boot of a UKI the stub in it is used > > (systemd-stub, see: > > https://www.freedesktop.org/software/systemd/man/systemd-stub.html). Th= e > > kernel's own EFI stub will still be in the binary inside the .linux > > section but not used. > > That's not true actually, if the inner kernel supports the EFI stub > then systemd-stub actually defers to that for kernel execution. It's > more portable that way, since the kernel then deals with the > differences in the boot protocol on different architectures. OK, that's nice. > Lennart > > -- > Lennart Poettering, Berlin BR, Jarkko