Received: by 2002:ab2:7855:0:b0:1f9:5764:f03e with SMTP id m21csp659550lqp; Wed, 22 May 2024 16:20:38 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWkCxj/Lc9cPx/xsIp1P6cOf2pR2wzXoQnpOnycLCIOI7t0rpewZJVYRNat7TqXVSnrr6OGE4fULCTHDn3Usn1Ukx2yWX9S3HOtzAgN/A== X-Google-Smtp-Source: AGHT+IF+27ku2qzNVeKLGVLrUcmWjsEdPdHEcUMC7b9jURaK+iJqefB181OlxBr1ix91yhgRW7UN X-Received: by 2002:a50:f60c:0:b0:572:9474:5959 with SMTP id 4fb4d7f45d1cf-578329a2962mr2093567a12.8.1716420038619; Wed, 22 May 2024 16:20:38 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716420038; cv=pass; d=google.com; s=arc-20160816; b=Q4TbLDoA0kZPvhJWvqjluoTCwP7OEzDYw7sRVeCODPkmulfwKZo2Kgf0Yk/hzotdAT gR41cKhR7T1iSvPvoWk5HOYMcwilO0lKwOHsCsMNS7oLvQNyPd70uZtizSpTE5P1YEEL 0q2SlRwgk/JPPsFG3enbRQW34qowqU1uWooRfxW6aFOYbGTZKI6LUBKPmBkeNuLLXLt+ +Q0lyHCiGi0wrS2zzz1+LV1YqzIFibxNPkkx23zogLZ1Cq58cA7jJcV5KacTb+zV9JZl cAMIeumU8SUYHjdbGzGBpEL/4k8UUUGrgu2MOrAmtLWNXQeIE5Yi1MFiyf/aIACSFNOJ N7vg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=hRVT/HQCpieEX4UPQ3b9FruvZ7YPs6vzZePRdAjyEWU=; fh=YVZjXFmNV8SWsKh/gTMphM0vbsxLCAl027TeW6DB1BM=; b=O/igSr9cYmDZk9VM/S2U1+z2EBgtl8hUj8YY+zoM8YvtHuel2+7+7WAYppyh9fyMDM IWT5EEtc/4CVR1KrX9R7plWln3wm6L7M7Up+Rt8uF/7SY7s3oESY5LXnlaDbVm7bEysj ZcycfML+s0HahKfe/26Bz4VwzMVXPFPr5nVUQNvAmpvNW6pmYDLFLcgUykfsh8aYbZCH 3a6I/lkE5MiRT09W5ixqkXkeXLuI9wRDiljUIDp5KmNXaJu3VgsYQAa9DLBlrlJ6EZ2c bEaBS1utVdL/7GOajEi6mLpxzGi04CAUc1gFCWebfuedX0V2zPhLdXAduocM6gwrc8CO RiMg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@ziepe.ca header.s=google header.b=ctNuss0D; arc=pass (i=1 spf=pass spfdomain=ziepe.ca dkim=pass dkdomain=ziepe.ca); spf=pass (google.com: domain of linux-kernel+bounces-186807-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-186807-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id 4fb4d7f45d1cf-574ebab685dsi9673296a12.53.2024.05.22.16.20.38 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 22 May 2024 16:20:38 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-186807-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@ziepe.ca header.s=google header.b=ctNuss0D; arc=pass (i=1 spf=pass spfdomain=ziepe.ca dkim=pass dkdomain=ziepe.ca); spf=pass (google.com: domain of linux-kernel+bounces-186807-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-186807-linux.lists.archive=gmail.com@vger.kernel.org" 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 31CA11F22384 for ; Wed, 22 May 2024 23:20:38 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 06022149C73; Wed, 22 May 2024 23:20:30 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=ziepe.ca header.i=@ziepe.ca header.b="ctNuss0D" Received: from mail-yw1-f176.google.com (mail-yw1-f176.google.com [209.85.128.176]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id E47768004F for ; Wed, 22 May 2024 23:20:27 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.176 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716420029; cv=none; b=MMobGPvhwS/RpLCm/VFwTvljS1cVUoDhlHyhdMZ8kXnMfa9urlFTmpvl/90qQf7xxsLWd+42a+Pr4yKP2tTYD5pNLTGvkYJy6sdnH7BChdon3HOSU8UtN6EWrzG5Vi5RL9NxOFsmTtK1EOs68F/gkk7Fx6ZFeQQovJSDkrEty18= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716420029; c=relaxed/simple; bh=sw8yapCLRtTv5bLqcNyAlitdCMqg+LKpbh2Il4sznmk=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=SlDUAgJamFVlVMRybxebPfA5KrwYFySTL972TqrApVFe+vI9JYAYnEsI0/wgGedPKVdGzX2AVokdil2Np55A7nn8VYLi/csfWONszOeVpu3bqiqWpHgjmbj1/ZGCV78Klt4xvMPbQSScIFgFqhU/Ww5t4jcMzqzrqy+i+7BpzUI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=ziepe.ca; spf=pass smtp.mailfrom=ziepe.ca; dkim=pass (2048-bit key) header.d=ziepe.ca header.i=@ziepe.ca header.b=ctNuss0D; arc=none smtp.client-ip=209.85.128.176 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=ziepe.ca Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=ziepe.ca Received: by mail-yw1-f176.google.com with SMTP id 00721157ae682-6209e8a0386so13746267b3.0 for ; Wed, 22 May 2024 16:20:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ziepe.ca; s=google; t=1716420027; x=1717024827; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=hRVT/HQCpieEX4UPQ3b9FruvZ7YPs6vzZePRdAjyEWU=; b=ctNuss0Dyy3Rxrd/Q6AUBdArj6zQJX8n9finRlT2oLz2zv+GA2SPOg9yrqhLjRYw6p BLR3PyQYXtO9AyFvxvT/se/JVm9YJq1uJ8E95sDC9SehVyhDPgKifKqiF1J+Mi8nYU2o IrHJmqzkjDd31XLRoJlhD5oPkM7OduWkkGsaajWY9w+F45qPKQ4pc+d6Gr4okG8z4gpj +v8U5SVg2PQ2tmldNAmhJPoPsvUvnl7ykC9smDeRaeZplsn/rhq269GOAelk1FKsNt6I aeBXmw0nmjdixEsNMhdimWxwqWVP8mXXQzEzFUixatd1dcHFeemC+W9qPjcQ6TNXp8lX uSuQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1716420027; x=1717024827; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=hRVT/HQCpieEX4UPQ3b9FruvZ7YPs6vzZePRdAjyEWU=; b=GG17gurAmZqMB9UibAFbN/5G6yF+WV4r9Q9FUut2pn68TBw69RqamUo+7CBuG5CTvX nS3xz4r7YvalKzz1eXIDEBGGGHXPU2123CAmwXWNUPmb53hX3qCtSE3agdZKf+66dfl+ L7Duwply+C0GlQlYiBhkQQf5jZYEYqWRYML1G87qv7h0hMGGSX78ou2sZP4pILotq/1K QNXhofP3PZO1gwDrhRw3wNNuuIK6JHvYGEJm73sdgy0g6Ilm1MkYkvd2AtYAaeLYEGjp ePuIvtbZrVGy4fd+KfkDm2XGS4fi014uEvhUrz07vTf9LnGtJIj7UeOc0YUUji4giuni Xerg== X-Forwarded-Encrypted: i=1; AJvYcCXhQfHdyC3o7auRa331mP7Um0roDsyE4cjev77ZFB23XnV9SML/tLSOpo0e2ubMeJhM9XfMdL+YmaXdohpaHQJdyy0NImaur/cd9QGi X-Gm-Message-State: AOJu0Ywgg75BdoFzVX3qJ42uKgZ09pq3amAxG21PpjIAZPnmZU3cXTsG CFQnJfgtrTGRnEJ1WPcJH9BFT0ROPdvmVMyNwIaaZoj0u79MsbK48HfQrVBTCX4= X-Received: by 2002:a81:4524:0:b0:61a:ca09:dae3 with SMTP id 00721157ae682-627f0975f7emr25218317b3.26.1716420026923; Wed, 22 May 2024 16:20:26 -0700 (PDT) Received: from ziepe.ca ([128.77.69.89]) by smtp.gmail.com with ESMTPSA id 6a1803df08f44-6aab86b0e55sm33972586d6.85.2024.05.22.16.20.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 22 May 2024 16:20:26 -0700 (PDT) Received: from jgg by wakko with local (Exim 4.95) (envelope-from ) id 1s9vFx-00DcPG-7p; Wed, 22 May 2024 20:20:25 -0300 Date: Wed, 22 May 2024 20:20:25 -0300 From: Jason Gunthorpe To: Niklas Schnelle Cc: Gerald Schaefer , Heiko Carstens , Vasily Gorbik , Alexander Gordeev , Christian Borntraeger , Sven Schnelle , Alex Williamson , Gerd Bayer , Matthew Rosato , linux-s390@vger.kernel.org, linux-kernel@vger.kernel.org, kvm@vger.kernel.org Subject: Re: [PATCH 3/3] vfio/pci: Enable VFIO_PCI_MMAP for s390 Message-ID: <20240522232025.GH69273@ziepe.ca> References: <20240521-vfio_pci_mmap-v1-0-2f6315e0054e@linux.ibm.com> <20240521-vfio_pci_mmap-v1-3-2f6315e0054e@linux.ibm.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20240521-vfio_pci_mmap-v1-3-2f6315e0054e@linux.ibm.com> On Tue, May 21, 2024 at 02:14:59PM +0200, Niklas Schnelle wrote: > 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 Should we just purge this kconfig entirely? It is never meaningfully n now? Jason