Received: by 2002:a05:6358:a55:b0:ec:fcf4:3ecf with SMTP id 21csp6103254rwb; Wed, 18 Jan 2023 00:52:20 -0800 (PST) X-Google-Smtp-Source: AMrXdXtnMbwC2YLX8h4G/NcjLGMiqLSuqaeWuzKGhSOCXmxsp+s2HIkOWGjX0Nyx0FzKIRH5pXX3 X-Received: by 2002:a05:6a00:4207:b0:580:eeae:e4ba with SMTP id cd7-20020a056a00420700b00580eeaee4bamr7351300pfb.4.1674031940465; Wed, 18 Jan 2023 00:52:20 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1674031940; cv=none; d=google.com; s=arc-20160816; b=kuobFiCFyfjIQu7+bxy5ylBMOs+TBROxkVdSs50fUPMj02lVAKyovWgc1Y/aJAMpnm gA//PEsHul0URq3Jfp1B/NYTNUjXorZeE72QgV1Tb2VruNyWe8Og8LLccjTZyynWod4k okQfMS/YmLOqqwqrVLMTVzncgIlpiVpEwnSeqCMDe4+QeCsjfHoFe1fjt5Vn0wO9ijJm 6ZTas1xOCdLGWlKCMl/vaFper27x+xMpmE9lML13mKPC5OsxN/GXZ/eml8/tnDK0GW4A ic+BJZXcB4xDCxW6FpwQnyrzJq53ud1E9j4CVNNii1eoIS6EvsNqD+yqwNgaYY8cIVsA 0mZQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=wGNzJ+IktHZmNqaFlDrMhWkTURpf/0hrykEij67avpU=; b=PHGnURUmgrWg3xMUQK3l9jrNqbLttaNFgflMxVeH2zFNsiz3SEFdXHbn7f7Ddwfkt7 8ciyiF+u9eIr2LkNsAH+5yUsLZy3/s0j85mc24yXgL5gU3jEGUyJUAHN+dh+cXb0XIxr L1b4GzRsYw0/3PbvqidznlRfNODcS9RZXLPZI19HzCUt0iUbuZou247K3wWXLcHSh45/ wC3iK+i9GXpwf9QQaViGGWhcpVDjwOqmDkltjubTC/gbZ3aNYTkGaN7QcV3EXY59vv9C qCK4XgfcTsVdddPZxdXKcRyKLBDLC3GeVs9x02EjTOMNzN3kHfT0d4FyyjCC6V4mANtz oprQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=N+Vu+VZC; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id s4-20020a056a0008c400b0056c0a9e09f0si37241143pfu.292.2023.01.18.00.52.14; Wed, 18 Jan 2023 00:52:20 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=N+Vu+VZC; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229806AbjARIan (ORCPT + 48 others); Wed, 18 Jan 2023 03:30:43 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43132 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229648AbjARI0o (ORCPT ); Wed, 18 Jan 2023 03:26:44 -0500 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C2D8948A17 for ; Tue, 17 Jan 2023 23:51:48 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1674028307; 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: in-reply-to:in-reply-to:references:references; bh=wGNzJ+IktHZmNqaFlDrMhWkTURpf/0hrykEij67avpU=; b=N+Vu+VZCV7kLXwTzfc541vRGPCwVfUzKxCX2za0qzzgEs9fNsFf3IGRGtEbmzIDXg3FNl5 xgbyvsj9HlPGM9+278SafjafmnytWRsySsRK970QN2ogKG/RA11mbuMna1HOaJowWhT6f/ xuY2Dycu3OQUbW34CecSVmJ7KgdfXl8= Received: from mimecast-mx02.redhat.com (mx3-rdu2.redhat.com [66.187.233.73]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-422-Wibq0QIGMcKNIpc03dw2JQ-1; Wed, 18 Jan 2023 02:51:43 -0500 X-MC-Unique: Wibq0QIGMcKNIpc03dw2JQ-1 Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.rdu2.redhat.com [10.11.54.5]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 041CE38041C0; Wed, 18 Jan 2023 07:51:43 +0000 (UTC) Received: from sirius.home.kraxel.org (unknown [10.39.192.186]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 97CF039D92; Wed, 18 Jan 2023 07:51:42 +0000 (UTC) Received: by sirius.home.kraxel.org (Postfix, from userid 1000) id 025421800091; Wed, 18 Jan 2023 08:51:40 +0100 (CET) Date: Wed, 18 Jan 2023 08:51:40 +0100 From: Gerd Hoffmann To: devel@edk2.groups.io, dionnaglaze@google.com Cc: "Kirill A. Shutemov" , Ard Biesheuvel , "Kirill A. Shutemov" , linux-kernel@vger.kernel.org, linux-efi@vger.kernel.org, x86@kernel.org, jiewen.yao@intel.com, "Min M. Xu" , James Bottomley , Tom Lendacky , Erdem Aktas , Dave Hansen Subject: Re: [edk2-devel] [PATCH v2] x86/efi: Safely enable unaccepted memory in UEFI Message-ID: <20230118075140.6pyszln4ovi2htxk@sirius.home.kraxel.org> References: <20230113212926.2904735-1-dionnaglaze@google.com> <20230113222024.rp2erl54vx3grdbd@box.shutemov.name> <20230116105648.63hsxnmj2juwudmu@sirius.home.kraxel.org> <20230116123057.wvr6rz7y3ubgcm5z@box.shutemov.name> <20230116134246.soworigs56bz5v7o@box.shutemov.name> <20230116231711.cudsnxvnfg6aef3w@box.shutemov.name> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Scanned-By: MIMEDefang 3.1 on 10.11.54.5 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_NONE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, > To Gerd's point, removing "first in edk2, later in linux too" I think > is backwards. We need all users of the protocol to agree that SEV-SNP > and TDX strictly imply unaccepted memory support. Only then can we > remove the protocol from EDK2. Its not backwards. edk2 dropping support first would result in break kernels without support for unaccepted memory. Which is why we wait until such kernels are EOL. Linux dropping support first would result in firmware accepting all memory again. So that isn't a good plan. Thats why linux should support the protocol a bit longer, while firmware versions which expect negotiation happening are still in use. take care, Gerd