Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp1057501pxb; Tue, 9 Feb 2021 21:43:57 -0800 (PST) X-Google-Smtp-Source: ABdhPJxwQdcZ2INbVjwvBjlu1RA1TNnj91eeo/wkwWW8795d/GttbYCHZkEev2jHORQGR81K+Met X-Received: by 2002:a17:906:d0cd:: with SMTP id bq13mr1266169ejb.75.1612935837608; Tue, 09 Feb 2021 21:43:57 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612935837; cv=none; d=google.com; s=arc-20160816; b=d3fRzQvTyLR9iaVJObDotcDffpOrC9B5693G1tWz56bEUcYcrQK5VGNgWo+Aj6YIk2 EZJZDNWB/uiTsNDg/HlmZSBPswysKu0YBlKTwyqHoiR5s8ys++8ylibWWDXq9rkNH0x8 SKM1Ef82h9bHT86rm6edKxqTY0yEQqlEfeyfsvsI0f0b2cWBg09+cR0Ub/TE6fVNTJyM HvCjWoYK+ckC9AydMkAGN5cpPr7IeJBRgKOxfUA5dwBp3rZ35oIUibJH4caCHO5Rnu1h YbOzCxQUu7Krg2yc/PQNiO79RNofdHmpMvd8NWeBw4vqTlp0CzxD0oeL0uMf4FKGt69o N8+w== 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=pFWhtR68s1PAGHruUgjhtP/yzN5SoaUai8t9k3e9yzk=; b=xuY09tXvKV94eUGyH8Rg4psUVJZ2yjmurmEqpUKfRButU4BGXC93SvFs+FGftMIki1 vW9zofOLNnwjTQqGkKEANyEN2ihKC89MeOVZdcNVoaIxt2gTvJICkXavqYc8vnvUHA2F HO1HClaeR1NwfAHn+Y+dEs+WY2v3iO9hF1autL/Oy4ZnveZgoiG3YswHu9nTPcIOw17/ B35/91raQt9gjA8/7+ANKr63951uonv6ImdGDLQiZ8UJ+xcCCwYnbErmRe2mkl8ebSLU 004KB6YsbofJ7WSmf6fuCPPA2s1m18rsZpyRoJf55SvlKd5C421EKDdUXyGqxZR1dkkU mQGg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ibm.com header.s=pp1 header.b=egIQrED6; 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 h19si810294edt.159.2021.02.09.21.43.33; Tue, 09 Feb 2021 21:43:57 -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=egIQrED6; 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 S232448AbhBIPnw (ORCPT + 99 others); Tue, 9 Feb 2021 10:43:52 -0500 Received: from mx0b-001b2d01.pphosted.com ([148.163.158.5]:36868 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S232048AbhBIPnu (ORCPT ); Tue, 9 Feb 2021 10:43:50 -0500 Received: from pps.filterd (m0098416.ppops.net [127.0.0.1]) by mx0b-001b2d01.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id 119FWtSx137822; Tue, 9 Feb 2021 10:43:08 -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=pFWhtR68s1PAGHruUgjhtP/yzN5SoaUai8t9k3e9yzk=; b=egIQrED65GAaqCXi2jSxZIoBsvand6HaOUGGPJZYYH1TOIBvF94fitPuK131OeE0geZV SnVeMyC2LghMOJacQGpS7sz0Qglxuv5/IgT/qzWkogAkAPtkbHeCklKB2A4ag7592seN 19zAcJHASS3/ChJ2TfIMMZDyoHHBI4VIF7XpOtcAFoeN7eWym5FitRnj4lRu7Xbc5EcM IqXdoFK59DH8hSQLFlkw7NjW0VEInRiNHzUIgKy5STVOhkjYx/fSJEDNGptCqZE6WZgK 6ZgFkF6doOeeosCvY8yM8GE5tLqZ535qN8xC2Sei15czTGbsxFIYrFILFLt4Nj4xfg+E Gw== Received: from pps.reinject (localhost [127.0.0.1]) by mx0b-001b2d01.pphosted.com with ESMTP id 36kw0eh0r3-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 09 Feb 2021 10:43:08 -0500 Received: from m0098416.ppops.net (m0098416.ppops.net [127.0.0.1]) by pps.reinject (8.16.0.36/8.16.0.36) with SMTP id 119FX8gE139388; Tue, 9 Feb 2021 10:43:08 -0500 Received: from ppma06fra.de.ibm.com (48.49.7a9f.ip4.static.sl-reverse.com [159.122.73.72]) by mx0b-001b2d01.pphosted.com with ESMTP id 36kw0eh0qc-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 09 Feb 2021 10:43:08 -0500 Received: from pps.filterd (ppma06fra.de.ibm.com [127.0.0.1]) by ppma06fra.de.ibm.com (8.16.0.42/8.16.0.42) with SMTP id 119Femv3029748; Tue, 9 Feb 2021 15:43:06 GMT Received: from b06cxnps3074.portsmouth.uk.ibm.com (d06relay09.portsmouth.uk.ibm.com [9.149.109.194]) by ppma06fra.de.ibm.com with ESMTP id 36hjch1thw-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 09 Feb 2021 15:43:05 +0000 Received: from d06av26.portsmouth.uk.ibm.com (d06av26.portsmouth.uk.ibm.com [9.149.105.62]) by b06cxnps3074.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 119Fh3Nm40108316 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 9 Feb 2021 15:43:03 GMT Received: from d06av26.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 25BA2AE056; Tue, 9 Feb 2021 15:43:03 +0000 (GMT) Received: from d06av26.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id B5922AE045; Tue, 9 Feb 2021 15:43:02 +0000 (GMT) Received: from ibm-vm.ibmuc.com (unknown [9.145.1.216]) by d06av26.portsmouth.uk.ibm.com (Postfix) with ESMTP; Tue, 9 Feb 2021 15:43:02 +0000 (GMT) From: Claudio Imbrenda To: linux-kernel@vger.kernel.org Cc: borntraeger@de.ibm.com, frankja@linux.ibm.com, david@redhat.com, cohuck@redhat.com, kvm@vger.kernel.org, linux-s390@vger.kernel.org Subject: [PATCH v3 0/2] s390/kvm: fix MVPG when in VSIE Date: Tue, 9 Feb 2021 16:43:00 +0100 Message-Id: <20210209154302.1033165-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.369,18.0.737 definitions=2021-02-09_03:2021-02-09,2021-02-09 signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 mlxlogscore=750 priorityscore=1501 lowpriorityscore=0 suspectscore=0 phishscore=0 adultscore=0 impostorscore=0 clxscore=1015 malwarescore=0 spamscore=0 mlxscore=0 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2009150000 definitions=main-2102090079 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. v2->v3 * improved some comments * improved some variable and parameter names for increased readability * fixed missing handling of page faults in the MVPG handler * small readability improvements v1->v2 * complete rewrite Claudio Imbrenda (2): s390/kvm: extend kvm_s390_shadow_fault to return entry pointer s390/kvm: VSIE: correctly handle MVPG when in VSIE arch/s390/kvm/gaccess.c | 30 ++++++++++-- arch/s390/kvm/gaccess.h | 5 +- arch/s390/kvm/vsie.c | 101 ++++++++++++++++++++++++++++++++++++---- 3 files changed, 121 insertions(+), 15 deletions(-) -- 2.26.2