From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-lf1-f49.google.com (mail-lf1-f49.google.com [209.85.167.49]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id A412972 for ; Thu, 12 Aug 2021 20:22:40 +0000 (UTC) Received: by mail-lf1-f49.google.com with SMTP id x27so15702878lfu.5 for ; Thu, 12 Aug 2021 13:22:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=shutemov-name.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=lD9P9nE94kR+CL+KH4TKKi2qyNFlxYCyV9udAgSMPuk=; b=xaNDyhy88byYnIIk4BDvaJifaQ3BFM2799N3xhmZu3XCpJXK6fGOG2OL1+ne0TARRU 9vf8APrv9QSkUtaBzwzgGbkVKiwbR7Q+5QemRBksc5mujL2R1IY2OPoJVVtRxFIgDsDy mlkgIXH8kLQ7pqfv1IEaURoQXtPQIqSqw/6vXZbYABgivFdUehFYxo6gLlyGrsq5gTmu QreyA4Dza+o8Qo0kEmhaH62oopN6QWlqRmZALFkzU3J0NjVgKTqCemkJgR/Q1d1TCf7R 9gSGa2MV6lC2gh6f6aqQbjymZ5CDWiJdGu6ux4U1C2d15ZhMhqBFAIkjzqkpR1QIlbQa YUyg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=lD9P9nE94kR+CL+KH4TKKi2qyNFlxYCyV9udAgSMPuk=; b=eZsFaFxhPYluFo9Oj3+52IobbWSNTrlLhfAmIEXoCnA6x1UY83lOymk0Qosly5jbPv wcA/KVkYDv0NEci+8Jle0x3VE01J0xoYm6vRisx2W1IY27XUZLmayM++a0rdZB/qF0Vb 4sQyHL0pmbknLRaIQfBBRn61aJa+9xEIbLVKLpN0lfQVcjlTGPXTi7ErrQaQwsGkTVyM dcldXuiI8PBUO5y0Ge8dr60rSsPYRh7VMOacYJ4UJ1cXUs19X575aCI/s7QNJ2r75sn4 1W4VSVJ0cO5goIpJbQqI64MqgPbaoCr3Iy6tvg0XNl8gggWVXSvse7pjg2d6cy9KnVbS FzNQ== X-Gm-Message-State: AOAM5325pQzf0gHvsd87RTggoTnGr0Q4FXovG34rTC9V5cjNhA2vsa8/ 61KKWa1rIVrjqpipfglBAvTrLg== X-Google-Smtp-Source: ABdhPJxeBkiE8ikw29XNB8mMQnkymNKk4mH63Wj2JCylomBb7HKCsIjevdUDN654nitfIPtyjCkmrw== X-Received: by 2002:ac2:5e76:: with SMTP id a22mr3640177lfr.500.1628799758664; Thu, 12 Aug 2021 13:22:38 -0700 (PDT) Received: from box.localdomain ([86.57.175.117]) by smtp.gmail.com with ESMTPSA id s14sm358017lfe.268.2021.08.12.13.22.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 12 Aug 2021 13:22:37 -0700 (PDT) Received: by box.localdomain (Postfix, from userid 1000) id 72DF4102BEE; Thu, 12 Aug 2021 23:22:51 +0300 (+03) Date: Thu, 12 Aug 2021 23:22:51 +0300 From: "Kirill A. Shutemov" To: Andi Kleen Cc: Joerg Roedel , 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: <20210812202251.hn3c2xykm2l73avu@box.shutemov.name> References: <20210810062626.1012-1-kirill.shutemov@linux.intel.com> <20210812101054.5y6oufwwnisebuyy@box.shutemov.name> Precedence: bulk X-Mailing-List: linux-coco@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: On Thu, Aug 12, 2021 at 12:33:11PM -0700, Andi Kleen wrote: > > 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. My point was that TDX and SEV-SNP going to be different and we need a way to hook the right protocol for each. -- Kirill A. Shutemov