Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp3345076pxf; Mon, 22 Mar 2021 04:24:40 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy/NM7Yzn7WTN/Qxr4B2GJovjlhAqBVf8v4qcNxYqME3/n80hhjHiT1bHt/yfP8UvSUeZI1 X-Received: by 2002:a17:906:b297:: with SMTP id q23mr18980043ejz.315.1616412280623; Mon, 22 Mar 2021 04:24:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1616412280; cv=none; d=google.com; s=arc-20160816; b=ldrrgAGyyV+wpNVFnFwWKs/SCpVbcfHTvKzP3r9hDfng2QH2T+OmzLf4nzKh2JHMx8 yw5ArZBvVzoZm6nhmekwSpin6tEDUGPJ9N0h/ihItETaueQH4ATYS3fFY3iNWI6Ml+8k Prr82N4iE/5eBdhH4b3DTtWff50wD9VirgreG11gaXaLlKJD5h3cQD0m5dNl0mz9qEDF ZPjoDiU7u0S2DPRqNOgpWHd03kh90qXeJZmbQKZoDTl1iadqBTSVyh6osnRv9ary9Q6V 5e8Kk6Y5/Zf46fRXhpZoLxeo6L8diciUc9MaJAsO30tmKzKFKB+zmjBOp1gOMlJX19u/ y3EA== 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 :references:cc:to:from:subject:dkim-signature; bh=H7FM+EfpOKgcYU35xLw4tXyD/liddu9m0RQO74OmR04=; b=uBLSMTD2FplqQiJ0HuffbErevzApJMyewLLqp3Mvx8nInyzhxArXPuwVOHP0xCELPM S4F1ej62T2CM+eOQNAGmspDHSYNLHEHfD9sEHbJw/sYcIAWd8caXMc7zcAJ+rDV0yBjK wD9XZV/V4W62fPEizjOKl/WZZnIBYYLEa9aGSoZcQYwC1oRvEr4gpiGdWE45vhr5Vh2S M9kcg+GRTz7VeRm/dHu3qgkGKaxGnD21Ae8d4bo1bknT3Pq8lN8wV0NauaRbiQRdNIXN RCYaTRgTIzYFNyq0zp4BtXgUYBIVu/hpxLmTFmHODJkZsDxlJ97rT4WboAJF9xjChBgY WmvA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=ix4pXxWI; 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 ld16si11438904ejb.528.2021.03.22.04.24.17; Mon, 22 Mar 2021 04:24:40 -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=ix4pXxWI; 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 S230018AbhCVLXE (ORCPT + 99 others); Mon, 22 Mar 2021 07:23:04 -0400 Received: from us-smtp-delivery-124.mimecast.com ([216.205.24.124]:54077 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230009AbhCVLWi (ORCPT ); Mon, 22 Mar 2021 07:22:38 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1616412158; 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=H7FM+EfpOKgcYU35xLw4tXyD/liddu9m0RQO74OmR04=; b=ix4pXxWIytgB46N0VpdUR0/1dCkljbprqN3r+vrrUrqBwUUObWDMsWUtBKBbbC7lIhLmGw sR+wZXZFdqjAjV4QxqZrMgnA/S/J5GrQhfry0zN+YZGpsPSPuv7AFyjZj6JeZxp1GmTCV7 chxj8wZzeP2avlQxzYLLe8VUHuFAj94= 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-441-7RJwYWYiMDyDj_DdUXUzCA-1; Mon, 22 Mar 2021 07:22:34 -0400 X-MC-Unique: 7RJwYWYiMDyDj_DdUXUzCA-1 Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.phx2.redhat.com [10.5.11.13]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id CAE141034AE7; Mon, 22 Mar 2021 11:22:32 +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 7D4751B49E; Mon, 22 Mar 2021 11:22:30 +0000 (UTC) Subject: Re: [PATCH v1 1/2] s390/kvm: split kvm_s390_real_to_abs From: David Hildenbrand To: Heiko Carstens Cc: Thomas Huth , Claudio Imbrenda , linux-kernel@vger.kernel.org, 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> Organization: Red Hat GmbH Message-ID: <71822096-fb31-e2ca-0cac-c6b4400a8118@redhat.com> Date: Mon, 22 Mar 2021 12:22:29 +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.13 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 22.03.21 12:16, David Hildenbrand wrote: > On 22.03.21 12:12, Heiko Carstens wrote: >> On Mon, Mar 22, 2021 at 10:53:46AM +0100, David Hildenbrand wrote: >>>>> 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. >> >> Yes, let's bikeshed then :) >> >> Could you then please try to rename page_to* and everything that looks >> similar to page2* please? I'm wondering what the response will be.. > > Oh, we're bikeshedding about anything now? Cool. (I agree that real2abs is not such a good idea ;) ) -- Thanks, David / dhildenb