Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp3292189pxf; Mon, 22 Mar 2021 02:55:55 -0700 (PDT) X-Google-Smtp-Source: ABdhPJynq4TYI/B3XXRFX3gHcIm6EKTjesUjG2mgND5tZfbDPaPEa8JudSQ5z/WqkbgYAG9G9igD X-Received: by 2002:a05:6402:1853:: with SMTP id v19mr24535408edy.179.1616406955196; Mon, 22 Mar 2021 02:55:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1616406955; cv=none; d=google.com; s=arc-20160816; b=ikQ2mQZrqwRGUo1T1a6PJnDsBLab5lr/7EUCto9PANiaOn1jI79bqH281i0323DSfZ uhPpY8BwNOnEhOPo3d7l0Wz4U+XM+B6rfIfuW3/j3xWXJzsidFtNY/cE540mQCfLr66Q icIFbQEHoQzrQqYYLS42miUpvxbQdK8x6wYJVbqOPwaXVKuakk67hPmmfnp0IHmsnM1q OsT5vjb7Zu9z9C3p1k/HKxjM3jWPjxVocvTo/t7nC9RD3a9SIftACP4YUQSqTM3otwkH Ufpl90lG3EP5ey7hubvnEsexPZ6/6CH3iJtrSGgeRrSp6CtAGK4TGlE4KLypMB8/t6NA EUuQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:organization :from:references:cc:to:subject:dkim-signature; bh=FCCQ8UUUQzYPGaH8sFXIOUR2ctThH6mgA4zrevSovz4=; b=Xc6T+H0H/4BA4letDuRWUvRGp/oHaK5Hjkj+K0d3k8/8XuNETtKoiifLOUaunrkdI9 FS4d8FzsBiGDab5oqwsMzzsi/qtQ62s+bk5Ru88aLlJfCaYgFjH/sFDmjCA1EAtXKiiC xn15b1lYu6NoL8ZzbogKXuLJkddn/A8+8YExUGSHFqJkJdXHxjmeXTq+KaWGy5bhaDX8 oAmUM2nANsMVxfcFTyWvzz8+FuhmOSkonSYXfpmt2FEN+EW4c6lO/vVOP+L2B+rEtXah LIZCEXS4y98Itu1PnFwWyctgIeVQmPzAqZUL0GVGLMR+o8/AB1xyhcE1yDTaJfDOFdIH Jnpw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=FGOGYda8; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id w16si11177193edv.532.2021.03.22.02.55.33; Mon, 22 Mar 2021 02:55:55 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=FGOGYda8; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229986AbhCVJya (ORCPT + 99 others); Mon, 22 Mar 2021 05:54:30 -0400 Received: from us-smtp-delivery-124.mimecast.com ([216.205.24.124]:23704 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229913AbhCVJx5 (ORCPT ); Mon, 22 Mar 2021 05:53:57 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1616406836; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=FCCQ8UUUQzYPGaH8sFXIOUR2ctThH6mgA4zrevSovz4=; b=FGOGYda8FFLEVq7kdO8CcW9+IqkTVIlPWeZEikuTixHB0tgYYTxnFea4qyzDDoKHMvk6qg 1YYG7YmfX7sXzVWejr3w5rDh8rpZ79UQP7p4/t9GbKgj2j9b8CXLw+bkuaW6zxPLx2d33u CXqk4VvFMaa5fQjkKcljkbpxF04vTNg= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-389-lYlkg8qoOSmjh5qn1GBTyA-1; Mon, 22 Mar 2021 05:53:54 -0400 X-MC-Unique: lYlkg8qoOSmjh5qn1GBTyA-1 Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 287DE8B5DC2; Mon, 22 Mar 2021 09:53:53 +0000 (UTC) Received: from [10.36.115.54] (ovpn-115-54.ams2.redhat.com [10.36.115.54]) by smtp.corp.redhat.com (Postfix) with ESMTP id 2311060C04; Mon, 22 Mar 2021 09:53:48 +0000 (UTC) Subject: Re: [PATCH v1 1/2] s390/kvm: split kvm_s390_real_to_abs To: Thomas Huth , Claudio Imbrenda , linux-kernel@vger.kernel.org Cc: borntraeger@de.ibm.com, frankja@linux.ibm.com, cohuck@redhat.com, kvm@vger.kernel.org, linux-s390@vger.kernel.org, stable@vger.kernel.org References: <20210319193354.399587-1-imbrenda@linux.ibm.com> <20210319193354.399587-2-imbrenda@linux.ibm.com> From: David Hildenbrand Organization: Red Hat GmbH Message-ID: Date: Mon, 22 Mar 2021 10:53:46 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.8.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Scanned-By: MIMEDefang 2.79 on 10.5.11.12 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 20.03.21 05:57, Thomas Huth wrote: > On 19/03/2021 20.33, Claudio Imbrenda wrote: >> A new function _kvm_s390_real_to_abs will apply prefixing to a real address >> with a given prefix value. >> >> The old kvm_s390_real_to_abs becomes now a wrapper around the new function. >> >> This is needed to avoid code duplication in vSIE. >> >> Cc: stable@vger.kernel.org >> Signed-off-by: Claudio Imbrenda >> --- >> arch/s390/kvm/gaccess.h | 23 +++++++++++++++++------ >> 1 file changed, 17 insertions(+), 6 deletions(-) >> >> diff --git a/arch/s390/kvm/gaccess.h b/arch/s390/kvm/gaccess.h >> index daba10f76936..7c72a5e3449f 100644 >> --- a/arch/s390/kvm/gaccess.h >> +++ b/arch/s390/kvm/gaccess.h >> @@ -18,17 +18,14 @@ >> >> /** >> * kvm_s390_real_to_abs - convert guest real address to guest absolute address >> - * @vcpu - guest virtual cpu >> + * @prefix - guest prefix >> * @gra - guest real address >> * >> * Returns the guest absolute address that corresponds to the passed guest real >> - * address @gra of a virtual guest cpu by applying its prefix. >> + * address @gra of by applying the given prefix. >> */ >> -static inline unsigned long kvm_s390_real_to_abs(struct kvm_vcpu *vcpu, >> - unsigned long gra) >> +static inline unsigned long _kvm_s390_real_to_abs(u32 prefix, unsigned long gra) > > > Just a matter of taste, but maybe this could be named differently? > kvm_s390_real2abs_prefix() ? kvm_s390_prefix_real_to_abs()? > +1, I also dislike these "_.*" style functions here. Reviewed-by: David Hildenbrand > > Anyway: > Reviewed-by: Thomas Huth > -- Thanks, David / dhildenb