Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp4501728imu; Tue, 8 Jan 2019 01:05:49 -0800 (PST) X-Google-Smtp-Source: ALg8bN5vMrMowu82KvYA5Fi0h9AYUD31crTFPm1YJF1kxWeAU1twiuWfa+6QOIP6cpsQalkFArwb X-Received: by 2002:a63:b94c:: with SMTP id v12mr778041pgo.221.1546938349802; Tue, 08 Jan 2019 01:05:49 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1546938349; cv=none; d=google.com; s=arc-20160816; b=ympDyf0riDlWzmtEyM2777m/Bs2K7aC7yzOXcD5epKlxr9DHZ0U+6vIHUbNcHwm6Uw KkvMfV40HCv/dK/NHw2TXZTs7aEyUoozWSUjusBPyl5iaLMhx4HcO02Fv9cm+vU4fmJJ xICWna/a5rWTD2BlS4uGEJDHQIDTcpOhRc3Lk2ymWS3ixO3jKa1wsno4TOx2PbkG9wqI lX9thvzwy+c781aIRjgwYSSP+T54iL6st5l0ywKywYs9OkpC5+xueVlPeO9SkoB9s0mT maf1LQuPtRxBe0guLgAe7IpGwCkXK2N1xhT5JnCXgO1tPE0UkIEvL4MGp3aKBnGbSG7D /avw== 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 :organization:from:references:cc:to:subject:reply-to; bh=UOChDCy9YEUcmwk8LHf23eqkkcLqQV8YWG1hiajXp1M=; b=DSDYiRAp6sjoNhwuZbGUOaWDd5OA9t/HlJ9nAU3xGRTIk7J8eRvIaJZTJyeV3149nW 1LCPkxadxTdcTpc73WCdcTeCRIySBx/ux1Ku2N77y95zLeWMyplBGoxkhQLhekP+I67W jYy4/uuiw2zdOzP8r+5lg533MKlh0mAHtB3i9h/0Sb5Gv99mk2iGzgogt/eKFBjQxKpQ A715i7QNc7bBFqdDN2jdt9MRBIKi6TxHev+AItWBoATvddRLkyRwmguh4cxFaoKpWkji s8VNQ4v5zGyF7SLZnYXkmgk6JxhK2QvBqjdpdj6jH6NQL0wyPhxwdUpIjzlP9x6aywy+ lSIg== 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 y12si7781571plk.174.2019.01.08.01.05.33; Tue, 08 Jan 2019 01:05:49 -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 S1728071AbfAHJDa (ORCPT + 99 others); Tue, 8 Jan 2019 04:03:30 -0500 Received: from mx0b-001b2d01.pphosted.com ([148.163.158.5]:59870 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726333AbfAHJD3 (ORCPT ); Tue, 8 Jan 2019 04:03:29 -0500 Received: from pps.filterd (m0098420.ppops.net [127.0.0.1]) by mx0b-001b2d01.pphosted.com (8.16.0.22/8.16.0.22) with SMTP id x088muNa133111 for ; Tue, 8 Jan 2019 04:03:28 -0500 Received: from e06smtp01.uk.ibm.com (e06smtp01.uk.ibm.com [195.75.94.97]) by mx0b-001b2d01.pphosted.com with ESMTP id 2pvr7jab30-1 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=NOT) for ; Tue, 08 Jan 2019 04:03:28 -0500 Received: from localhost by e06smtp01.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Tue, 8 Jan 2019 09:03:26 -0000 Received: from b06cxnps4076.portsmouth.uk.ibm.com (9.149.109.198) by e06smtp01.uk.ibm.com (192.168.101.131) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; (version=TLSv1/SSLv3 cipher=AES256-GCM-SHA384 bits=256/256) Tue, 8 Jan 2019 09:03:23 -0000 Received: from d06av23.portsmouth.uk.ibm.com (d06av23.portsmouth.uk.ibm.com [9.149.105.59]) by b06cxnps4076.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id x0893LPo3998096 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL); Tue, 8 Jan 2019 09:03:21 GMT Received: from d06av23.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 92F8FA4059; Tue, 8 Jan 2019 09:03:21 +0000 (GMT) Received: from d06av23.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 3591DA4040; Tue, 8 Jan 2019 09:03:21 +0000 (GMT) Received: from [9.152.98.101] (unknown [9.152.98.101]) by d06av23.portsmouth.uk.ibm.com (Postfix) with ESMTP; Tue, 8 Jan 2019 09:03:21 +0000 (GMT) Reply-To: mimu@linux.ibm.com Subject: Re: [PATCH v5 15/15] KVM: s390: start using the GIB To: pmorel@linux.ibm.com, KVM Mailing List Cc: Linux-S390 Mailing List , linux-kernel@vger.kernel.org, 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: Michael Mueller Organization: IBM Date: Tue, 8 Jan 2019 10:03:20 +0100 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:60.0) Gecko/20100101 Thunderbird/60.4.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit X-TM-AS-GCONF: 00 x-cbid: 19010809-4275-0000-0000-000002FBCF11 X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 19010809-4276-0000-0000-00003809D92C Message-Id: X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:,, definitions=2019-01-08_05:,, 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-1901080073 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 02.01.19 18:45, Pierre Morel wrote: > 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. I will move that behind the FLIC registraion. > >>       } >>       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 > > > >