Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp3341062pxf; Mon, 22 Mar 2021 04:18:26 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzi0yirS8l4xznQAs2+ZXC5ErcGqoRREVLl8Vvvj6zYYx6nNkQXM5L0Job5GnLcwF5JMOUr X-Received: by 2002:aa7:c447:: with SMTP id n7mr24832012edr.171.1616411906647; Mon, 22 Mar 2021 04:18:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1616411906; cv=none; d=google.com; s=arc-20160816; b=vNCCfrhQExsYEznZXFJkoWpu/2jkvyHP+9eFg0FSGfM6nJbNKR2XFmCLFqe5sdbODT 05TnFCWuVf6LnXFH9m+TTeZvvsBHjCcrb0QqIUnupYhLSTPXAa4ZSpvEVLxbX7ddaEHg piVJfHCRGW60iggn91y+dqZj0qY+hW/HRqvRJOq2mqP72lu0ARtsyufWRBiMIKhmKnP+ 6fMyaAwGlFweMoGuI1VYKn5GPhwrknIQcJPTs2QAlSOX9P2sCxQeau+0fM5qExzjMVdu 28H+umbq3pwiqm96a3eoCmf/F+b9iO7H6wteXv4aucYJznNLTgxLEsI2I+Si17r4axJ/ FU/w== 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=cWEFybr+IaJN8OOZQO/MBfevyb+n5hnb9KMLfpdHKIg=; b=xppJ/LO/Kt/u2D+iyMtjTp/2QC1zk4HCa+TopvFisKKkW+MmNc9N1MChqLOu57/sEt XGhcj4eSLnagKfN9ERK/O/Lb5tv9/qjoqn+tKraIshA7driBTGV989bRDgVb6zfG/QZ5 yqM+acDgztfpxvSw5r0/BmB/V86imYbUopzT/oBD086BuvaUN8ypaoXn7lIL5Ow+ezbK jY90nyeQIeIwkyxle3MlQaFnLeX2N8Qdn9zw/c3/b8ili7Pq+KWIL9yCN3OazQoNQJcR fFCvPiNWfyaVyi+k3erhctEKuihWKp02u05WoTZKFtza+Ejm9udkCODhHEFXQV4gQzxy y8og== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b="Gw9/vn5T"; 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 39si11847203edq.111.2021.03.22.04.18.04; Mon, 22 Mar 2021 04:18:26 -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="Gw9/vn5T"; 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 S230273AbhCVLRH (ORCPT + 99 others); Mon, 22 Mar 2021 07:17:07 -0400 Received: from us-smtp-delivery-124.mimecast.com ([216.205.24.124]:31531 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230156AbhCVLQz (ORCPT ); Mon, 22 Mar 2021 07:16:55 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1616411814; 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=cWEFybr+IaJN8OOZQO/MBfevyb+n5hnb9KMLfpdHKIg=; b=Gw9/vn5TAYBsDK618a2e683Gnap4DLdyJ2odXWAJN939XXJ1rPqVai41MSbYiKnzgn0EXK TQh8G1OdL28yFgdJFN2tRqXib1heeY3ar29J6ykh58qq/dQJIRw5Af4E9blJa/GKdNq9Yf KmOXLpLZkzigbuKfxhNmX69q2ZHB3VQ= 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-345-VrV3kUaENmGrlw0NErUbWA-1; Mon, 22 Mar 2021 07:16:53 -0400 X-MC-Unique: VrV3kUaENmGrlw0NErUbWA-1 Received: from smtp.corp.redhat.com (int-mx08.intmail.prod.int.phx2.redhat.com [10.5.11.23]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 8417E108BD0A; Mon, 22 Mar 2021 11:16:51 +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 30DC619C78; Mon, 22 Mar 2021 11:16:48 +0000 (UTC) Subject: Re: [PATCH v1 1/2] s390/kvm: split kvm_s390_real_to_abs 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> From: David Hildenbrand Organization: Red Hat GmbH Message-ID: Date: Mon, 22 Mar 2021 12:16:48 +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.84 on 10.5.11.23 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. -- Thanks, David / dhildenb