From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752703AbdI1Rvw (ORCPT ); Thu, 28 Sep 2017 13:51:52 -0400 Received: from mx2.suse.de ([195.135.220.15]:46782 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751970AbdI1Rvo (ORCPT ); Thu, 28 Sep 2017 13:51:44 -0400 Date: Thu, 28 Sep 2017 19:51:29 +0200 From: Borislav Petkov To: Brijesh Singh Cc: kvm@vger.kernel.org, linux-kernel@vger.kernel.org, x86@kernel.org, Tom Lendacky , Thomas Gleixner , Ingo Molnar , "H. Peter Anvin" , Andy Shevchenko , David Laight , Arnd Bergmann Subject: Re: [Part1 PATCH v5 13/17] x86/io: Unroll string I/O when SEV is active Message-ID: <20170928175129.djyusxomsntrbdnd@pd.tnic> References: <20170927151329.70011-1-brijesh.singh@amd.com> <20170927151329.70011-14-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: <20170927151329.70011-14-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 Wed, Sep 27, 2017 at 10:13:25AM -0500, Brijesh Singh wrote: > From: Tom Lendacky > > Secure Encrypted Virtualization (SEV) does not support string I/O, so > unroll the string I/O operation into a loop operating on one element at > a time. > > Cc: Thomas Gleixner > Cc: Ingo Molnar > Cc: "H. Peter Anvin" > Cc: Borislav Petkov > Cc: Andy Shevchenko > Cc: David Laight > Cc: Arnd Bergmann > Cc: x86@kernel.org > Cc: linux-kernel@vger.kernel.org > Signed-off-by: Tom Lendacky > Signed-off-by: Brijesh Singh > --- > arch/x86/include/asm/io.h | 42 ++++++++++++++++++++++++++++++++++++++---- > arch/x86/mm/mem_encrypt.c | 8 ++++++++ > 2 files changed, 46 insertions(+), 4 deletions(-) Reviewed-by: Borislav Petkov -- Regards/Gruss, Boris. SUSE Linux GmbH, GF: Felix Imendörffer, Jane Smithard, Graham Norton, HRB 21284 (AG Nürnberg) --