Received: by 2002:ab2:6d45:0:b0:1fb:d597:ff75 with SMTP id d5csp131516lqr; Wed, 5 Jun 2024 00:50:00 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCV7itmXzgFfkPxKIcKE2RmId3V9EpXHyObRB0IX9AScsjhZoYl52SkHUaaoJSoQlt2DqU8dm2lKVYx0CAD5VA3rBx9UBFCYVATRcb4kXw== X-Google-Smtp-Source: AGHT+IHOq8YCAe/+X7Tl8cB9A/a3Vh5mPoVYmteAE5qJf3LYuSeCWfCOJsT4bdC/v6ebYqjATFlL X-Received: by 2002:ac2:4e08:0:b0:51c:df1f:2edc with SMTP id 2adb3069b0e04-52bab4b8055mr1378295e87.2.1717573800055; Wed, 05 Jun 2024 00:50:00 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717573800; cv=pass; d=google.com; s=arc-20160816; b=DSNGdF1Xy+T/r1MlaSl+Xsgio+/SmyqgneajkpuWetgBwSlKnf0LSXZs5b31D+Hul2 8A8lEaW1ZcTdX8iBlBkOL/Z+ENB6b5G89XDCxm88SjeQch/C9x+q+zlY2gDajZ12PVlY 9UNFN9WayYoDiWK20fe0QA+Vqm4P9+NTbcmiFtBXsl1Dwg3VjXiI0onx3p2itnynHHVN o++L0uVq7gQu+I7/z145Zl7Nc4Yujmcw8PC2f1SPY+CH4h+88HCo/RZuX+APIVhroCNB DCs+fBnJZ1PK1ZqayRlKTO9KYBJq6eE+GcCmSdVC7lZSBl+nrPwHuOymRTGningtGWqw Q7JQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:list-unsubscribe:list-subscribe:list-id:precedence :user-agent:content-transfer-encoding:autocrypt:references :in-reply-to:date:cc:to:from:subject:message-id:dkim-signature; bh=osj1gmjUJGCd9Px5Ix7W58M6PZiuhGojYTGdcscj2UM=; fh=yP2WciZOhGPdSVd/NxfAUUZL/U2WcLSIsPdjYxZxTSk=; b=i0r9CDTYBi4M4hBOgPtt4j4XK9o2LNJk1S/i7+mKogR4M4BLlB1nr0HRiwrV6M+wej prmK8LdfH+vj7NwdC7jQtHX5F2R2Ru8t20VFXz2FN0z0Q2D8zJLVekJyfsBjTR/uOyyZ Isk/U85CDWzhhU0r8IH/+o+anBzFP/9ZrA+v5JQnMHpN3IKLojYyaAbZzHKYpoRDZjZQ LSST4ySMzJno/wtm7GeOW3sucgjYMcbfEB4e29X3S/i1pJ81SXcnwBjTMK1bwF5Zznjg Paa8LFvv7YenLqQ6jKH8EapDzVQradbt712AcVbQYb8daPIVTMTihEB6VeNto6hI7yj/ HmAw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@ibm.com header.s=pp1 header.b="sK/TvxYk"; arc=pass (i=1 spf=pass spfdomain=linux.ibm.com dkim=pass dkdomain=ibm.com dmarc=pass fromdomain=linux.ibm.com); spf=pass (google.com: domain of linux-kernel+bounces-201900-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-201900-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=NONE dis=NONE) header.from=ibm.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id a640c23a62f3a-a69071324basi305503566b.700.2024.06.05.00.49.59 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 05 Jun 2024 00:50:00 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-201900-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@ibm.com header.s=pp1 header.b="sK/TvxYk"; arc=pass (i=1 spf=pass spfdomain=linux.ibm.com dkim=pass dkdomain=ibm.com dmarc=pass fromdomain=linux.ibm.com); spf=pass (google.com: domain of linux-kernel+bounces-201900-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-201900-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=NONE dis=NONE) header.from=ibm.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 9138F1F23372 for ; Wed, 5 Jun 2024 07:49:59 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id A86A218F2D6; Wed, 5 Jun 2024 07:49:47 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=ibm.com header.i=@ibm.com header.b="sK/TvxYk" Received: from mx0b-001b2d01.pphosted.com (mx0b-001b2d01.pphosted.com [148.163.158.5]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 4A3BB4C6E; Wed, 5 Jun 2024 07:49:43 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=148.163.158.5 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717573786; cv=none; b=sB2tJlenRWYnAOJp/jU/42HpXNjSKv5jKkCuEe+ZCALL0ECE+J/HqjT1cjeSQCB6o7fVg5eh/ztxQcOOmYFDeURYijRHIVEYdK/BzHLuku4ple0/dyls5CDVE0OBI2m4ydX6JFatL8o7/vgawsGSw6T3L1h/5xdE6xbKid8hsr0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717573786; c=relaxed/simple; bh=Bbr9ojDjn6Q/tD7Am814Lo2Z76+y71pFnh1TCukvEXA=; h=Message-ID:Subject:From:To:Cc:Date:In-Reply-To:References: Content-Type:MIME-Version; b=E02kaDbTB3qTkPugX/3/EF4aeVU6X2Y7vpz0WIOxHMrxLJvLbb8Uz4mbvJGvLOzhkWs7tOhu3I/W7YkTTS232yDgbnA0SqJ5jF79h0EEIhcdG2z4OGrfz5G8RcVwsIdgpBF/z8RErOaP1HGBbYLg5Z8Jp57WS7fpZgRWFRiZh/4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.ibm.com; spf=pass smtp.mailfrom=linux.ibm.com; dkim=pass (2048-bit key) header.d=ibm.com header.i=@ibm.com header.b=sK/TvxYk; arc=none smtp.client-ip=148.163.158.5 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.ibm.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.ibm.com Received: from pps.filterd (m0353723.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 455768Mi030779; Wed, 5 Jun 2024 07:49:43 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ibm.com; h=cc : content-transfer-encoding : content-type : date : from : in-reply-to : message-id : mime-version : references : subject : to; s=pp1; bh=osj1gmjUJGCd9Px5Ix7W58M6PZiuhGojYTGdcscj2UM=; b=sK/TvxYkr0mMeRjQpb5NlR3t7noAslZH0hkYd0Pcw8NfEz2oAz5O3q5hTdxAJQQnwNmX jsHPoM29/p3MD5c/9wpquUxDRKoGPX5uG7BDJjtBoTnLm5VYd436L6arFOXcwJMDA9Ae sDSrv9isxiYR/uxda+GPieQjkR3EXasF/AmmKq99hUsQWVzsZiqZ3rzPx2A8J6CLmyTO WUqy6Rb9wSjw6fqasjY2H4IVsIvKvhGY2pw2JNRSViaOnubQh2nyrzrsGmRR3keoDtu5 fgvluAVpFQY3SzewGjgEl2Dy/KoQaytZgizolxWngX95pHzAtb+doCwBdTsoAhJT0wsc Og== Received: from pps.reinject (localhost [127.0.0.1]) by mx0a-001b2d01.pphosted.com (PPS) with ESMTPS id 3yjjfm07cr-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 05 Jun 2024 07:49:42 +0000 Received: from m0353723.ppops.net (m0353723.ppops.net [127.0.0.1]) by pps.reinject (8.17.1.5/8.17.1.5) with ESMTP id 4557jkKR024702; Wed, 5 Jun 2024 07:49:42 GMT Received: from ppma13.dal12v.mail.ibm.com (dd.9e.1632.ip4.static.sl-reverse.com [50.22.158.221]) by mx0a-001b2d01.pphosted.com (PPS) with ESMTPS id 3yjjfm07cm-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 05 Jun 2024 07:49:42 +0000 Received: from pps.filterd (ppma13.dal12v.mail.ibm.com [127.0.0.1]) by ppma13.dal12v.mail.ibm.com (8.17.1.19/8.17.1.19) with ESMTP id 45575Ylu022840; Wed, 5 Jun 2024 07:49:41 GMT Received: from smtprelay05.wdc07v.mail.ibm.com ([172.16.1.72]) by ppma13.dal12v.mail.ibm.com (PPS) with ESMTPS id 3ygg6mansf-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 05 Jun 2024 07:49:41 +0000 Received: from smtpav05.dal12v.mail.ibm.com (smtpav05.dal12v.mail.ibm.com [10.241.53.104]) by smtprelay05.wdc07v.mail.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 4557nbWs3211914 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 5 Jun 2024 07:49:40 GMT Received: from smtpav05.dal12v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id C74DD58052; Wed, 5 Jun 2024 07:49:37 +0000 (GMT) Received: from smtpav05.dal12v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 1360158068; Wed, 5 Jun 2024 07:49:36 +0000 (GMT) Received: from oc-fedora.boeblingen.de.ibm.com (unknown [9.152.212.216]) by smtpav05.dal12v.mail.ibm.com (Postfix) with ESMTP; Wed, 5 Jun 2024 07:49:35 +0000 (GMT) Message-ID: <8891a2fbc3b211ac4c3ab87ecf786214bd9b2a55.camel@linux.ibm.com> Subject: Re: [PATCH v3 0/3] vfio/pci: s390: Fix issues preventing VFIO_PCI_MMAP=y for s390 and enable it From: Niklas Schnelle To: Christian Borntraeger , Gerald Schaefer , Heiko Carstens , Vasily Gorbik , Alexander Gordeev , Sven Schnelle , Alex Williamson , Gerd Bayer , Matthew Rosato , Jason Gunthorpe Cc: linux-s390@vger.kernel.org, linux-kernel@vger.kernel.org, kvm@vger.kernel.org Date: Wed, 05 Jun 2024 09:49:35 +0200 In-Reply-To: References: <20240529-vfio_pci_mmap-v3-0-cd217d019218@linux.ibm.com> <0a4622ce-3826-4b08-ab81-375887ab6a46@linux.ibm.com> Autocrypt: addr=schnelle@linux.ibm.com; prefer-encrypt=mutual; keydata=mQINBGHm3M8BEAC+MIQkfoPIAKdjjk84OSQ8erd2OICj98+GdhMQpIjHXn/RJdCZLa58k /ay5x0xIHkWzx1JJOm4Lki7WEzRbYDexQEJP0xUia0U+4Yg7PJL4Dg/W4Ho28dRBROoJjgJSLSHwc 3/1pjpNlSaX/qg3ZM8+/EiSGc7uEPklLYu3gRGxcWV/944HdUyLcnjrZwCn2+gg9ncVJjsimS0ro/ 2wU2RPE4ju6NMBn5Go26sAj1owdYQQv9t0d71CmZS9Bh+2+cLjC7HvyTHKFxVGOznUL+j1a45VrVS XQ+nhTVjvgvXR84z10bOvLiwxJZ/00pwNi7uCdSYnZFLQ4S/JGMs4lhOiCGJhJ/9FR7JVw/1t1G9a UlqVp23AXwzbcoV2fxyE/CsVpHcyOWGDahGLcH7QeitN6cjltf9ymw2spBzpRnfFn80nVxgSYVG1d w75ksBAuQ/3e+oTQk4GAa2ShoNVsvR9GYn7rnsDN5pVILDhdPO3J2PGIXa5ipQnvwb3EHvPXyzakY tK50f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9WPEgdO3L/qoq3Iuk0SZccGl+Nj8vtWYPKNlu2UvgYEbB8cl UoWhg+SjjYQka7/p6tc+CCPZ8JUpkgkAdt7yXt6370wP1gct2VztS6SEGcmAE1qxtGhi5Kuln4ZJ/ UO2yxhPHgoW99OuZw3IRHe0+mNR67JbIpSuFWDFNjZ0nckQcU1taSEUi0euWs7i4MEkm0NsOsVhbs 4D2vMiC6kO/FqWOPmWZeAjyJw/KRUG4PaJAr5zJUx57nhKWgeTniW712n4DwCUh77D/PHY0nqBTG/ B+QQCR/FYGpTFkO4DRVfapT8njDrsWyVpP9o64VNZP42S+DuRGWfUKCMAXsM/wPzRiDEVfnZMcUR9 vwLSHeoV7MiIFC0xIrp5ES9R00t4UFgqtGc36DV71qjR+66Im0= Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.52.1 (3.52.1-1.fc40) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-TM-AS-GCONF: 00 X-Proofpoint-GUID: _DaVfk06ESKHaR1KOTzz7tsByLTukEzK X-Proofpoint-ORIG-GUID: 6Q0PGbdLrdU6zW_cQLyUG0sJmT_bLCa2 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1039,Hydra:6.0.680,FMLib:17.12.28.16 definitions=2024-06-04_11,2024-06-05_01,2024-05-17_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 spamscore=0 priorityscore=1501 phishscore=0 suspectscore=0 bulkscore=0 clxscore=1015 lowpriorityscore=0 mlxscore=0 mlxlogscore=999 adultscore=0 impostorscore=0 malwarescore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2405010000 definitions=main-2406050057 On Tue, 2024-06-04 at 11:27 +0200, Niklas Schnelle wrote: > On Mon, 2024-06-03 at 17:50 +0200, Christian Borntraeger wrote: > > Am 29.05.24 um 13:36 schrieb Niklas Schnelle: > > > With the introduction of memory I/O (MIO) instructions enbaled in com= mit > > > 71ba41c9b1d9 ("s390/pci: provide support for MIO instructions") s390 > > > gained support for direct user-space access to mapped PCI resources. > > > Even without those however user-space can access mapped PCI resources > > > via the s390 specific MMIO syscalls. There is thus nothing fundamenta= lly > > > preventing s390 from supporting VFIO_PCI_MMAP allowing user-space dri= vers > > > to access PCI resources without going through the pread() interface. > > > To actually enable VFIO_PCI_MMAP a few issues need fixing however. > > >=20 > > > Firstly the s390 MMIO syscalls do not cause a page fault when > > > follow_pte() fails due to the page not being present. This breaks > > > vfio-pci's mmap() handling which lazily maps on first access. > > >=20 > > > Secondly on s390 there is a virtual PCI device called ISM which has > > > a few oddities. For one it claims to have a 256 TiB PCI BAR (not a ty= po) > > > which leads to any attempt to mmap() it fail with the following messa= ge: > > >=20 > > > vmap allocation for size 281474976714752 failed: use vmalloc=3D<= size> to increase size > > >=20 > > > Even if one tried to map this BAR only partially the mapping would no= t > > > be usable on systems with MIO support enabled. So just block mapping > > > BARs which don't fit between IOREMAP_START and IOREMAP_END. > > >=20 > > > Note: > > > For your convenience the code is also available in the tagged > > > b4/vfio_pci_mmap branch on my git.kernel.org site below: > > > https: //git.kernel.org/pub/scm/linux/kernel/git/niks/linux.git/ > >=20 > >=20 > > I guess its now mostly a question of who picks those patches? Alex? >=20 > That matches my understanding as well. >=20 > >=20 > > Any patch suitable for stable? >=20 > I'd almost say all but the last one may be candidates for stable. I > found it hard to pinpoint a specific commit they fix though, hence the > lack of Fixes tag. For the first one I'm actually not sure if e.g. > rdma-core users could also run into this problem when they get swapped > out as I'm not sure if the mapping is pinned there. >=20 Was a bit unclear/wrong above. Obviously MMIO mappings can't be "swapped out" I should have said "are subject to page faults".