Received: by 2002:a05:7412:31a9:b0:e2:908c:2ebd with SMTP id et41csp2850058rdb; Tue, 12 Sep 2023 14:15:15 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGt/A6xqhora27enFQFZw/gR8yC83kMiNPI1bF4vAn14yXRcl1F69qxa3eK543D8h9v6vek X-Received: by 2002:a05:6a00:1d8f:b0:68f:c9f6:f366 with SMTP id z15-20020a056a001d8f00b0068fc9f6f366mr1031902pfw.0.1694553315612; Tue, 12 Sep 2023 14:15:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1694553315; cv=none; d=google.com; s=arc-20160816; b=Lw+1K41iC8y+pyKsN4BurdJ9wVKV1nk/v/kQywqtSjC1S4Q6/2DLiHZ4yeVZ/DT+uD gh5DUxbJfMl3XmRicmePTALl7/M0KF59mxLaxCE+akl9vkInILfIPE7MYNescId/ZL7L mVS/j9Ip0x2gwvTQ8GZXimxP84lsWb+ct1+Ko0O9gcWXq+K2sIxCyFRapfB6BIKLA5JO aUDPJVT98VDqNWx3gurnTFskgY3E1EBFDzQ6/6XqqnG0gpo0sYBo/C4s2OCcQDdW6UwR ngzcxIAsgk2enMIgEypJlOrZVfcOQorMVIniaNeqJ4K6HHa8SVku57576NFyjrKzIWbC /Nog== 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-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:feedback-id:dkim-signature:dkim-signature; bh=zdQ95R9qhufZ8XMZwT5PBjE/0Wn+mksn9sXWFZ7BPjk=; fh=P5xS0o4TtX68a0JMHEDsZegqZgrn4DG/NrYiGZ9MJAI=; b=R066cLSOhqILDEaRA/TsFceHV1K2R2OdAZam6BDpKJJDh2S+Hj+Euc6lGEhR2u2yvL qt0avqRecw6ziEn06dAD0ElB5jyq+JTY2IMjEOOIfds0o1ZSs3PsXuA5Vz6bRT0IdOiT NqAEXaDWAEz2GZx2DzZSSZHwDxyhXwBFdpgL2Mf6uzXl2JQ1S1/3I3D0HCsY/TBcPP91 91qp1ZzrVCwkJqaSZil2F1vRnswy5/5plvTeJwmBI/8rxgZpjVXyioSeTfBktk02kh5G lKRVyRFfeXq9ihiasDnnwnJDADbIFJqYdkj/yQTLa0ySn/Dg3+JMFSXDxmwsGzcWQJki WoAQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@shutemov.name header.s=fm3 header.b=JmheIHwB; dkim=pass header.i=@messagingengine.com header.s=fm1 header.b=xSKVZy3G; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from howler.vger.email (howler.vger.email. [2620:137:e000::3:4]) by mx.google.com with ESMTPS id cr5-20020a056a000f0500b0068a3eaf68d3si8446713pfb.393.2023.09.12.14.15.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 12 Sep 2023 14:15:15 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) client-ip=2620:137:e000::3:4; Authentication-Results: mx.google.com; dkim=pass header.i=@shutemov.name header.s=fm3 header.b=JmheIHwB; dkim=pass header.i=@messagingengine.com header.s=fm1 header.b=xSKVZy3G; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by howler.vger.email (Postfix) with ESMTP id 6C31C8320DE3; Tue, 12 Sep 2023 05:17:37 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235046AbjILMRc (ORCPT + 99 others); Tue, 12 Sep 2023 08:17:32 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60068 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234968AbjILMRa (ORCPT ); Tue, 12 Sep 2023 08:17:30 -0400 Received: from wout3-smtp.messagingengine.com (wout3-smtp.messagingengine.com [64.147.123.19]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D9EE110D2 for ; Tue, 12 Sep 2023 05:17:26 -0700 (PDT) Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.west.internal (Postfix) with ESMTP id DE28032009CA; Tue, 12 Sep 2023 08:17:24 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute1.internal (MEProxy); Tue, 12 Sep 2023 08:17:26 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=shutemov.name; h=cc:cc:content-transfer-encoding:content-type:content-type :date:date:from:from:in-reply-to:in-reply-to:message-id :mime-version:references:reply-to:sender:subject:subject:to:to; s=fm3; t=1694521044; x=1694607444; bh=zdQ95R9qhufZ8XMZwT5PBjE/0 Wn+mksn9sXWFZ7BPjk=; b=JmheIHwBamzDf6JNHD6Dpaf/+uOrhdfwx4YazDGt0 sbfaXavFFjZqPKrvAd+FmMifihjEvzxvHjn8na0Y4CDq6Qbqu5bo6DRkDZbnU3KI KKvVLLZqixbX52Rx14Z616Vn3gUFMCmA/1oicx78JIMKZBAkOheal/8KCo3V/wd3 Jpr4nBq/ykNgEffg4aTphkJ4MPYU1VKhYP6wUjWNxBul6LvF513iR8i4t50zdLOH 2GyOFBW8cRj6so8fRlJH+GOMomYiDdvyFJrOw6lERDUDZK4/2um2//LhRhkdjTgx QJ4WXdXIxhip8yYP3ZBf7mDoJWdhARFVfXsff9j94h6Uw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:content-type:date:date:feedback-id:feedback-id :from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:sender:subject:subject:to:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm1; t= 1694521044; x=1694607444; bh=zdQ95R9qhufZ8XMZwT5PBjE/0Wn+mksn9sX WFZ7BPjk=; b=xSKVZy3Gb/u3sTyQmkykpqotgxKY8k3gqH+0zl7wQi2U54n2i6u 9XprARGpOFtCNQX7hV0Lwf3x0EFXT44iB3tqpYrp4gDdn8NKkyiuRPbocik7nUhD OLfTWb60OnikiPSmBylJbAsD/od6jMK7UzawEr6A5AxqM6OXoTKYcjM70fwhRqBg PvT6sLksrHXcocWbGdx5Q+/cWdXuRwiLK0+gFfiYYZ0An/UZM9DkNm1PZx4pxC8T RMwF46tT4b6F0qUucmjbpIOcPqi+pQpnzAhPZdfyGeKJlEYoTe7VUiLpzfKn5oCc QZwJ1XmyKmrxO+lShna0EiQLZyA+Nk02QNQ== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedviedrudeiiedghedtucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepfffhvfevuffkfhggtggugfgjsehtkedttddttddunecuhfhrohhmpedfmfhi rhhilhhlucetrdcuufhhuhhtvghmohhvfdcuoehkihhrihhllhesshhhuhhtvghmohhvrd hnrghmvgeqnecuggftrfgrthhtvghrnhepteevheelteeggeffjeffjedtveegueegfeet gffhhffgieevgffhueevgfejkeefnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrg hmpehmrghilhhfrhhomhepkhhirhhilhhlsehshhhuthgvmhhovhdrnhgrmhgv X-ME-Proxy: Feedback-ID: ie3994620:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Tue, 12 Sep 2023 08:17:22 -0400 (EDT) Received: by box.shutemov.name (Postfix, from userid 1000) id 8875310940A; Tue, 12 Sep 2023 15:17:19 +0300 (+03) Date: Tue, 12 Sep 2023 15:17:19 +0300 From: "Kirill A. Shutemov" To: Tom Lendacky Cc: Christopher Schramm , linux-kernel@vger.kernel.org, x86@kernel.org, Thomas Gleixner , Ingo Molnar , Borislav Petkov , Dave Hansen , "H. Peter Anvin" , Michael Roth , Joerg Roedel , Dionna Glaze , Andy Lutomirski , Peter Zijlstra Subject: Re: [PATCH v9 5/6] x86/sev: Add SNP-specific unaccepted memory support Message-ID: <20230912121719.6i6ojvbb6ptw2i2l@box.shutemov.name> References: <20230606142637.5171-1-kirill.shutemov@linux.intel.com> <101c3910-a164-4b4c-9474-8743dc6d1199@cschramm.eu> <905c359a-19d6-6cba-4540-92d03b936525@amd.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <905c359a-19d6-6cba-4540-92d03b936525@amd.com> 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 (howler.vger.email [0.0.0.0]); Tue, 12 Sep 2023 05:17:37 -0700 (PDT) On Thu, Sep 07, 2023 at 11:50:15AM -0500, Tom Lendacky wrote: > > From a quick look at > > > > ? [PATCHv14 9/9] x86/tdx: Add unaccepted memory support > > > > it actually seems very similar for INTEL_TDX_GUEST. > > > > Ideally UNACCEPTED_MEMORY would not assume EFI either, but the > > implementation actually clearly does. > > @Kirill, is this something you are interested in having as well? Unaccepted memory is an EFI feature I don't see how UNACCEPTED_MEMORY can be untied from EFI. If there's other (non-EFI) environment that has similar concept, sure we can try to generalize it beyond EFI. TDX guest is only runs with EFI firmware so far, so depending onf EFI and EFI_STUB is fine for TDX> -- Kiryl Shutsemau / Kirill A. Shutemov