Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp2985324iog; Mon, 27 Jun 2022 07:00:47 -0700 (PDT) X-Google-Smtp-Source: AGRyM1slyzMf2yBk4oXx5i6FqF+TAfvdIneywdZgdTNpbhXrQRTJb5xdxXXbLNj8h/Gi/c4AJA4X X-Received: by 2002:aa7:cf87:0:b0:435:65c0:f59b with SMTP id z7-20020aa7cf87000000b0043565c0f59bmr16752869edx.214.1656338447043; Mon, 27 Jun 2022 07:00:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1656338447; cv=none; d=google.com; s=arc-20160816; b=Qa52fAJr/u+c77qSMxT0k2f6myX4KWMXWV8n1tqnYMhkzVr5rNTjAfJJFWF5eWHnHQ UFtgyoZbZCAb5w6DP1ByBVvVkPnY/OwqSvaLUZaBR3I3Wdlk+76MLjgOEWVfC8rYhtGu qD///zt6OT3muQIcb2UIDpTBicFm3gKEMy8CCyC1RXgaNJ0xzJm3UsFe8s7A8Sj+Oo0O xJVIzLup6J8E1GMa3JG9CnMzFyM8QEQaDFrZXJPqUu1GOKsgc/XotSnv2ZJO1iNuI2Ti 8GVxVpTPVSUk2wXjcJkJQl2SxDIeaS0/7nbrPGYwEQLsGjIKPCuj0fjedQLd0OzN5uBk ZSpg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=0AHL8AZDkqNDDEmvpD7+VWaXha+Xw2V5Mf/HF6f0TuY=; b=0b8+zOgikUTC8/Oq46l2b5i07wDOX6BFmSncsMb34rzfw0SWIPZT5+DHTMpsG2AaeU wpNkfClrYEbyEoWSeuu0as/oV6QA95Uzhk/4G0yncRyjnDZyLPJdI7bnYXlcKttkA3Hf 4Oo/ix0tKSUGnurKPxtYvyuxxRZlGI1CawNRJmYfnHIEHMWpAhU3wT+A21X4GRAEfkmU ziLo5iaOmZ7A7j+6y/kWqrlnIrDvhqxXe6CGF3/K2yykmPkF+edam25EQ7pDfZ0HjQLk GJaeODcfUo+o2UFOvWPZD5gDNlf/SzZEWCsQY2USI54b7XKUObSXogvbHBz6CAhIw2SU bGFA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ibm.com header.s=pp1 header.b=aJ+TyPjI; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=ibm.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id j19-20020a50ed13000000b0042dd79e606fsi8531033eds.478.2022.06.27.07.00.21; Mon, 27 Jun 2022 07:00:47 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@ibm.com header.s=pp1 header.b=aJ+TyPjI; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=ibm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236142AbiF0NY4 (ORCPT + 99 others); Mon, 27 Jun 2022 09:24:56 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38006 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236071AbiF0NYx (ORCPT ); Mon, 27 Jun 2022 09:24:53 -0400 Received: from mx0a-001b2d01.pphosted.com (mx0a-001b2d01.pphosted.com [148.163.156.1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E2EE063BE; Mon, 27 Jun 2022 06:24:52 -0700 (PDT) Received: from pps.filterd (m0098399.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.17.1.5/8.17.1.5) with ESMTP id 25RDKrpL014505; Mon, 27 Jun 2022 13:24:52 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ibm.com; h=message-id : date : mime-version : subject : to : cc : references : from : in-reply-to : content-type : content-transfer-encoding; s=pp1; bh=0AHL8AZDkqNDDEmvpD7+VWaXha+Xw2V5Mf/HF6f0TuY=; b=aJ+TyPjIJpLc+yzG3W0G6Pnem5DgEwRTCXnGkIdpdtTKIgM2+RrPcq50Ap1q9MuNIlxE ubzakoVb6ko9Ql2emOHxwkAiDyT5Q4xUtqlgFCEpCemlGEIZetoUvys3EQOYrdWLFkRG 11vQzg3F/MxdP4ADByTqCi7LEulYEyzUwdyVLOJcHu63Nb8uMbeAsWmVmm/+8qXSNHHx fzC8D9C7t5ronn8ZFpuZPcTXbI1Q2Koj3f/oZNHpneyCNuwxX9KFgLB92T/j/w4PpPwz BlvKpiLBJb8UwoST7lo9g4uGOWWlnDH3Au15vudNmAb5bq099sVIizMKCgZqIJYx1coH qg== Received: from pps.reinject (localhost [127.0.0.1]) by mx0a-001b2d01.pphosted.com (PPS) with ESMTPS id 3gydbw035g-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 27 Jun 2022 13:24:52 +0000 Received: from m0098399.ppops.net (m0098399.ppops.net [127.0.0.1]) by pps.reinject (8.17.1.5/8.17.1.5) with ESMTP id 25RDLTQu021700; Mon, 27 Jun 2022 13:24:52 GMT Received: from ppma03fra.de.ibm.com (6b.4a.5195.ip4.static.sl-reverse.com [149.81.74.107]) by mx0a-001b2d01.pphosted.com (PPS) with ESMTPS id 3gydbw034h-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 27 Jun 2022 13:24:51 +0000 Received: from pps.filterd (ppma03fra.de.ibm.com [127.0.0.1]) by ppma03fra.de.ibm.com (8.16.1.2/8.16.1.2) with SMTP id 25RDJuKY031337; Mon, 27 Jun 2022 13:24:49 GMT Received: from b06cxnps4075.portsmouth.uk.ibm.com (d06relay12.portsmouth.uk.ibm.com [9.149.109.197]) by ppma03fra.de.ibm.com with ESMTP id 3gwt08t9mx-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 27 Jun 2022 13:24:49 +0000 Received: from d06av25.portsmouth.uk.ibm.com (d06av25.portsmouth.uk.ibm.com [9.149.105.61]) by b06cxnps4075.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 25RDOkdL21168572 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 27 Jun 2022 13:24:46 GMT Received: from d06av25.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 5509111C04C; Mon, 27 Jun 2022 13:24:46 +0000 (GMT) Received: from d06av25.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 6274A11C04A; Mon, 27 Jun 2022 13:24:45 +0000 (GMT) Received: from [9.171.84.214] (unknown [9.171.84.214]) by d06av25.portsmouth.uk.ibm.com (Postfix) with ESMTP; Mon, 27 Jun 2022 13:24:45 +0000 (GMT) Message-ID: <0d90c2cb-e0e9-a112-1c85-9aa8fdd54311@linux.ibm.com> Date: Mon, 27 Jun 2022 15:29:13 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.3.0 Subject: Re: [PATCH v10 1/3] KVM: s390: ipte lock for SCA access should be contained in KVM Content-Language: en-US To: Janosch Frank , kvm@vger.kernel.org Cc: linux-s390@vger.kernel.org, linux-kernel@vger.kernel.org, borntraeger@de.ibm.com, cohuck@redhat.com, david@redhat.com, thuth@redhat.com, imbrenda@linux.ibm.com, hca@linux.ibm.com, gor@linux.ibm.com, wintera@linux.ibm.com, seiden@linux.ibm.com, nrb@linux.ibm.com References: <20220620125437.37122-1-pmorel@linux.ibm.com> <20220620125437.37122-2-pmorel@linux.ibm.com> <74a234eb-0705-3c42-214f-5cdc8b125c63@linux.ibm.com> From: Pierre Morel In-Reply-To: <74a234eb-0705-3c42-214f-5cdc8b125c63@linux.ibm.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-TM-AS-GCONF: 00 X-Proofpoint-GUID: UMMH4xadU8S7istT9M783qntWC0_LSnE X-Proofpoint-ORIG-GUID: byymaZlGFS5i32Oe_-Yl1L8UjxSjYq8L X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.205,Aquarius:18.0.883,Hydra:6.0.517,FMLib:17.11.122.1 definitions=2022-06-27_06,2022-06-24_01,2022-06-22_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 lowpriorityscore=0 mlxscore=0 phishscore=0 adultscore=0 spamscore=0 malwarescore=0 mlxlogscore=999 impostorscore=0 bulkscore=0 priorityscore=1501 clxscore=1011 suspectscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2204290000 definitions=main-2206270058 X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 6/24/22 07:47, Janosch Frank wrote: > On 6/20/22 14:54, Pierre Morel wrote: >> We can check if SIIF is enabled by testing the sclp_info struct >> instead of testing the sie control block eca variable. >> sclp.has_ssif is the only requirement to set ECA_SII anyway >> so we can go straight to the source for that. > > > The subject and commit description don't fit together. > You're doing two things in this patch and only describe one of them. > > I'd suggest something like this: > > KVM: s390: Cleanup ipte lock access and SIIF facility checks > > We can check if SIIF is enabled by testing the sclp_info struct instead > of testing the sie control block eca variable as that facility is always > enabled if available. > > Also let's cleanup all the ipte related struct member accesses which > currently happen by referencing the KVM struct via the VCPU struct. > Making the KVM struct the parameter to the ipte_* functions removes one > level of indirection which makes the code more readable. > OK done. > > Other than that I'm happy with this patch. Thanks, Pierre -- Pierre Morel IBM Lab Boeblingen