Received: by 2002:a05:6a10:8a4d:0:0:0:0 with SMTP id dn13csp863743pxb; Fri, 13 Aug 2021 08:01:15 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwrcLFmvtuR1pPlJsv33AulNEdqGTBtLIveMYBJ31Knw5G4fn/yPhy9wWpVb8rtqifreaBm X-Received: by 2002:a17:907:9602:: with SMTP id gb2mr2953477ejc.119.1628866875312; Fri, 13 Aug 2021 08:01:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1628866875; cv=none; d=google.com; s=arc-20160816; b=zbvZLPIhSU1eU29nQ1I32JJ5nIHCia+5r0d0uHTUjfxMxoStCs2GU53MbEfKxmoVUm wo9QsfhfC4KwNS8i4I5sGGkqJK9Zns6kfBoLwlbMz8IR8oXqvD/jAu4XIODSIapWr4kU zXAtL7e5DOgej91la4Hh++ZpzpChAMzMh6a6b9sjoysyb0MSv7TDKtF+FJxd/2ihAoGR Gp4+1GmziUFDqPM5HAJz+XKsGVUtDPhUzwDO/Y2P0nLTtLZX33xSMvJ+11Zbonkfk5ui GQOCtoQTgWzqhHo881SXtYGsEw9LLrNMqXhUpx/qvPNxFOx3Ud/vgH023Zn1/oJXZjks Vg3g== 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 :dkim-signature; bh=slEidIfXYzT+MiWaqkcgYapT9R1n6p0OzdWrLkn7fh8=; b=CZRFE/tJMs3LvU/RQGi4XLPOm5uuHoGfvdH97fjf2by4OaUmxKKmjc0vHCgPmB5xHT LtKiw1Ai7FgP0VdtB5pC4ua36uwSgrf6eOUM9Z8gNtdEurL0jyq1XcO9tjMZHw+qkLKT tO1nub8el803+jSqPuaiESORQkgqIepjriSio+JRk62KlM9e/Kpz6zEjdtJKbycK0bu/ /CIxMLZ748r1v6uVUWKsDaYBDwrEMsBB9AH8qF/6OkxE6ACIDDHsrmTUC46GA4hJmgyP 9IBUDUI4eEzi2YunAFFWSfWsrwhuECLYoVEtTH492/d2UWhAc8Xj24cAc8+wzS1v1q2s szxg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=tBfPzpWL; dkim=neutral (no key) header.i=@suse.de header.b=oCXQ5TfJ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=suse.de Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id ds15si1583201ejc.680.2021.08.13.08.00.50; Fri, 13 Aug 2021 08:01:15 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=tBfPzpWL; dkim=neutral (no key) header.i=@suse.de header.b=oCXQ5TfJ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=suse.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240916AbhHMO5U (ORCPT + 99 others); Fri, 13 Aug 2021 10:57:20 -0400 Received: from smtp-out1.suse.de ([195.135.220.28]:44268 "EHLO smtp-out1.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240198AbhHMO5T (ORCPT ); Fri, 13 Aug 2021 10:57:19 -0400 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> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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