From mboxrd@z Thu Jan 1 00:00:00 1970 From: Cornelia Huck Subject: Re: [PATCH/RFC 7/9] KVM: s390: Optimize paths where get_vcpu_asce() is invoked Date: Mon, 16 Mar 2015 14:13:28 +0100 Message-ID: <20150316141328.63fa5406.cornelia.huck@de.ibm.com> References: <1426495905-17531-1-git-send-email-borntraeger@de.ibm.com> <1426495905-17531-8-git-send-email-borntraeger@de.ibm.com> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: KVM , Paolo Bonzini , Marcelo Tosatti , Alexander Graf , Jens Freimann , Alexander Yarygin To: Christian Borntraeger Return-path: Received: from e06smtp16.uk.ibm.com ([195.75.94.112]:35885 "EHLO e06smtp16.uk.ibm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751475AbbCPNNh (ORCPT ); Mon, 16 Mar 2015 09:13:37 -0400 Received: from /spool/local by e06smtp16.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Mon, 16 Mar 2015 13:13:36 -0000 Received: from b06cxnps4074.portsmouth.uk.ibm.com (d06relay11.portsmouth.uk.ibm.com [9.149.109.196]) by d06dlp01.portsmouth.uk.ibm.com (Postfix) with ESMTP id 05FC317D8063 for ; Mon, 16 Mar 2015 13:13:57 +0000 (GMT) Received: from d06av04.portsmouth.uk.ibm.com (d06av04.portsmouth.uk.ibm.com [9.149.37.216]) by b06cxnps4074.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id t2GDDW5x4522346 for ; Mon, 16 Mar 2015 13:13:32 GMT Received: from d06av04.portsmouth.uk.ibm.com (localhost [127.0.0.1]) by d06av04.portsmouth.uk.ibm.com (8.14.4/8.14.4/NCO v10.0 AVout) with ESMTP id t2GDDUGu030556 for ; Mon, 16 Mar 2015 07:13:32 -0600 In-Reply-To: <1426495905-17531-8-git-send-email-borntraeger@de.ibm.com> Sender: kvm-owner@vger.kernel.org List-ID: On Mon, 16 Mar 2015 09:51:43 +0100 Christian Borntraeger wrote: > From: Alexander Yarygin > > During dynamic address translation the get_vcpu_asce() > function can be invoked several times. It's ok for usual modes, but will > be slow if CPUs are in AR mode. Let's call the get_vcpu_asce() once and > pass the result to the called functions. > > Signed-off-by: Alexander Yarygin > Reviewed-by: Thomas Huth > Reviewed-by: David Hildenbrand > Signed-off-by: Christian Borntraeger > --- > arch/s390/kvm/gaccess.c | 25 ++++++++++++------------- > 1 file changed, 12 insertions(+), 13 deletions(-) Acked-by: Cornelia Huck