Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp5450614imu; Wed, 19 Dec 2018 11:22:18 -0800 (PST) X-Google-Smtp-Source: AFSGD/Un+rqm8h4XcRT3D8+F8hkmHabbqQ1gP1LraGJxJhuiDWwR5ez0eisbtr5VdXfkCresqZ/2 X-Received: by 2002:a63:4246:: with SMTP id p67mr20241007pga.335.1545247338887; Wed, 19 Dec 2018 11:22:18 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1545247338; cv=none; d=google.com; s=arc-20160816; b=AsWMGdz/ThHBcnoo7AEhOE6aBUMXSgQ4hw6ppLB/szpkPVJP/a08IRUNLE9UoYBBWA z/fCtOUOU8jyMEs77mJB0Gy8W+9BKo6deGWbXHEyWsxvE5LrqZdIC8xt1RZL+nHNR28H fR7z/mg9srmt3x2ZDqTOjhe+11sAH3GzrycSHNhFKqBCiH2QOZenVFYl37HokyFmgvan qeuKdPKeJ+5THefvKUrmwUWeW4HRTiFyRwaAHXsNBcN7kJzJi6afyi/NOugBpPvruKu5 vo5zbNSQ2yUFhy3SE2jR8/Jsw9RTSCrmrxEdsVYCAgurk8xM+WwsPtWRVj59t+eStJQo /+PQ== 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=4Fb3I+PBkZOhB6vmguDB7XNAfsFn6H1zHfSTWfut4iM=; b=RyQzhBXwXU9qd1Ra3XcWdJ/KPFpU44xmbrwk1n0YEar6Mu5w7bwxoBlRjiJrnBKprr s698n3RN/nV3b+YruZmxXy8AcnAVvNy1TSb4T0eEj6Q/LMbqhsPrxfc04xCDVst5Cw/0 wgOgnsTmPqdqp2MkNJkUIpTSrE2AeLMq5rJRuncsQw3VvOQs0oCthoSJr27QN5UeJCdT nI23JgzIs+089EraABX2Q1fXrcoFl/F4EVtF9aHEalWfrZDmu20gVHr03c3mk3g0nNOf CtU11rjwMV2g1PEMx8Q7u6+s7vMssyuVHjMvVncZaOASv2d1N3X3Rsb5yJYOSlYGQwN1 VWlA== 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 k38si16481564pgi.235.2018.12.19.11.22.03; Wed, 19 Dec 2018 11:22:18 -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 S1730508AbeLSTTL (ORCPT + 99 others); Wed, 19 Dec 2018 14:19:11 -0500 Received: from mx0a-001b2d01.pphosted.com ([148.163.156.1]:41076 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730439AbeLSTSU (ORCPT ); Wed, 19 Dec 2018 14:18:20 -0500 Received: from pps.filterd (m0098399.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.22/8.16.0.22) with SMTP id wBJIx08V094933 for ; Wed, 19 Dec 2018 14:18:19 -0500 Received: from e06smtp04.uk.ibm.com (e06smtp04.uk.ibm.com [195.75.94.100]) by mx0a-001b2d01.pphosted.com with ESMTP id 2pft326kyn-1 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=NOT) for ; Wed, 19 Dec 2018 14:18:19 -0500 Received: from localhost by e06smtp04.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Wed, 19 Dec 2018 19:18:17 -0000 Received: from b06cxnps4075.portsmouth.uk.ibm.com (9.149.109.197) by e06smtp04.uk.ibm.com (192.168.101.134) 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:13 -0000 Received: from d06av21.portsmouth.uk.ibm.com (d06av21.portsmouth.uk.ibm.com [9.149.105.232]) by b06cxnps4075.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id wBJJICqS1573374 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL); Wed, 19 Dec 2018 19:18:12 GMT Received: from d06av21.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 3745152050; Wed, 19 Dec 2018 19:18:12 +0000 (GMT) Received: from s38lp84.lnxne.boe (unknown [9.152.108.100]) by d06av21.portsmouth.uk.ibm.com (Postfix) with ESMTP id D125E5204E; Wed, 19 Dec 2018 19:18:11 +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 09/15] KVM: s390: add kvm reference to struct sie_page2 Date: Wed, 19 Dec 2018 20:17:50 +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-0016-0000-0000-00000238D573 X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 18121919-0017-0000-0000-000032912D00 Message-Id: <20181219191756.57973-10-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=915 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 Adding the kvm reference to struct sie_page2 will allow to determine the kvm a given gisa belongs to: container_of(gisa, struct sie_page2, gisa)->kvm This functionality will be required to process a gisa in gib alert interruption context. Signed-off-by: Michael Mueller Reviewed-by: Pierre Morel Reviewed-by: Cornelia Huck Reviewed-by: David Hildenbrand --- arch/s390/include/asm/kvm_host.h | 3 ++- arch/s390/kvm/kvm-s390.c | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/arch/s390/include/asm/kvm_host.h b/arch/s390/include/asm/kvm_host.h index 537e5e59f27e..0deba3ae8bc7 100644 --- a/arch/s390/include/asm/kvm_host.h +++ b/arch/s390/include/asm/kvm_host.h @@ -802,7 +802,8 @@ struct sie_page2 { __u64 fac_list[S390_ARCH_FAC_LIST_SIZE_U64]; /* 0x0000 */ struct kvm_s390_crypto_cb crycb; /* 0x0800 */ struct kvm_s390_gisa gisa; /* 0x0900 */ - u8 reserved920[0x1000 - 0x920]; /* 0x0920 */ + struct kvm *kvm; /* 0x0920 */ + u8 reserved928[0x1000 - 0x928]; /* 0x0928 */ }; struct kvm_s390_vsie { diff --git a/arch/s390/kvm/kvm-s390.c b/arch/s390/kvm/kvm-s390.c index 7bc24e16a31d..2d10e175862c 100644 --- a/arch/s390/kvm/kvm-s390.c +++ b/arch/s390/kvm/kvm-s390.c @@ -2220,6 +2220,7 @@ int kvm_arch_init_vm(struct kvm *kvm, unsigned long type) if (!kvm->arch.sie_page2) goto out_err; + kvm->arch.sie_page2->kvm = kvm; kvm->arch.model.fac_list = kvm->arch.sie_page2->fac_list; for (i = 0; i < kvm_s390_fac_size(); i++) { -- 2.13.4