Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp57402imu; Wed, 2 Jan 2019 14:03:08 -0800 (PST) X-Google-Smtp-Source: ALg8bN7e9wxOB3GpyWk4hLc5OlQ7g98QQniIKWmYOOPi6r2UvbpjpAQvi4ABHk6aeDZr4/tOe2Y4 X-Received: by 2002:a63:61c8:: with SMTP id v191mr15027528pgb.242.1546466588261; Wed, 02 Jan 2019 14:03:08 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1546466588; cv=none; d=google.com; s=arc-20160816; b=AF9ZZ++ePa6dhYQYIaIkkJBR+xS4DnEbsPElFr0HjUB/f8MGj5/lI1CIqV/cR0d9B5 SRxXG+8ZsNeBh2PHC3Jbt6VZsC2vL0Sy0SlupPH6VljwHREzd/mIqKSE2cVsk87LIn9C igP9RPpiU4wNsIPl9s5BvWC0IlVz/eGzfZk/GBfhenU0rjPANp69JvIEq1lLlHzi+8S8 8e4mHFUd4r0s9vSIUQjAHT23gO69Cj++i02zEjhfSTKd2CWz4jP9cghBkBHub5LoppMn ZOGQrw9cgwoeM2xad2nUArobWDZoDBDjzacqIgKpKvwSpI0QhoN9EZvTpdihGff2M3fS 0nNg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date:from :references:cc:to:subject:reply-to; bh=So55CI9uRxnBzJQybsBDYyXZpx1aT+fCGqYIIg+HMKg=; b=cHeKRryspXGaeAhIziWRM5JbDPcL5KqjvVyf0pTCag6QD53Q8BoC7xI9IZkPECSgrd +1+mgQ5O73cSh7rFCS1O5C1YjAMGx6roJX36XgaG7YdRdK8gCiGPnNI5HcpbBqTzDFq9 fIeDn7Qgay9QqPbkoBdzyHs+2ZdYrwqwzmMFaQQA+pdZLrs9zoGjtRP48iKYimSVpSAp AGcOueN5gzx9IKJOQXz/S6msbFxI9phsmhg0hgSsCpFF93vnt25c8az3IOevp3Lfa3Uj jyT+y4ibKp1E7Yn3ClALozX0WPCMv9j3W4VOTCAIsFr8T3D5IO5TFk+/x3ImmnNt6W1t mVrw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=ibm.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id j14si5985379pgi.354.2019.01.02.14.02.52; Wed, 02 Jan 2019 14:03:08 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=ibm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729370AbfABTbE (ORCPT + 99 others); Wed, 2 Jan 2019 14:31:04 -0500 Received: from mx0b-001b2d01.pphosted.com ([148.163.158.5]:50042 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727107AbfABTbD (ORCPT ); Wed, 2 Jan 2019 14:31:03 -0500 Received: from pps.filterd (m0098421.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.22/8.16.0.22) with SMTP id x02Hhm13098357 for ; Wed, 2 Jan 2019 12:45:31 -0500 Received: from e06smtp02.uk.ibm.com (e06smtp02.uk.ibm.com [195.75.94.98]) by mx0a-001b2d01.pphosted.com with ESMTP id 2prywm5eru-1 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=NOT) for ; Wed, 02 Jan 2019 12:45:31 -0500 Received: from localhost by e06smtp02.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Wed, 2 Jan 2019 17:45:29 -0000 Received: from b06cxnps3074.portsmouth.uk.ibm.com (9.149.109.194) by e06smtp02.uk.ibm.com (192.168.101.132) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; (version=TLSv1/SSLv3 cipher=AES256-GCM-SHA384 bits=256/256) Wed, 2 Jan 2019 17:45:27 -0000 Received: from d06av22.portsmouth.uk.ibm.com (d06av22.portsmouth.uk.ibm.com [9.149.105.58]) by b06cxnps3074.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id x02HjPgD52625596 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL); Wed, 2 Jan 2019 17:45:25 GMT Received: from d06av22.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 5EB8B4C052; Wed, 2 Jan 2019 17:45:25 +0000 (GMT) Received: from d06av22.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 95DED4C046; Wed, 2 Jan 2019 17:45:24 +0000 (GMT) Received: from [9.152.224.140] (unknown [9.152.224.140]) by d06av22.portsmouth.uk.ibm.com (Postfix) with ESMTP; Wed, 2 Jan 2019 17:45:24 +0000 (GMT) Reply-To: pmorel@linux.ibm.com Subject: Re: [PATCH v5 15/15] KVM: s390: start using the GIB To: Michael Mueller , KVM Mailing List Cc: Linux-S390 Mailing List , linux-kernel@vger.kernel.org, kvm390-list@tuxmaker.boeblingen.de.ibm.com, Martin Schwidefsky , Heiko Carstens , Christian Borntraeger , Janosch Frank , David Hildenbrand , Cornelia Huck , Halil Pasic References: <20181219191756.57973-1-mimu@linux.ibm.com> <20181219191756.57973-16-mimu@linux.ibm.com> From: Pierre Morel Date: Wed, 2 Jan 2019 18:45:24 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.2.1 MIME-Version: 1.0 In-Reply-To: <20181219191756.57973-16-mimu@linux.ibm.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit X-TM-AS-GCONF: 00 x-cbid: 19010217-0008-0000-0000-000002A9215A X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 19010217-0009-0000-0000-0000221536B8 Message-Id: X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:,, definitions=2019-01-02_07:,, signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 malwarescore=0 suspectscore=0 phishscore=0 bulkscore=0 spamscore=0 clxscore=1015 lowpriorityscore=0 mlxscore=0 impostorscore=0 mlxlogscore=999 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1810050000 definitions=main-1901020159 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 19/12/2018 20:17, Michael Mueller wrote: > By initializing the GIB, it will be used by the kvm host. > > Signed-off-by: Michael Mueller > --- > arch/s390/kvm/kvm-s390.c | 8 +++++++- > 1 file changed, 7 insertions(+), 1 deletion(-) > > diff --git a/arch/s390/kvm/kvm-s390.c b/arch/s390/kvm/kvm-s390.c > index 2d10e175862c..777c8a87d81c 100644 > --- a/arch/s390/kvm/kvm-s390.c > +++ b/arch/s390/kvm/kvm-s390.c > @@ -428,16 +428,22 @@ int kvm_arch_init(void *opaque) > goto out_debug_unreg; > } > > + rc = kvm_s390_gib_init(GAL_ISC); > + if (rc) > + goto out_debug_unreg; > + Since it is the last introduced I have a preference to put the gib initialization after any existing initialization. it does not have influence them. > kvm_s390_cpu_feat_init(); > > /* Register floating interrupt controller interface. */ > rc = kvm_register_device_ops(&kvm_flic_ops, KVM_DEV_TYPE_FLIC); > if (rc) { > pr_err("Failed to register FLIC rc=%d\n", rc); > - goto out_debug_unreg; > + goto out_gib_destroy; It is not a big problem but would make the patch more smaller by gathering all changes. > } > return 0; > > +out_gib_destroy: > + kvm_s390_gib_destroy(); > out_debug_unreg: > debug_unregister(kvm_s390_dbf); > return rc; > with these changes. Reviewed-by: Pierre Morel -- Pierre Morel Linux/KVM/QEMU in Böblingen - Germany