Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp2131144pxu; Fri, 18 Dec 2020 06:19:29 -0800 (PST) X-Google-Smtp-Source: ABdhPJynAcHc+ZmlR4gpFVdgl0BSELWzZDmUXl8jbCLCRVOrU/XwGIu41/sR0XcjdjRIqeEGrkj9 X-Received: by 2002:aa7:c547:: with SMTP id s7mr4557561edr.240.1608301168908; Fri, 18 Dec 2020 06:19:28 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1608301168; cv=none; d=google.com; s=arc-20160816; b=gMzn0ukxkkAejlw/vnqUf29IxxQvVz4XT3CFZtemrAo3ssxKF9x+BKfgfRM4Meiwob JOQ/hnpgPhHn7DI1FBbxGl15M/DGIsx2gikucD+9azItMqBaNi5Kqg1Q7fNTQuw02lvz TNrjdi7m9/xcb1qwcurO8DZcVF4m8al+Y9nH8+NGsk6LKffIcbnTBKFc0UDbuahXoX/k ATlWgfxFOLwcweoKnXRp14JOfd4tzSb0FTn1blQm8F7+iUsDB7GXl15/aAk+WqcwkL7w 1MPczF+2bhRVOetzM/9Wfoo0gorIN306+yc8Q1s3HCgYziFvbCqd8MxJj5HXmBijVN5o B/Aw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=Hb2vIskaEuEzm8cbxDywKvyMNWrHp7cUGkREIFvkH3I=; b=UcwGQrtAbtibFUU7h19S1Suk+tv6bZYaiUztwqDO0KTCgTz0/YTgRVP5C1duDcAMxH kA63w5P+wNMA5afLbbLTgu6+9NdnFEnceb1p2ybrIcoUHJCZDGJEvbz+uhOXfEmXGFjP Vz5PA0QKgxMcDU3VY+ivXQrQk6uEg3QoqUUl0/vs+JvSfe7BP77/3Nb/lBUve3PNeLzN i2rWgRyRcGfMp1mpMqVxfotEokj1Y57ixsz+108W8IMrJPacYNG77GLHRQpKri0SljgF WFWmi7Q8Xw4TfZN2FlMoKxkcTriZt2aIAxr0xoPSpkT0bQQhLbaoOQ48jVre/IfwFqCp Eisg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ibm.com header.s=pp1 header.b="RQmf/u2M"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id dk23si7063265edb.17.2020.12.18.06.19.06; Fri, 18 Dec 2020 06:19:28 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@ibm.com header.s=pp1 header.b="RQmf/u2M"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S1727079AbgLROS7 (ORCPT + 99 others); Fri, 18 Dec 2020 09:18:59 -0500 Received: from mx0a-001b2d01.pphosted.com ([148.163.156.1]:55166 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725908AbgLROS6 (ORCPT ); Fri, 18 Dec 2020 09:18:58 -0500 Received: from pps.filterd (m0098399.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id 0BIEDEnT040950; Fri, 18 Dec 2020 09:18:18 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ibm.com; h=from : to : cc : subject : date : message-id : mime-version : content-transfer-encoding; s=pp1; bh=Hb2vIskaEuEzm8cbxDywKvyMNWrHp7cUGkREIFvkH3I=; b=RQmf/u2MgmVv/pU1R2MqfPcromLVjaxvE4kE9Z7+pbbfR4nJAW3PEZJOAe4fjpUx7BmN 5v8BzOr6pUrSUUBS3HFPqimHIbwqeBQY0DeiHNUaSlrqb65WQ3eYfycuqK3xYLLq5Ziq +ga0kuAN4ohOKMad0WZ/QboS7FEs/Kw62eLbWx2oYmMMKQoRTQegIyJLm/Bx8GkZVeu3 /TQlFwppwW0DxkPeYOeQ+ZD1V06RN8UwXviEC8dNwzKQoumfnbBExeu0QSa5xFustnR2 FcoXKzA9Pn0tiYgW1PAeh+WzTpHmTmB2BvPwl6VwwhEJBDBPCyufB1kheLFsX5MjOWYD 5g== Received: from pps.reinject (localhost [127.0.0.1]) by mx0a-001b2d01.pphosted.com with ESMTP id 35gx0cg55q-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 18 Dec 2020 09:18:18 -0500 Received: from m0098399.ppops.net (m0098399.ppops.net [127.0.0.1]) by pps.reinject (8.16.0.36/8.16.0.36) with SMTP id 0BIEDTSv041680; Fri, 18 Dec 2020 09:18:17 -0500 Received: from ppma04fra.de.ibm.com (6a.4a.5195.ip4.static.sl-reverse.com [149.81.74.106]) by mx0a-001b2d01.pphosted.com with ESMTP id 35gx0cg54x-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 18 Dec 2020 09:18:17 -0500 Received: from pps.filterd (ppma04fra.de.ibm.com [127.0.0.1]) by ppma04fra.de.ibm.com (8.16.0.42/8.16.0.42) with SMTP id 0BIEGeoM015047; Fri, 18 Dec 2020 14:18:15 GMT Received: from b06cxnps3074.portsmouth.uk.ibm.com (d06relay09.portsmouth.uk.ibm.com [9.149.109.194]) by ppma04fra.de.ibm.com with ESMTP id 35cng8bbw3-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 18 Dec 2020 14:18:15 +0000 Received: from b06wcsmtp001.portsmouth.uk.ibm.com (b06wcsmtp001.portsmouth.uk.ibm.com [9.149.105.160]) by b06cxnps3074.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 0BIEICh842467650 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 18 Dec 2020 14:18:12 GMT Received: from b06wcsmtp001.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 34A24A4060; Fri, 18 Dec 2020 14:18:12 +0000 (GMT) Received: from b06wcsmtp001.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id CF5D7A405B; Fri, 18 Dec 2020 14:18:11 +0000 (GMT) Received: from ibm-vm.ibmuc.com (unknown [9.145.12.102]) by b06wcsmtp001.portsmouth.uk.ibm.com (Postfix) with ESMTP; Fri, 18 Dec 2020 14:18:11 +0000 (GMT) From: Claudio Imbrenda To: linux-kernel@vger.kernel.org Cc: borntraeger@de.ibm.com, frankja@linux.ibm.com, david@redhat.com, kvm@vger.kernel.org, linux-s390@vger.kernel.org Subject: [PATCH v1 0/4] s390/kvm: fix MVPG when in VSIE Date: Fri, 18 Dec 2020 15:18:07 +0100 Message-Id: <20201218141811.310267-1-imbrenda@linux.ibm.com> X-Mailer: git-send-email 2.26.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-TM-AS-GCONF: 00 X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.343,18.0.737 definitions=2020-12-18_09:2020-12-18,2020-12-18 signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 bulkscore=0 adultscore=0 clxscore=1015 suspectscore=0 mlxlogscore=790 spamscore=0 impostorscore=0 mlxscore=0 priorityscore=1501 lowpriorityscore=0 phishscore=0 malwarescore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2009150000 definitions=main-2012180095 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The current handling of the MVPG instruction when executed in a nested guest is wrong, and can lead to the nested guest hanging. This patchset fixes the behaviour to be more architecturally correct, and fixes the hangs observed. Claudio Imbrenda (4): s390/kvm: VSIE: stop leaking host addresses s390/kvm: extend guest_translate for MVPG interpretation s390/kvm: add kvm_s390_vsie_mvpg_check needed for VSIE MVPG s390/kvm: VSIE: correctly handle MVPG when in VSIE arch/s390/kvm/gaccess.c | 88 ++++++++++++++++++++++++++++++++++++++--- arch/s390/kvm/gaccess.h | 3 ++ arch/s390/kvm/vsie.c | 78 +++++++++++++++++++++++++++++++++--- 3 files changed, 159 insertions(+), 10 deletions(-) -- 2.26.2