Received: by 2002:ab2:7855:0:b0:1f9:5764:f03e with SMTP id m21csp1081416lqp; Thu, 23 May 2024 08:27:52 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCW91djB4QBX34B526LEpOKn4MDKyOfKNYFQ7aJV/O4vfVmJbzm8V1/vhw0G6RsZgUW/hqfiIYsVFCTxCcOUF0+3PZktIx+LLKCjDKqCPg== X-Google-Smtp-Source: AGHT+IG/2PN2kKN7wqXJYoDKc4mLnL92PXwX16Ljt7/pqcXsK0PSbi9FhLVJsW4NDSyK8V4jAeXN X-Received: by 2002:a50:cd5d:0:b0:574:ec96:69d8 with SMTP id 4fb4d7f45d1cf-57832c596e0mr3562269a12.33.1716478071913; Thu, 23 May 2024 08:27:51 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716478071; cv=pass; d=google.com; s=arc-20160816; b=bK1SqyfwKLx2xyg74cGYeLi+VMBfMAEOrwQz6niHBt11BXHdLfZDFhHr8+TbDAIngd 5vZ00Adf/p379YuCmiZiHolFadR79FgmUWCWpjn6VfQjvJ7e+7kCnYjs1kIxkU3/DppI GCWSDcV5bRWLkxH3kI/TG9ivNRWyq9HsDiRoI0hClnHUFwF6g2yy9fUPtaQyAFXLtKm3 x3s51GHcFarMZbbtODJhCyZxipJ6kNl38vU1wGiBM/2z5FLEBwzN183oFiLCm/9Rm76n WXyKbpd/8LZvp8qE0Z/fjoVkZETKePhqGODR1rRctcZna4bTQqXAQqyD3FcCnQwmXZBH pN0Q== 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=C5GM0ixhavCb3lJsnHYS4J/lZEUFFylRa25YYAO3lZY=; fh=GX0fvkucOCHRcz4B5E+nW6876n4q7cvbNpve2stcnbU=; b=VAoFxg1xVdwTQ8qHCv0joQBjFn//1QxIw0ZKxqBqGabQJ5DYCQowuRETtIDQALKJQP 5vpUjvecQfigNuFhHfgG0LvyNETo4d5d8H1xrtTHimYAOvU7aJfWiq7xw7xXyWwngy6t 5rRdhZSh1uCEFc5IEYwRQVg+Eft+fjjfT+1J4XLlc0xIFoE9RfZ8hgCtEnuPlZHHbwNU FPHfV8J46YNwDD8NOjygX0oTJfOBgP1LkIkjLCJTzpUfFfiM4Ruis0v7RXQ+6QrXYgGe AsPLv4FKolNg9rCsIWCMfKfDKPhECyXujTx89roQiN2POvHtUvguNSwmB1sceHY/ZQf2 ldZg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@ziepe.ca header.s=google header.b=QxvdT3f0; arc=pass (i=1 spf=pass spfdomain=ziepe.ca dkim=pass dkdomain=ziepe.ca); spf=pass (google.com: domain of linux-kernel+bounces-187705-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-187705-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id 4fb4d7f45d1cf-578374471c5si1660649a12.483.2024.05.23.08.27.51 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 23 May 2024 08:27:51 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-187705-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=@ziepe.ca header.s=google header.b=QxvdT3f0; arc=pass (i=1 spf=pass spfdomain=ziepe.ca dkim=pass dkdomain=ziepe.ca); spf=pass (google.com: domain of linux-kernel+bounces-187705-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-187705-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 43FFD1F2438B for ; Thu, 23 May 2024 15:19:45 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 7741B111A8; Thu, 23 May 2024 15:19:37 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=ziepe.ca header.i=@ziepe.ca header.b="QxvdT3f0" Received: from mail-qv1-f44.google.com (mail-qv1-f44.google.com [209.85.219.44]) (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 26C89101F7 for ; Thu, 23 May 2024 15:19:33 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.219.44 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716477576; cv=none; b=iH+nXl4TMdjAdSbzr8D69BnBaBmlJn6EcGmYLy00kh7UD2exFnud2HukTmcmUNni2Irkr01ooyd1z2dCh6vpvGEsg4/wcqyqKGJx+7ZN/EWbVB9S3vQPFi/X6e1NywSu7ylXvr18zWn9hhJZ7GQyOmyKU8dLbMOXX1JGCm880z4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716477576; c=relaxed/simple; bh=rZEd8LdQ6Zv26yckL/PfuFMPfamA+s3S+lytwF/58SU=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=LhtipP6NY2BUKAu8Es0L6KaBYru4RwOBoT/ITP8kM5G/ujCU6zrs91iLz4bDbMETLAWQnRp6fjDCJ3uZNEpAVvcZkJE0XLVqRWinU9WUX/69eZa10XvWswanus265CO6X11HzBEWvl753+/PnZsA8pV74/QT2//6y2cZfi8BQ+s= 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=QxvdT3f0; arc=none smtp.client-ip=209.85.219.44 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-qv1-f44.google.com with SMTP id 6a1803df08f44-6ab8e759adbso9876966d6.0 for ; Thu, 23 May 2024 08:19:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ziepe.ca; s=google; t=1716477573; x=1717082373; 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=C5GM0ixhavCb3lJsnHYS4J/lZEUFFylRa25YYAO3lZY=; b=QxvdT3f0OetY2YBgbq6kFihQldxVsBO9P8xWNY7pPU1opsjoRdBtIAJH03jsjk/+Mx QI3VQLVd/ISyg5POOJtiJS0QTnytupG4yeRC4GCRHUKF+NO3JcPjGgdAqiY9ZJgDWA+5 rtVh8Mz4ZW20YZyImMKToYbHqFO6ubmkVyMrklD54ycbWPxwVRMM992VmbzcTTXtYC36 RpJQK0M8QDVgd0KqJTwk71cP+/dwV6znZSyC3I3deNNVvHbpkRZpMXafujmO7WyN2+hQ wcQOtKzY73J0JSYWUpbQW2MY9bVUxtJ/aPoyhpNaGkur/p0ayvx9VUIiwEQ6pHJNa4kW NB4Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1716477573; x=1717082373; 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=C5GM0ixhavCb3lJsnHYS4J/lZEUFFylRa25YYAO3lZY=; b=iYxk7MfcllyetNEirICd5mGlhloqkA1bqLeXe+Em7fgedIcKUuq3xnDYEFX0Kw8rBa whdzW0JSDhZqL53yistt18QBkNfI4NFwOwdNN14j/izFkI4JZZizBUK/b5bWDi6Xzh4G 9Tx9I3leeQt7AnI+Sqv2avPuoGw4+2atbZKIgYvfr4pw3aYqQ+BITyR6q2V7MgWSGkCd zDS5jfoveHNdjCLQaUL4dbi0mgUd7Ly/oGG1UTZIV8kES3HeUtntKJ8w2+4rxE1gjTl4 oEtulhwb0DHa/lO5+x8Wovfyuf9dBmGWtdM1jlGKGr/iV8JI+GNGUsSQMbj4b0P5rk+3 i9zA== X-Forwarded-Encrypted: i=1; AJvYcCU2Rd1w8BMvcQL9+K2wQVrkh7mg2hIjN+kwPBzokZfyolZJOeoqOaE8t3cAaq1zln9AngcZCuYOPdy5LtUeYzM0MEVCTPXNXiUHsbhH X-Gm-Message-State: AOJu0YyPHV7bOhjaglUCxRMAE7K/a3sI8Vk3z5QaAog4d8V/21C6L2Mj FlgZyUgrjW0ToWEE+LYZ46YxQWg5DglOXMkBUB8wWKdzfRsgOz7gvBNCztbtK8U= X-Received: by 2002:a05:6214:3d07:b0:6a0:e690:2f96 with SMTP id 6a1803df08f44-6ab8f5f3c9amr57165256d6.21.1716477573044; Thu, 23 May 2024 08:19:33 -0700 (PDT) Received: from ziepe.ca ([128.77.69.89]) by smtp.gmail.com with ESMTPSA id 6a1803df08f44-6ab818288f0sm16704726d6.146.2024.05.23.08.19.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 23 May 2024 08:19:32 -0700 (PDT) Received: from jgg by wakko with local (Exim 4.95) (envelope-from ) id 1sAAE7-00Fqd0-BJ; Thu, 23 May 2024 12:19:31 -0300 Date: Thu, 23 May 2024 12:19:31 -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 v2 3/3] vfio/pci: Enable PCI resource mmap() on s390 and remove VFIO_PCI_MMAP Message-ID: <20240523151931.GK69273@ziepe.ca> References: <20240523-vfio_pci_mmap-v2-0-0dc6c139a4f1@linux.ibm.com> <20240523-vfio_pci_mmap-v2-3-0dc6c139a4f1@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: <20240523-vfio_pci_mmap-v2-3-0dc6c139a4f1@linux.ibm.com> On Thu, May 23, 2024 at 01:10:16PM +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 mmap() can and should be > supported on all s390 systems with native PCI. Since VFIO_PCI_MMAP > enablement for s390 would make it unconditionally true and thus > pointless just remove it entirely. > > Link: https://lore.kernel.org/all/c5ba134a1d4f4465b5956027e6a4ea6f6beff969.camel@linux.ibm.com/ > Suggested-by: Jason Gunthorpe > Signed-off-by: Niklas Schnelle > --- > drivers/vfio/pci/Kconfig | 4 ---- > drivers/vfio/pci/vfio_pci_core.c | 3 --- > 2 files changed, 7 deletions(-) Reviewed-by: Jason Gunthorpe Jason