From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751693AbdISLrt (ORCPT ); Tue, 19 Sep 2017 07:47:49 -0400 Received: from mx2.suse.de ([195.135.220.15]:60960 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751647AbdISLrr (ORCPT ); Tue, 19 Sep 2017 07:47:47 -0400 Date: Tue, 19 Sep 2017 13:47:46 +0200 From: Borislav Petkov To: Brijesh Singh Cc: linux-kernel@vger.kernel.org, x86@kernel.org, kvm@vger.kernel.org, Thomas Gleixner , Ingo Molnar , "H . Peter Anvin" , Andy Lutomirski , Tom Lendacky , Paolo Bonzini , Radim =?utf-8?B?S3LEjW3DocWZ?= Subject: Re: [Part1 PATCH v4 17/17] X86/KVM: Clear encryption attribute when SEV is active Message-ID: <20170919114746.GO4733@nazgul.tnic> References: <20170916123418.37807-1-brijesh.singh@amd.com> <20170916123418.37807-18-brijesh.singh@amd.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20170916123418.37807-18-brijesh.singh@amd.com> User-Agent: Mutt/1.6.0 (2016-04-01) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, Sep 16, 2017 at 07:34:18AM -0500, Brijesh Singh wrote: > The guest physical memory area holding the struct pvclock_wall_clock and > struct pvclock_vcpu_time_info are shared with the hypervisor. Hypervisor the hypervisor. It ... > periodically updates the contents of the memory. When SEV is active, we > must clear the encryption attributes from the shared memory pages so that > both hypervisor and guest can access the data. > > Cc: Thomas Gleixner > Cc: Ingo Molnar > Cc: "H. Peter Anvin" > Cc: Borislav Petkov > Cc: Paolo Bonzini > Cc: "Radim Krčmář" > Cc: Tom Lendacky > Cc: x86@kernel.org > Cc: linux-kernel@vger.kernel.org > Cc: kvm@vger.kernel.org > Signed-off-by: Brijesh Singh > --- > arch/x86/entry/vdso/vma.c | 5 ++-- > arch/x86/kernel/kvmclock.c | 65 ++++++++++++++++++++++++++++++++++++++-------- > 2 files changed, 57 insertions(+), 13 deletions(-) Otherwise: Reviewed-by: Borislav Petkov -- Regards/Gruss, Boris. SUSE Linux GmbH, GF: Felix Imendörffer, Jane Smithard, Graham Norton, HRB 21284 (AG Nürnberg) --