From mboxrd@z Thu Jan 1 00:00:00 1970 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 4EDFCCA0EC3 for ; Tue, 12 Sep 2023 12:17:31 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235065AbjILMRd (ORCPT ); Tue, 12 Sep 2023 08:17:33 -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 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