Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp506306ybz; Wed, 29 Apr 2020 04:23:56 -0700 (PDT) X-Google-Smtp-Source: APiQypKUE9cUQDfLgs1yxCwvGR2IueFBJgwBXLskA3gdjwufjvFKpcLm5OnBVJ2sfB1wYKQkdgur X-Received: by 2002:a05:6402:1a46:: with SMTP id bf6mr1909538edb.44.1588159435947; Wed, 29 Apr 2020 04:23:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1588159435; cv=none; d=google.com; s=arc-20160816; b=YP4a+c8sBu6DcegvU1C+xCrYh/egexD9w5fZqilUkO7AUmjhTXMFQ2miNl3LgZrMBf yvVgWUVblix2+0vYri7RSpKRzHSFEKl+DmoU46hHUJM+rAnzWkWXqL42tPVZpNF2j+W2 LkBVAy+X0gkTnDH6gaDUS0sOSouWaqkFHEeMMlPCJlCiBI+zT60+kDyfaTEQNLnTu242 /qnsEVF5lnRXkUmBGkXD0VqMQNDF41SpYGMlLo1IIXM4XalIWQbjFoYN002ix2QhKefw yMuV2ns5b8z8nzzHFQ4gmBvmKkYwfBxUhhQfuXSnRggTDdG64Xoh97pWpDp2BbJ43cKc ayjg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=hc2fBa+TYwtajWUw+4ixnFQ14IXH2ZROzvEEYSrgaJc=; b=j/knWvLrIXJgAY4dwzcApfAKJVSkmBtS5HzwUJg30FvgORo9pKCmL6hAzeuQXtxunX DmmJZ/vceup51iT1QLd87/GN/83vVLbZzDWiSDaX7V2kZY+bUp5ndaNb0W7ANcHVR6vm zt4lIaHdb/C5ZWmnFzcKkixdZI09ctBTI0nqL0fc/EpSP5EvYWQHN/t0IX+eK1mT0LAK Z+E6yBEa9x/AEB8gZoVoNAnKnChenCh4H3DckxHucsYBKFOVp7h4lggn+hcPOlvMGf9P OysybCqA+x6j4EZMOf4ozvvpGo/rI0CExi4D2eJmm10AvgZZLqgf5UZZjmLIPUmQpwL8 tvLg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=8bytes.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id lw9si3510841ejb.175.2020.04.29.04.23.22; Wed, 29 Apr 2020 04:23:55 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=8bytes.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726556AbgD2LXS (ORCPT + 99 others); Wed, 29 Apr 2020 07:23:18 -0400 Received: from 8bytes.org ([81.169.241.247]:39474 "EHLO theia.8bytes.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726345AbgD2LXS (ORCPT ); Wed, 29 Apr 2020 07:23:18 -0400 Received: by theia.8bytes.org (Postfix, from userid 1000) id 8EDA22E2; Wed, 29 Apr 2020 13:23:16 +0200 (CEST) Date: Wed, 29 Apr 2020 13:23:15 +0200 From: Joerg Roedel To: Tom Lendacky Cc: linux-kernel@vger.kernel.org, linux-crypto@vger.kernel.org, Herbert Xu , David Miller , Borislav Petkov , Brijesh Singh Subject: Re: [PATCH v2] crypto: ccp: Add support for SEV-ES to the PSP driver Message-ID: <20200429112315.GO21900@8bytes.org> References: <9530369b1f0be211ae2512a1ab9f54281a4420d9.1587491088.git.thomas.lendacky@amd.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <9530369b1f0be211ae2512a1ab9f54281a4420d9.1587491088.git.thomas.lendacky@amd.com> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-crypto-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org On Tue, Apr 21, 2020 at 12:44:49PM -0500, Tom Lendacky wrote: > To provide support for SEV-ES, the hypervisor must provide an area of > memory to the PSP. Once this Trusted Memory Region (TMR) is provided to > the PSP, the contents of this area of memory are no longer available to > the x86. > > Update the PSP driver to allocate a 1MB region for the TMR that is 1MB > aligned and then provide it to the PSP through the SEV INIT command. > > Signed-off-by: Tom Lendacky > > --- > > Changes since v1: > - No need to over-allocate the memory area to obtain the required > alignment when using the page allocator. Reviewed-by: Joerg Roedel