From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 4236430F934; Tue, 5 May 2026 10:49:18 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1777978158; cv=none; b=QcHoeY4dYIwV63JFeCwepnBeE9TwFBOAjTJBTbqGnpmuJljoyH/kzANwVS242Ii9d5N2HytLiQccojYjVsvKjh8IIwNlNdvDGPEV1lySgYvqxMsUyH0yL0dQumB6YOVH4N5AYCeqkfnIg5R2Zl4hIw8jjTqpuEaVfcXtVxh3UDI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1777978158; c=relaxed/simple; bh=VwbDdX36fjXj6/K+MlyisBmDaAMjjmJqPH15dknt6nM=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=a6xqBLQNQ2IT7yAHQZT13b0GQpJ4x+hXQhd73EqjaRnO7vjHcCbAHe8Pmc2L9Meru3LfybnUVW0uZ22Dc1vjAYLWJVMZOTvpFfIJ19D/9WN4KlGqwHxt+l65hWOVuFR0RAXud87aRQPVHX7n4VczV1DZSdxih8lnzjsbVFfE65c= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=da+b6HqW; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="da+b6HqW" Received: by smtp.kernel.org (Postfix) with ESMTPSA id F041BC2BCB9; Tue, 5 May 2026 10:49:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1777978158; bh=VwbDdX36fjXj6/K+MlyisBmDaAMjjmJqPH15dknt6nM=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=da+b6HqW0iC4iVIMeqmLLKKYUyCkC20+EKjgnNIOfhj0BOoavtxV+TYZnp+psCoog ymO7YYB0UB696539X9HSdwlZC4xNXn9or3FMBnkO+Ezj24w5unfS2tNhDb4JPYthH7 10XIF+45HCSplMR5GAXyevwU4QS9hzTUZw+sVqny/1Ws3hfOayG6exEzqrviw3MwOi 8VEzi0hOK1qw7W4YjDScYqzYNPAhDCx0WgFReAVnfrhZh8cZ7mlQBTiaKSLO9hDYVQ M+ZFZ1KZefRb35bruPCMTxi7eVWk3jawx4j45akPoDIHuqFWHNrli2mZo4tdvIDFvG 6oDB5sN1PmQ1Q== Date: Tue, 5 May 2026 13:49:11 +0300 From: Leon Romanovsky To: Jason Gunthorpe Cc: Alex Williamson , Matt Evans , Alex Mastro , Christian =?iso-8859-1?Q?K=F6nig?= , Mahmoud Adam , David Matlack , =?iso-8859-1?Q?Bj=F6rn_T=F6pel?= , Sumit Semwal , Kevin Tian , Ankit Agrawal , Pranjal Shrivastava , Alistair Popple , Vivek Kasireddy , linux-kernel@vger.kernel.org, linux-media@vger.kernel.org, dri-devel@lists.freedesktop.org, linaro-mm-sig@lists.linaro.org, kvm@vger.kernel.org Subject: Re: [PATCH 4/9] vfio/pci: Convert BAR mmap() to use a DMABUF Message-ID: <20260505104911.GB11063@unreal> References: <20260416131815.2729131-1-mattev@meta.com> <20260416131815.2729131-5-mattev@meta.com> <20260501161915.75525c15@shazbot.org> 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: On Mon, May 04, 2026 at 04:40:41AM -0300, Jason Gunthorpe wrote: > On Fri, May 01, 2026 at 04:19:15PM -0600, Alex Williamson wrote: > > > Exporting dma-bufs from vfio-pci is a feature, but mmap of MMIO BARs is > > a legacy requirement. That legacy requirement now depends on > > PCI_P2PDMA, which depends on 64BIT and ZONE_DEVICE. > > That should be split up now, Leon missed it when he added the new > APIs that didn't require ZONE_DEVICE.. Sorry, what did I miss here? VFIO_DMABUF is an optional feature and is enabled only when P2P support is available. It does not affect legacy systems where P2P cannot be enabled. Thanks