Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp5451174imu; Wed, 19 Dec 2018 11:23:00 -0800 (PST) X-Google-Smtp-Source: AFSGD/XbPX4howxEpXCX9uJOwRSmVtYMX2JcrMzch8A0fAutHCROZhoJUgLxDhhLfch2xdaLoFw5 X-Received: by 2002:a62:b511:: with SMTP id y17mr21809544pfe.199.1545247380120; Wed, 19 Dec 2018 11:23:00 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1545247380; cv=none; d=google.com; s=arc-20160816; b=wBH5l5Q1WQPvZSrMoClEWOJeLRaDZecdJ9l/VBag2Ih8F8cBnAoF+WWLFpreMwth2i MHccHnjpo9hgRezB2ZUqjQHzx0AtOFN23w8FvVYqErpBALtlvovdgzslTmS023A857Uc QWfQwRdaXTtfvzZlT7FZGIZFJsSSUFOLioWtdhFcVxbRNFYXqf4XSAyOXm0kpNAvVRoz 4BD+iJ56xuApsL4m3Rwe/XOYvELjkAXdJYHLLBT/cdbgwzBPx/A059L+JsflmDdiyLfI 3Qk/yFBLTP1NjVUlOijIdjBMro2OWbVCJAwyv0MbE0KSMgj9sCiiDN2X9UsNxBlpHnZX F0bg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:references:in-reply-to:date :subject:cc:to:from; bh=p7a37nzk392z4LTQRoN6GdZcAbzbiCUwX0iavD3BaYA=; b=DGKWCwsDWXdbkW6bIETZb/4RrGecByWtsd4J5rOoqApBwtEa6Tg48gSwwKEysqCVWq Efx9e1tIIMbVQknnujpqoo0ixSRUSt2ybFNC6MGGrnwmWWlBtahbxPMghGMcG5qlkIlB OBTxQZFd3ebmUQS0vbmCEPbhh6bCbGIOx8Dfa2J9fWdtxty0RqCSGjCeDZ3jkN4+G77Z q1ArbSLPFmnbaoAsztbKeWMzrOvVlA+fKxSMMzR+pwNFH4uXI+C5/Jzc/SD00ZiviQV/ Zg7vVFwv2tdPNVyYmZx/xYUR7sqcvIYGukji+8JUjrMOyEpzjD0yWfKuH/0IJz0N5Oxw vQrA== 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 h19si16206667pgb.231.2018.12.19.11.22.44; Wed, 19 Dec 2018 11:23:00 -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 S1730617AbeLSTSc (ORCPT + 99 others); Wed, 19 Dec 2018 14:18:32 -0500 Received: from mx0b-001b2d01.pphosted.com ([148.163.158.5]:33954 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1730607AbeLSTS2 (ORCPT ); Wed, 19 Dec 2018 14:18:28 -0500 Received: from pps.filterd (m0098417.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.22/8.16.0.22) with SMTP id wBJIwfBh133304 for ; Wed, 19 Dec 2018 14:18:27 -0500 Received: from e06smtp03.uk.ibm.com (e06smtp03.uk.ibm.com [195.75.94.99]) by mx0a-001b2d01.pphosted.com with ESMTP id 2pfs981h5q-1 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=NOT) for ; Wed, 19 Dec 2018 14:18:27 -0500 Received: from localhost by e06smtp03.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Wed, 19 Dec 2018 19:18:25 -0000 Received: from b06cxnps3075.portsmouth.uk.ibm.com (9.149.109.195) by e06smtp03.uk.ibm.com (192.168.101.133) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; (version=TLSv1/SSLv3 cipher=AES256-GCM-SHA384 bits=256/256) Wed, 19 Dec 2018 19:18:22 -0000 Received: from d06av21.portsmouth.uk.ibm.com (d06av21.portsmouth.uk.ibm.com [9.149.105.232]) by b06cxnps3075.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id wBJJIKsD24772636 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL); Wed, 19 Dec 2018 19:18:20 GMT Received: from d06av21.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 726A852050; Wed, 19 Dec 2018 19:18:20 +0000 (GMT) Received: from s38lp84.lnxne.boe (unknown [9.152.108.100]) by d06av21.portsmouth.uk.ibm.com (Postfix) with ESMTP id 177845205F; Wed, 19 Dec 2018 19:18:20 +0000 (GMT) From: Michael Mueller To: 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 , Pierre Morel , Michael Mueller Subject: [PATCH v5 15/15] KVM: s390: start using the GIB Date: Wed, 19 Dec 2018 20:17:56 +0100 X-Mailer: git-send-email 2.13.4 In-Reply-To: <20181219191756.57973-1-mimu@linux.ibm.com> References: <20181219191756.57973-1-mimu@linux.ibm.com> X-TM-AS-GCONF: 00 x-cbid: 18121919-0012-0000-0000-000002DB6867 X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 18121919-0013-0000-0000-000021110738 Message-Id: <20181219191756.57973-16-mimu@linux.ibm.com> X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:,, definitions=2018-12-19_10:,, 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=860 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1810050000 definitions=main-1812190150 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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; + 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; } return 0; +out_gib_destroy: + kvm_s390_gib_destroy(); out_debug_unreg: debug_unregister(kvm_s390_dbf); return rc; -- 2.13.4