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 X-Spam-Level: X-Spam-Status: No, score=-5.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS 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 78DA2C4338F for ; Fri, 13 Aug 2021 14:56:54 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id E32BB61042 for ; Fri, 13 Aug 2021 14:56:53 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org E32BB61042 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=suse.de Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=kvack.org Received: by kanga.kvack.org (Postfix) id 734618D0003; Fri, 13 Aug 2021 10:56:53 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 6E5128D0001; Fri, 13 Aug 2021 10:56:53 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 5F9E88D0003; Fri, 13 Aug 2021 10:56:53 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0157.hostedemail.com [216.40.44.157]) by kanga.kvack.org (Postfix) with ESMTP id 430518D0001 for ; Fri, 13 Aug 2021 10:56:53 -0400 (EDT) Received: from smtpin12.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay04.hostedemail.com (Postfix) with ESMTP id D7F811C98B for ; Fri, 13 Aug 2021 14:56:52 +0000 (UTC) X-FDA: 78470359464.12.4532A20 Received: from smtp-out1.suse.de (smtp-out1.suse.de [195.135.220.28]) by imf30.hostedemail.com (Postfix) with ESMTP id 84EA6E001982 for ; Fri, 13 Aug 2021 14:56:52 +0000 (UTC) Received: from imap1.suse-dmz.suse.de (imap1.suse-dmz.suse.de [192.168.254.73]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by smtp-out1.suse.de (Postfix) with ESMTPS id 3D0162230F; Fri, 13 Aug 2021 14:56:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1628866611; h=from:from:reply-to: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=slEidIfXYzT+MiWaqkcgYapT9R1n6p0OzdWrLkn7fh8=; b=tBfPzpWLMjXvhI46J2x162VjLl+kTSZN4cLJ9uYOPJk5FPcwdodpsOWl1oj/jonBLpysSj NR785d26AY9tuAeectH8uJiys1iH6W8B7sdJarOSUie381hL/jI1Mo6kyInegunIy4rmFy yupU5fDVOjnbr1lpJzYzoSukAEH4LNk= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1628866611; h=from:from:reply-to: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=slEidIfXYzT+MiWaqkcgYapT9R1n6p0OzdWrLkn7fh8=; b=oCXQ5TfJrh/zLZ4Sfhl9AAyIFKDObOf5SItYpDdLewpJA3EjX5vJhs4ZQ4s71zir3VL2HO yOPDAJ6/VvFmu5Bg== Received: from imap1.suse-dmz.suse.de (imap1.suse-dmz.suse.de [192.168.254.73]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by imap1.suse-dmz.suse.de (Postfix) with ESMTPS id 7F7B613806; Fri, 13 Aug 2021 14:56:50 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap1.suse-dmz.suse.de with ESMTPSA id gNxDHTKIFmEeEgAAGKfGzw (envelope-from ); Fri, 13 Aug 2021 14:56:50 +0000 Date: Fri, 13 Aug 2021 16:56:48 +0200 From: Joerg Roedel To: "Kirill A. Shutemov" Cc: Andi Kleen , Borislav Petkov , Andy Lutomirski , Sean Christopherson , Andrew Morton , Kuppuswamy Sathyanarayanan , David Rientjes , Vlastimil Babka , Tom Lendacky , Thomas Gleixner , Peter Zijlstra , Paolo Bonzini , Ingo Molnar , Varad Gautam , Dario Faggioli , x86@kernel.org, linux-mm@kvack.org, linux-coco@lists.linux.dev, linux-kernel@vger.kernel.org, "Kirill A. Shutemov" Subject: Re: [PATCH 0/5] x86: Impplement support for unaccepted memory Message-ID: References: <20210810062626.1012-1-kirill.shutemov@linux.intel.com> <20210812101054.5y6oufwwnisebuyy@box.shutemov.name> <20210812202251.hn3c2xykm2l73avu@box.shutemov.name> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210812202251.hn3c2xykm2l73avu@box.shutemov.name> X-Rspamd-Server: rspam03 X-Rspamd-Queue-Id: 84EA6E001982 X-Stat-Signature: 61esuu6c4u9bp4dpw16dwtqb7thcy3ck Authentication-Results: imf30.hostedemail.com; dkim=pass header.d=suse.de header.s=susede2_rsa header.b=tBfPzpWL; dkim=pass header.d=suse.de header.s=susede2_ed25519 header.b=oCXQ5TfJ; dmarc=pass (policy=none) header.from=suse.de; spf=pass (imf30.hostedemail.com: domain of jroedel@suse.de designates 195.135.220.28 as permitted sender) smtp.mailfrom=jroedel@suse.de X-HE-Tag: 1628866612-192746 X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: On Thu, Aug 12, 2021 at 11:22:51PM +0300, Kirill A. Shutemov wrote: > On Thu, Aug 12, 2021 at 12:33:11PM -0700, Andi Kleen wrote: > > I think Joerg's question was if TDX has a single ABI for all hypervisors. > > The GHCI specification supports both hypervisor specific and hypervisor > > agnostic calls. But these basic operations like MapGPA are all hypervisor > > agnostic. The only differences would be in the existing hypervisor specific > > PV code. > > My point was that TDX and SEV-SNP going to be different and we need a way > to hook the right protocol for each. Yeah, okay, thanks for the clarification. My misunderstanding was that there could be per-hypervisor contract on what memory is pre-accepted and what Linux is responsible for. Thanks, Joerg