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.3 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,NICE_REPLY_A,SPF_HELO_NONE, SPF_PASS,USER_AGENT_SANE_1 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 66133C4320A for ; Thu, 12 Aug 2021 19:33:30 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id E9EB66109F for ; Thu, 12 Aug 2021 19:33:29 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org E9EB66109F Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=linux.intel.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=kvack.org Received: by kanga.kvack.org (Postfix) id 3EB198D0002; Thu, 12 Aug 2021 15:33:29 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 39B858D0001; Thu, 12 Aug 2021 15:33:29 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 28A2B8D0002; Thu, 12 Aug 2021 15:33:29 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0079.hostedemail.com [216.40.44.79]) by kanga.kvack.org (Postfix) with ESMTP id 0BEE78D0001 for ; Thu, 12 Aug 2021 15:33:29 -0400 (EDT) Received: from smtpin28.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay04.hostedemail.com (Postfix) with ESMTP id 7F93321234 for ; Thu, 12 Aug 2021 19:33:28 +0000 (UTC) X-FDA: 78467427696.28.8D51B16 Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by imf28.hostedemail.com (Postfix) with ESMTP id 903879004EB2 for ; Thu, 12 Aug 2021 19:33:27 +0000 (UTC) X-IronPort-AV: E=McAfee;i="6200,9189,10074"; a="237471953" X-IronPort-AV: E=Sophos;i="5.84,316,1620716400"; d="scan'208";a="237471953" Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by fmsmga101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 12 Aug 2021 12:33:26 -0700 X-IronPort-AV: E=Sophos;i="5.84,316,1620716400"; d="scan'208";a="517595794" Received: from akleen-mobl1.amr.corp.intel.com (HELO [10.255.231.194]) ([10.255.231.194]) by fmsmga003-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 12 Aug 2021 12:33:25 -0700 Subject: Re: [PATCH 0/5] x86: Impplement support for unaccepted memory To: "Kirill A. Shutemov" , Joerg Roedel Cc: 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" References: <20210810062626.1012-1-kirill.shutemov@linux.intel.com> <20210812101054.5y6oufwwnisebuyy@box.shutemov.name> From: Andi Kleen Message-ID: Date: Thu, 12 Aug 2021 12:33:11 -0700 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.13.0 MIME-Version: 1.0 In-Reply-To: <20210812101054.5y6oufwwnisebuyy@box.shutemov.name> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US Authentication-Results: imf28.hostedemail.com; dkim=none; spf=none (imf28.hostedemail.com: domain of ak@linux.intel.com has no SPF policy when checking 192.55.52.88) smtp.mailfrom=ak@linux.intel.com; dmarc=fail reason="No valid SPF, No valid DKIM" header.from=intel.com (policy=none) X-Rspamd-Server: rspam06 X-Rspamd-Queue-Id: 903879004EB2 X-Stat-Signature: b5pndp1o3uk9hniyhnpkrcjxosmyx9px X-HE-Tag: 1628796807-707058 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 8/12/2021 3:10 AM, Kirill A. Shutemov wrote: > On Thu, Aug 12, 2021 at 10:23:24AM +0200, Joerg Roedel wrote: >> Hi Kirill, >> >> On Tue, Aug 10, 2021 at 09:26:21AM +0300, Kirill A. Shutemov wrote: >>> Accepting happens via a protocol specific for the Virtrual Machine >>> platform. >> That sentence bothers me a bit. Can you explain what it VMM specific in >> the acceptance protocol? > For TDX we have a signle MapGPA hypercall to VMM plus TDAcceptPage for > every accepted page to TDX Module. SEV-SNP has to something similar. 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. -Andi