Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.3 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,NICE_REPLY_A,SPF_HELO_NONE, SPF_PASS,USER_AGENT_SANE_1 autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 8F547C433ED for ; Fri, 7 May 2021 20:27:03 +0000 (UTC) Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 3B5AE6105A for ; Fri, 7 May 2021 20:27:03 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 3B5AE6105A Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=xen-devel-bounces@lists.xenproject.org Received: from list by lists.xenproject.org with outflank-mailman.124128.234276 (Exim 4.92) (envelope-from ) id 1lf73b-00087x-Ks; Fri, 07 May 2021 20:26:43 +0000 X-Outflank-Mailman: Message body and most headers restored to incoming version Received: by outflank-mailman (output) from mailman id 124128.234276; Fri, 07 May 2021 20:26:43 +0000 Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1lf73b-00087q-Hn; Fri, 07 May 2021 20:26:43 +0000 Received: by outflank-mailman (input) for mailman id 124128; Fri, 07 May 2021 20:26:41 +0000 Received: from us1-rack-iad1.inumbo.com ([172.99.69.81]) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1lf73Z-00087k-N2 for xen-devel@lists.xenproject.org; Fri, 07 May 2021 20:26:41 +0000 Received: from mail-pl1-x62f.google.com (unknown [2607:f8b0:4864:20::62f]) by us1-rack-iad1.inumbo.com (Halon) with ESMTPS id 7fdc60c9-78f8-47b2-9a41-cbb64a31350f; Fri, 07 May 2021 20:26:40 +0000 (UTC) Received: by mail-pl1-x62f.google.com with SMTP id b21so5897405plz.0 for ; Fri, 07 May 2021 13:26:40 -0700 (PDT) Received: from ?IPv6:2601:1c2:4f80:d230::1? ([2601:1c2:4f80:d230::1]) by smtp.gmail.com with ESMTPSA id o5sm5415079pgq.58.2021.05.07.13.26.37 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 07 May 2021 13:26:38 -0700 (PDT) X-BeenThere: xen-devel@lists.xenproject.org List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Errors-To: xen-devel-bounces@lists.xenproject.org Precedence: list Sender: "Xen-devel" X-Inumbo-ID: 7fdc60c9-78f8-47b2-9a41-cbb64a31350f DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:cc:references:from:organization:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=t3qc2EvHl2iWZFO6wdqraQk+x5uhiKnWa7rVn4z+toU=; b=DT5Y/jI/dmaJ5ZCtoWGTGV6zQvTZv4sryfDVpZaXxfVO6zGwgSQMnd6f6jJ/HYepTX IByef+IPw7vVDsRgJt4WXY1CpGoNsDU5AtM4G8GfJEBzgf/UasOvlSo7Ct7RPt3+uq2K oFzXGeczBlO610OdHZmAX0dApc+lb9Al1LEtNMhbzxmyftJqZcr3gpia2uvxxuG8GUu0 4kmCe+7YpqBIx3AdCIXR+9ke4B/yPl85OA5KAgu9JshYt2u+h16CjR+JG4CC/h1aMnNa bPeWo3qM4+hYuFWiX+0fiocLFqDWYKwFQ713/HKllBXT0CrcXLQ+z9Po79VIZyWePOxo 5tuA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:organization :message-id:date:user-agent:mime-version:in-reply-to :content-language:content-transfer-encoding; bh=t3qc2EvHl2iWZFO6wdqraQk+x5uhiKnWa7rVn4z+toU=; b=brMhHUSzL4f2KgDb8ZMaRekXpuJ/wl20W+cJUGbqQWD5eiJ1C6Z/9Chs5J2Tt+1qM4 6RZVy4r9OWQ2zqq4rydC4HxBJc9E17cKDX9+GhozMFZWXHx++1qy58TbDY4HSKdpyCQv ikWplkaqAD87vv3dN2mNIbuiQiet10jVAIrqaoqqnQ8rD4DmNTk/C+7rc4IXKKMifqqx s+MqAwiVK2EJkP+fk4SDdzZjsmzMiKIyNKmou8i+1A1gRjU0LZ+mk4V30rJAzcAZG6OJ kbLT/g9Liyz6RpzzEvePC12/hS213zs4HnH0A3XN94lMrtYqukYQgplyM9rYUg09PdXU JF0A== X-Gm-Message-State: AOAM532gP8GoS0RkPK4ZTSs2QyR3EweW/Pd8/I5ABOrX0zU7KoJ3vFHl INc1KPmia3O3fpM6yDI8Cbc2n1d5eSV+HD0V X-Google-Smtp-Source: ABdhPJzbVW31Ad/zoYaoV5MLgGRT4Cc0nAr0mgRyM/bxkIkRjn0/w85KjIBYtvVUsThlY5b7fXncLA== X-Received: by 2002:a17:902:b68c:b029:e6:bb9f:7577 with SMTP id c12-20020a170902b68cb02900e6bb9f7577mr11794708pls.0.1620419199049; Fri, 07 May 2021 13:26:39 -0700 (PDT) Subject: Re: [PATCH v3 2/5] xen/x86: manually build xen.mb.efi binary To: Jan Beulich Cc: Daniel Kiper , Andrew Cooper , George Dunlap , Ian Jackson , Julien Grall , Stefano Stabellini , Wei Liu , Xen-devel References: <28d5536a2f7691e8f79d55f1470fa89ce4fae93d.1611273359.git.bobbyeshleman@gmail.com> <3c621726-31c4-6a79-a020-88c59644111b@suse.com> From: Bob Eshleman Organization: Vates SAS Message-ID: <74ea104d-3826-d80d-3af5-f444d065c73f@gmail.com> Date: Fri, 7 May 2021 13:26:37 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.6.1 MIME-Version: 1.0 In-Reply-To: <3c621726-31c4-6a79-a020-88c59644111b@suse.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Jan, I mulled over your feedback and I think I can now see your reservations with this series. I'm wondering if the long-term goal of using the xen mb1/mb2 binary as the basis for creating a EFI loadable mb1/mb2 payload is actually the wrong approach. After all, I do not see a feasible way to maintain the comprehensive sectioning, the proper reloc table, the proper debug directory, etc... that is found in the current xen.efi using the approach in this series, which would mean maintaining a third binary forever. What is your intuition WRT the idea that instead of trying add a PE/COFF hdr in front of Xen's mb2 bin, we instead go the route of introducing valid mb2 entry points into xen.efi? At the end of the day, our goal is just to have a binary that meets these requirements: * Is verifiable with shim (PE/COFF) * May boot on BIOS platforms via grub2 * May boot on EFI platforms via grub2 or EFI loader Thanks -- Bobby Eshleman SE at Vates SAS