Received: by 2002:ab2:6816:0:b0:1f9:5764:f03e with SMTP id t22csp3038849lqo; Tue, 21 May 2024 05:17:35 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUNu0VvFRqkXjvUVJp7cGqdtEg6EbCGQxHl02hB2G71+BrtPRsnxsNB+1pA8aWi7ivwrCjjfFoc7Z/WdoO19kM7t6R+C3gawduKX11Ptw== X-Google-Smtp-Source: AGHT+IHNe6xmo8cMwWZKwTDAC0Qpjhq63pYcFOESCiDd7Tw128K1Qir6p2POtW9TDs6ob0NdMlVu X-Received: by 2002:a05:6a21:81af:b0:1ad:999b:de34 with SMTP id adf61e73a8af0-1afde197857mr37360373637.38.1716293854266; Tue, 21 May 2024 05:17:34 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716293854; cv=pass; d=google.com; s=arc-20160816; b=NJidTEFR23wIcDOKBsdcagrm/Cy30fJfn+xSp6XCJUwR7rj6D762t1WV4WdI7HodA8 C3egFJ00sQtFFqO2ypFiBoKzppdTijPN4xcinIohC+/6Rw3JqK/q0V9g+SD92fM+iR+J 6DNK3wqPRoo3+zAODDnwt3TFn67EuDtK1csa2MbR7y6oU0VbHBUEafA0SdRtMYq96Bx/ jH+T/u2HDG/gwTEdewnxwCw7oMlQKaAyx/CN1duswT2sqMHeY/pHKovxRwUXFYNh66d3 WsXPZar8z8A7+W+RIBAV1EEk6vHQ2WeJDEP6SuU8m5oVucvqNMWwp8bIdIdkGwmpSCR7 CTWg== 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 :content-transfer-encoding:cc:to:in-reply-to:references:message-id :subject:date:from:dkim-signature; bh=Buw4eF8ZL2S9x7Ww4CLjvGShtmwTm3IYHiPIwey83ws=; fh=oGt6q2ZwpnJzXptinqitReeMFDIe4eIOmPhwsLhLj/U=; b=J98xA2j0cxE5dRkEbTx5SGoGNyO/2FRkupC4uKaZLiT7k0pcODOxGSA0Eh30Zf/v3g j9tHviEL9xrhyw8AMusDJrY77SQU5mzqqx+9a2rC5PsXbFQI4ediwa6ggYzylxv01PfC i90hxBArg/ngmGGTCOXEEDEs78Rd0RLBiZt4sgwIMl8R9GE1q5bK+t9Pl5XojdA4sX2J XkOlGK0+uh8G1ImWAT+gOCflcB44hMUON4udaFqtgZ4fVcXs9Yx1S4Y9WDavOTIq42rF vRi+Mg9tXFS2UeFWAIlJ+kxVihN9bBUCzAu3MpY74vrxKuZbgYdsG0bNTqCRZ5Rt39oN Yzsw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@ibm.com header.s=pp1 header.b=rrBAZyoz; 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-184934-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-184934-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. [139.178.88.99]) by mx.google.com with ESMTPS id 41be03b00d2f7-63413d72b1bsi1290299a12.845.2024.05.21.05.17.34 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 21 May 2024 05:17:34 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-184934-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@ibm.com header.s=pp1 header.b=rrBAZyoz; 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-184934-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-184934-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 3A8A0284361 for ; Tue, 21 May 2024 12:16:36 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 22B3F78C88; Tue, 21 May 2024 12:15:42 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=ibm.com header.i=@ibm.com header.b="rrBAZyoz" 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 7DC7477118; Tue, 21 May 2024 12:15:39 +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=1716293741; cv=none; b=GwBwajtrtetFCS2uCQwWf1oZYqGbMI6YhPxm7ZERCqoBLlHUamqcUSEDtmqOqLE/x0i0+c+ChSD+jhfrI3u2IMrAzfGvs8Vt8dOBBf7Vp/Mqlh4KwS6FVljh+aTD7sXnnctZIpH1SBq+9q9miyWcF16XTQKXZyNKy+CToC6WZSA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716293741; c=relaxed/simple; bh=r6NUAZTvpLRwycDnLcFtYRyW2y8FYnVfEO5UQERDHKw=; h=From:Date:Subject:Content-Type:Message-Id:References:In-Reply-To: To:Cc:MIME-Version; b=dVw6ZBgLVceZB/Hhsmq+fx4vTox43d5M0E+faIyOxA6KPGlrVuUVQleQyR1cOhTeAgYNvBcwRM5MnZJebljH8bWd/LnGce30mhq740ji1+IP9/9eBkxXibOWubhY1xN6zs/D5S2Vnl7KnXjg+KveNxygoMP/3m+o0haIb0kZu7E= 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=rrBAZyoz; 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 (m0356516.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 44LC3Fhg025469; Tue, 21 May 2024 12:15:38 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ibm.com; h=from : date : subject : content-type : message-id : references : in-reply-to : to : cc : content-transfer-encoding : mime-version; s=pp1; bh=Buw4eF8ZL2S9x7Ww4CLjvGShtmwTm3IYHiPIwey83ws=; b=rrBAZyoztA4t5GokwFz3tfE8lkXPoI+SdvtT6BhBG67A+L6T4L5DNryveAH1PDXYWuWx wnB3q+85QghQxCNFqDE3B1VsdFsvNz34ClB+B8HGHHC1iylLbWbBETKEEfqGM5qplBUj OWcToXGC0kEtYt/WVcq1KSXFiIbYisVzZwrewgln1VpCxjDKAl7UraStiZ00bZOToUYQ pRnEdQnlQmgXBx3qvyIm9Ux1h6zc3hja9h7kw++y24w0OPXAPGcrap0bPcInPckwP3Ck r3yayo7y4P8H6HYdbdGFXIWVbCDKkfWldwYRLmtxIb5mETZaXt44W7DDexSR48oI3m7+ cQ== Received: from pps.reinject (localhost [127.0.0.1]) by mx0a-001b2d01.pphosted.com (PPS) with ESMTPS id 3y8u92g1a1-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 21 May 2024 12:15:38 +0000 Received: from m0356516.ppops.net (m0356516.ppops.net [127.0.0.1]) by pps.reinject (8.17.1.5/8.17.1.5) with ESMTP id 44LCFbgB011685; Tue, 21 May 2024 12:15:37 GMT Received: from ppma23.wdc07v.mail.ibm.com (5d.69.3da9.ip4.static.sl-reverse.com [169.61.105.93]) by mx0a-001b2d01.pphosted.com (PPS) with ESMTPS id 3y8u92g19x-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 21 May 2024 12:15:37 +0000 Received: from pps.filterd (ppma23.wdc07v.mail.ibm.com [127.0.0.1]) by ppma23.wdc07v.mail.ibm.com (8.17.1.19/8.17.1.19) with ESMTP id 44LBHFfV026447; Tue, 21 May 2024 12:15:37 GMT Received: from smtprelay02.dal12v.mail.ibm.com ([172.16.1.4]) by ppma23.wdc07v.mail.ibm.com (PPS) with ESMTPS id 3y785mddjb-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 21 May 2024 12:15:37 +0000 Received: from smtpav06.dal12v.mail.ibm.com (smtpav06.dal12v.mail.ibm.com [10.241.53.105]) by smtprelay02.dal12v.mail.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 44LCFXRF31851198 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 21 May 2024 12:15:36 GMT Received: from smtpav06.dal12v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id E44C158069; Tue, 21 May 2024 12:15:33 +0000 (GMT) Received: from smtpav06.dal12v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 21F555805D; Tue, 21 May 2024 12:15:32 +0000 (GMT) Received: from tuxmaker.boeblingen.de.ibm.com (unknown [9.152.85.9]) by smtpav06.dal12v.mail.ibm.com (Postfix) with ESMTP; Tue, 21 May 2024 12:15:31 +0000 (GMT) From: Niklas Schnelle Date: Tue, 21 May 2024 14:14:59 +0200 Subject: [PATCH 3/3] vfio/pci: Enable VFIO_PCI_MMAP for s390 Content-Type: text/plain; charset="utf-8" Message-Id: <20240521-vfio_pci_mmap-v1-3-2f6315e0054e@linux.ibm.com> References: <20240521-vfio_pci_mmap-v1-0-2f6315e0054e@linux.ibm.com> In-Reply-To: <20240521-vfio_pci_mmap-v1-0-2f6315e0054e@linux.ibm.com> To: Gerald Schaefer , Heiko Carstens , Vasily Gorbik , Alexander Gordeev , Christian Borntraeger , 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, Niklas Schnelle X-Mailer: b4 0.12.3 X-Developer-Signature: v=1; a=openpgp-sha256; l=1087; i=schnelle@linux.ibm.com; h=from:subject:message-id; bh=r6NUAZTvpLRwycDnLcFtYRyW2y8FYnVfEO5UQERDHKw=; b=owGbwMvMwCH2Wz534YHOJ2GMp9WSGNJ8JsROmrSjg9v4Vc2fCiYpgwT/nr21IveULA/+ZuoUb bYJWzyjo5SFQYyDQVZMkWVRl7PfuoIppnuC+jtg5rAygQxh4OIUgInEujAynN380stzYUT9gVh+ 5TkMzkcmp/OlVHXcVb8q729qorhkLiPDoQ9G2aE7uvRiW3le35z4//UUg6nZdiYLTf5uW2WanLO LFwA= X-Developer-Key: i=schnelle@linux.ibm.com; a=openpgp; fpr=9DB000B2D2752030A5F72DDCAFE43F15E8C26090 X-TM-AS-GCONF: 00 X-Proofpoint-ORIG-GUID: wWG7Pd-2LYWqFNMnvba9PHpu2T7OhGcg X-Proofpoint-GUID: H6MTPEmJ4HJTX3Ccmqq9R31R2j9QU6SO Content-Transfer-Encoding: 7bit X-Proofpoint-UnRewURL: 0 URL was un-rewritten Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1039,Hydra:6.0.650,FMLib:17.12.28.16 definitions=2024-05-21_07,2024-05-21_01,2024-05-17_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 malwarescore=0 spamscore=0 suspectscore=0 mlxlogscore=629 priorityscore=1501 mlxscore=0 lowpriorityscore=0 bulkscore=0 impostorscore=0 clxscore=1015 adultscore=0 phishscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2405010000 definitions=main-2405210091 With the introduction of memory I/O (MIO) instructions enbaled in commit 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. Thus VFIO_PCI_MMAP can be enabled on all s390 systems with native PCI allowing vfio-pci user-space applications direct access to mapped resources. Link: https://lore.kernel.org/all/c5ba134a1d4f4465b5956027e6a4ea6f6beff969.camel@linux.ibm.com/ Signed-off-by: Niklas Schnelle --- drivers/vfio/pci/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/vfio/pci/Kconfig b/drivers/vfio/pci/Kconfig index 15821a2d77d2..814aa0941d61 100644 --- a/drivers/vfio/pci/Kconfig +++ b/drivers/vfio/pci/Kconfig @@ -8,7 +8,7 @@ config VFIO_PCI_CORE select IRQ_BYPASS_MANAGER config VFIO_PCI_MMAP - def_bool y if !S390 + def_bool y depends on VFIO_PCI_CORE config VFIO_PCI_INTX -- 2.40.1