Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp1436291ybz; Wed, 29 Apr 2020 22:32:08 -0700 (PDT) X-Google-Smtp-Source: APiQypKoxrYEVrf9EeXOg+5aaJnwmUWbB5zMjLPuMQGwSjLbuTgiPlDtVVE2g8F8B2HPuZfNFnWU X-Received: by 2002:a17:907:a89:: with SMTP id by9mr1068653ejc.289.1588224728215; Wed, 29 Apr 2020 22:32:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1588224728; cv=none; d=google.com; s=arc-20160816; b=eSXi/5IFVlSmBtbnCRXRjemckUUiwiYEXs71TysbwvQwcrGX0UwTHsFSTey7i4bz1y DghtU9aLBCIY9HpeZBBevoUKx50VR+CHJr2LDh1AOAqJeY2AI2ent2zFQF1W24uABvQv 1to5fjJRTSQwopu8RjrQHmbW9OEThHqYKD3hSflqG3J3M756IdhpVBkBZGmAiz3I/o5l 2biShmU+K6YX8X9He8wGR1ASia/M8P9NdHBE5253haZ3P4/DXJ3GWCUw99ijqdEo1sEx WxoAZqo/TWqJQ6/yb63eSMUpBqprtonnWYcBsx0DiyRa1H+X01DFvurSNVhiAF7gSxST 2Daw== 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=Nts3izBAHKHhgkvGMPg/DQegstYiPixVoR8zXpcmpvQ=; b=u8W3l6ByiSv+xvEkFKPxYEbo+B1zm/h8qd9R6GV1zE9kX23dg5vTgjT8SAobeDGfm/ A3k4Ue0zzhBlMRW91VTFI87atxtBFSYlaV+Lor22CROr55GvolX0Rlg2txXxTEuty5b9 Nsialv6JewsSiNs/wvWQNzLfMaDOYO9rWE00+TWC+UyR85fmU1w4PT7T0EmTL5DV9lNY 9V3oIGfdadmfGcDPmtUq88irUE62brcgrQdlbMXO+seAx9Nsrby2Js2Lpn9X2qje7jy3 2tR6c2YbGQEkPtBCEY6yccEBsaYSPVJ+gvAlNX+QSKIFnU2lSkTjFcVl1wRH01M3umbf f0zQ== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id ov7si5038521ejb.489.2020.04.29.22.31.45; Wed, 29 Apr 2020 22:32:08 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726395AbgD3Fan (ORCPT + 99 others); Thu, 30 Apr 2020 01:30:43 -0400 Received: from helcar.hmeau.com ([216.24.177.18]:60318 "EHLO fornost.hmeau.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726378AbgD3Fan (ORCPT ); Thu, 30 Apr 2020 01:30:43 -0400 Received: from gwarestrin.me.apana.org.au ([192.168.0.7] helo=gwarestrin.arnor.me.apana.org.au) by fornost.hmeau.com with smtp (Exim 4.89 #2 (Debian)) id 1jU1kq-0005J4-63; Thu, 30 Apr 2020 15:29:01 +1000 Received: by gwarestrin.arnor.me.apana.org.au (sSMTP sendmail emulation); Thu, 30 Apr 2020 15:29:53 +1000 Date: Thu, 30 Apr 2020 15:29:53 +1000 From: Herbert Xu To: Tom Lendacky Cc: linux-kernel@vger.kernel.org, linux-crypto@vger.kernel.org, David Miller , Joerg Roedel , Borislav Petkov , Brijesh Singh Subject: Re: [PATCH v2] crypto: ccp: Add support for SEV-ES to the PSP driver Message-ID: <20200430052953.GB11738@gondor.apana.org.au> 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. > --- > drivers/crypto/ccp/sev-dev.c | 43 ++++++++++++++++++++++++++++++++++++ > include/linux/psp-sev.h | 2 ++ > include/uapi/linux/psp-sev.h | 2 ++ > 3 files changed, 47 insertions(+) Patch applied. Thanks. -- Email: Herbert Xu Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt