Received: by 2002:ab2:6309:0:b0:1fb:d597:ff75 with SMTP id s9csp875164lqt; Fri, 7 Jun 2024 00:50:54 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVut+Jcg8/as0Tyqcl+b9rdrBvpl3fnzrtAvZzdh4VrRX6CUA5xQvpvnBIvtT+/aq6wJYuVhcBZ/Q0uteCI6BdkgejNR/C05uRpMITyEQ== X-Google-Smtp-Source: AGHT+IHqv2SBFlN01hIaDTGtWGg1E2G5GJCdSz/c5CmYlUg8qOzesCNUXpDKFt2EHXVdkSoKtNAe X-Received: by 2002:a17:90a:c70d:b0:2c0:21d1:1e0a with SMTP id 98e67ed59e1d1-2c2bcac9751mr1790384a91.11.1717746654364; Fri, 07 Jun 2024 00:50:54 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717746654; cv=pass; d=google.com; s=arc-20160816; b=urkf8Y3WWhIAaRUYrcgaCIylyzzJLyWFUipqciAq6dSBTunMLKg6z0ux7HxdHGPxcT gb00TdTDTmVsyZC2iRQRZq6HD41joOGG5Z+E0XuHijQLcZd79wm88KWZtudV2DhCL5ak cACIp/Gpt+HbpnDOmeI0/TtsNiu/KZ6DRwxDsybeWRoNCXAdmfrho5Z4VrRQIVIm2pVX k236eQgRMjSTcmQJ9pbADxEn/9pAPrbKrFaKMaFpsf9D6HbwtvjNj491gi9GiD0m9pHr nubWfp1mIxnGvFXlpN9A/98tpwIefwC/jFQ0vXNiKzNF8w9Qxouo5YDA037iBEqLmN3l ykCA== 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=hhcwLngjY53k5eUZmr1Qu+BPCSbRnfbW7xrkNI0eEsk=; fh=xuGnP/q6uG1xYHvHNE+98tmr5tjw9iU9ejGxjMBLyVA=; b=QT7uIOVWcSY4+w7tlPXxLl0DNa7j3qxEpAtKORTTSs8VeDPrRr3YawFjWb4jlXHUku k7owtw1AgXZkKtl62QQDFIpIlFDtbE6DMOMjo0QfRFRnJOytp4VYGBGGs5Iy8w5r3C9A nrN/w4ecE83v+kr5AYMeKX1WX/5zXzZgDh/6uND/fM/m4AE4ZKoS4y8PGOh0D0vx+sMu n8Gs0JZQYnwLPgq7iDEbvtjRGHcG0Q6eZJyUV5/LBr8vMMc61HJrCAqO9X1u7tp8913M AMOQ4RhDc/SjKQY7dV9RwC2YVaCEveq8ssW/XzHSkKy+Rrx/Wz+Uf2vLfi+XAsM8sD/+ CKZg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@ibm.com header.s=pp1 header.b=FK3cN5fY; 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-205562-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-205562-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=NONE dis=NONE) header.from=ibm.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id 98e67ed59e1d1-2c29c20454bsi2604445a91.15.2024.06.07.00.50.54 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 07 Jun 2024 00:50:54 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-205562-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@ibm.com header.s=pp1 header.b=FK3cN5fY; 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-205562-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-205562-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 982F028A165 for ; Fri, 7 Jun 2024 07:50:53 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 5DFF715A87A; Fri, 7 Jun 2024 07:50:39 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=ibm.com header.i=@ibm.com header.b="FK3cN5fY" 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 E0419502BE; Fri, 7 Jun 2024 07:50:35 +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=1717746638; cv=none; b=FhqwYcrJ9H2ibjeb/jSdjtEEVMNwCt2D9WRy6/fDUFF+ytkzfCNl09d/B6HGdL3d/nDSmZWe5hyNtMrIioJ8mWv2gYEe15BRahJ9nSp43rIVWNlg7z47SFHa6VM1gMxoRzS5cPYcfXSJKYfsoQmR0lt8tfLW6BvMlY6nQW473aY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717746638; c=relaxed/simple; bh=rkh7ijIQiT3nPJKtZ3dEpeLJMQZrRAriP8ZxhHqkZ34=; h=Message-ID:Subject:From:To:Cc:Date:In-Reply-To:References: Content-Type:MIME-Version; b=Y46583Mts6ffCaSuK3iTPCaovRh4BOT9FDLQnIJZ4XTB1TV9kP8vBRsivLHsxqh9sL+jbEG0u9AxFUSbm2a5H2aJxiFLpoVw7o5j89IYtntrIZNwFwPAdfzd4LiD7qBjQnUgrn9x0Lol1fcghgz9iCsuaWvN2Iabp0QupBKLqJA= 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=FK3cN5fY; 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 (m0360072.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 4577hlMZ031518; Fri, 7 Jun 2024 07:50:34 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=hhcwLngjY53k5eUZmr1Qu+BPCSbRnfbW7xrkNI0eEsk=; b=FK3cN5fYaOQZM2tUO8AknhS7LgnKXBGJ47ILXtgdQdx5CoSGQGszc/C4Vk7fuvucvk3Q bcoGKNFsyZt0DIrGcIHBACojp1U1CRnZ5VNl7537hZenfXf9+WK8heYZTCvUybsSSRhX qGNUxPscRuxxpMAc1s1tUuju4JWnOGqPFsjddRkeDNgnwZ6V08HrZ1QsvDBLaQSo4z2p pxez4k2JdmkoCAlaSG99vl2v/tU5nUwL/Plz1bxbZxgObJPhFk/DlpNZKN06p2VDROEz XUGzandcrFhI9fen1zmeqjQqTertNh+wFmw8V3z1g1SU2ur+1n59y+TKFvTB65NXu0HS yA== Received: from pps.reinject (localhost [127.0.0.1]) by mx0a-001b2d01.pphosted.com (PPS) with ESMTPS id 3ykx2bg0at-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 07 Jun 2024 07:50:34 +0000 Received: from m0360072.ppops.net (m0360072.ppops.net [127.0.0.1]) by pps.reinject (8.17.1.5/8.17.1.5) with ESMTP id 4577oXGE009028; Fri, 7 Jun 2024 07:50:33 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 3ykx2bg08n-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 07 Jun 2024 07:50:33 +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 4576Muwl022840; Fri, 7 Jun 2024 07:47:15 GMT Received: from smtprelay06.wdc07v.mail.ibm.com ([172.16.1.73]) by ppma13.dal12v.mail.ibm.com (PPS) with ESMTPS id 3ygg6mq5j3-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 07 Jun 2024 07:47:15 +0000 Received: from smtpav01.wdc07v.mail.ibm.com (smtpav01.wdc07v.mail.ibm.com [10.39.53.228]) by smtprelay06.wdc07v.mail.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 4577lBD218612928 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 7 Jun 2024 07:47:13 GMT Received: from smtpav01.wdc07v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id AB1215804B; Fri, 7 Jun 2024 07:47:11 +0000 (GMT) Received: from smtpav01.wdc07v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 17DA858068; Fri, 7 Jun 2024 07:47:09 +0000 (GMT) Received: from [9.179.22.112] (unknown [9.179.22.112]) by smtpav01.wdc07v.mail.ibm.com (Postfix) with ESMTP; Fri, 7 Jun 2024 07:47:08 +0000 (GMT) Message-ID: 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: Alex Williamson , Christian Borntraeger Cc: Gerald Schaefer , Heiko Carstens , Vasily Gorbik , Alexander Gordeev , Sven Schnelle , Gerd Bayer , Matthew Rosato , Jason Gunthorpe , linux-s390@vger.kernel.org, linux-kernel@vger.kernel.org, kvm@vger.kernel.org Date: Fri, 07 Jun 2024 09:47:08 +0200 In-Reply-To: <20240606112718.0171f5b3.alex.williamson@redhat.com> References: <20240529-vfio_pci_mmap-v3-0-cd217d019218@linux.ibm.com> <0a4622ce-3826-4b08-ab81-375887ab6a46@linux.ibm.com> <20240606112718.0171f5b3.alex.williamson@redhat.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+oTQk4GAa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gvYWv3Eg/8H4QWlrjLHHy2AfZDVl 9F5t5RfGL8NRsiTdVg9VFYg/GDdck9WPEgdO3L/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: 01t1-mc8kMbq3sHeBoc9QtJE2X3GEeV6 X-Proofpoint-ORIG-GUID: mcYWHJIijesqiidznKDFl26pvMZWH98G 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-07_02,2024-06-06_02,2024-05-17_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 mlxscore=0 lowpriorityscore=0 spamscore=0 impostorscore=0 malwarescore=0 bulkscore=0 phishscore=0 priorityscore=1501 suspectscore=0 clxscore=1015 adultscore=0 mlxlogscore=999 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2405010000 definitions=main-2406070054 On Thu, 2024-06-06 at 11:27 -0600, Alex Williamson wrote: > On Mon, 3 Jun 2024 17:50:13 +0200 > Christian Borntraeger wrote: >=20 > > 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 > >=20 > > I guess its now mostly a question of who picks those patches? Alex? > >=20 > > Any patch suitable for stable? >=20 > Nothing here looks like stable material to me. 1/ only becomes an > issue when mmap of MMIO is allowed on s390 (ie. 3/), 2/ is generic, but > only really targets a device found on s390, and finally 3/ is > essentially enabling a new feature. I trust your judgement and was unsure too. I think for the s390_mmio_read/write syscalls the only existing users out there are via rdma-core, so unless Jason tells us that he thinks they could also be affected by the lack of page fault handling I see no problem in going upstream only. >=20 > If we expect any conflicts with 1/ in the next merge window I can take > a branch for it and apply 2/ and 3/ through the vfio tree, otherwise I > can bring them all through the vfio tree if the s390 folks agree. > Thanks, >=20 > Alex >=20 I also agree with this going via the vfio tree. I don't forsee conflicts with 1. Thanks, Niklas