From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753873AbdJPVZy (ORCPT ); Mon, 16 Oct 2017 17:25:54 -0400 Received: from mail.skyhub.de ([5.9.137.197]:40342 "EHLO mail.skyhub.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753094AbdJPVZx (ORCPT ); Mon, 16 Oct 2017 17:25:53 -0400 Date: Mon, 16 Oct 2017 23:25:45 +0200 From: Borislav Petkov To: Brijesh Singh Cc: x86@kernel.org, Thomas Gleixner , Ingo Molnar , "H. Peter Anvin" , linux-kernel@vger.kernel.org, Tom Lendacky Subject: Re: [Part1 PATCH v6.1 14/17] x86: Add support for changing memory encryption attribute in early boot Message-ID: <20171016212545.5ydc333rxjons35b@pd.tnic> References: <20171016153423.2980-15-brijesh.singh@amd.com> <20171016195608.122752-1-brijesh.singh@amd.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20171016195608.122752-1-brijesh.singh@amd.com> User-Agent: NeoMutt/20170113 (1.7.2) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Oct 16, 2017 at 02:56:08PM -0500, Brijesh Singh wrote: > Some KVM-specific custom MSRs share the guest physical address with the > hypervisor in early boot. When SEV is active, the shared physical address > must be mapped with memory encryption attribute cleared so that both > hypervisor and guest can access the data. > > Add APIs to change the memory encryption attribute in early boot code. > > Cc: Thomas Gleixner > Cc: Ingo Molnar > Cc: "H. Peter Anvin" > Cc: Borislav Petkov > Cc: x86@kernel.org > Cc: linux-kernel@vger.kernel.org > Cc: Tom Lendacky > Improvements-by: Borislav Petkov > Signed-off-by: Brijesh Singh > --- > > Changes since v6: > * applied the improvements from Boris > > arch/x86/include/asm/mem_encrypt.h | 8 +++ > arch/x86/mm/mem_encrypt.c | 131 +++++++++++++++++++++++++++++++++++++ > 2 files changed, 139 insertions(+) Reviewed-by: Borislav Petkov -- Regards/Gruss, Boris. Good mailing practices for 400: avoid top-posting and trim the reply.