From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-qk1-f174.google.com (mail-qk1-f174.google.com [209.85.222.174]) (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 17CDF361662 for ; Fri, 12 Jun 2026 13:11:32 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.222.174 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1781269894; cv=none; b=caOBCnClE7Z8hnVqu4l4U8dRSCyHa6I/PhyFK1ChIj/d7c52zI7SDjtgcJGdj0NlzNIkcyCe+1bSH+TeGQnU5pwVPUZ6GSCvlacaZQcNaDrzxUY46uboKHNJfZZKztKiW1qp8Rb11uz0Y9RARPlspDeLCdWGzq9voWg6ZdIWQBk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1781269894; c=relaxed/simple; bh=6RLM95tVXhhqTEAI3bs8f9Td4O4dFxD+RZMu3o1Spsk=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=IQ2UwZUAdW5psWlkl5hl16VAhiZn2bdN6+fQ12G7utSba8liJuoTmt/f3kxOfVG9BNtm4udv7XS2nztsrQT909FJvnCzI9SmehQOU41IF2lvEntc/7gLmb/HJGtw9rzTE9Bi/bFViNCFJZ68z8ZBQ7Bmt8KuHwGziQo9wDzOXqw= 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=WRnVfwiY; arc=none smtp.client-ip=209.85.222.174 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 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=ziepe.ca header.i=@ziepe.ca header.b="WRnVfwiY" Received: by mail-qk1-f174.google.com with SMTP id af79cd13be357-915bf8800a2so112177985a.0 for ; Fri, 12 Jun 2026 06:11:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ziepe.ca; s=google; t=1781269892; x=1781874692; 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=SY1qh2EzoD4lSSqxBaYm2zj05JXfJ1AIWyiIERVGfUQ=; b=WRnVfwiYjKBLL+gKQZpZ0l6jZJUEf8MQSffAVp6SFrS+pmiBT6qIwAQSJUYyMSlhbT JfvbR+kF+LeOY7E5ANQXKFkV5w48yywvmTMIsmsDqmLjFsdDrIKxxmHpuhGe5wiiW4IZ PU0Aj5ov2IWBtk9/mh5Aqbs8n++29K4iymMW6hUs7QmRo8f5yGcm5/XAYeyGYNGQllM4 1gu/soAazKME8BKP09VfC6WDMk6rAnbhQFq/i2ZD3HNa9vZrAY+PxZxZgQhuF1KuuIq7 SBqmPN8Pxohh9Vnw8mLnVAAEZOdxQ+XPwVBgSLJqda5B6IKibJqQp9R9pibJevmtO0UZ vyqA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1781269892; x=1781874692; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-gg:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=SY1qh2EzoD4lSSqxBaYm2zj05JXfJ1AIWyiIERVGfUQ=; b=I/c96CfM+TRIrMpIDTNzsxVBrX1Y+MtBpPc+J+ow1cst1r6jKOSr0UuM7e614GIT9d JkLUt6TH9gS/Q4/89ou92gSiXRfYe08uDO9uo1HWLaCi7nu7syDg7w4yp0KpFwtuBPpK mL/UDpxMqp0keVMvbqTKhYvmofwj0kmIo0TCCtHkcyo3IlDb9IOv2aO8i/BXC0/AGK4S RoIH+YkFD8/O8eOhAxP93MAOZpxpJmucCVSJs47SPY0dQCJqIBFZRLgK3zOmZsDRIPDg guNbI0WisDxyxz/vrM9DOfe8U0OI/VrKru2KmjqkZLgUkZ/rPb+vkbZFLLxTUOtH6vX6 ExxA== X-Forwarded-Encrypted: i=1; AFNElJ9ZPtTa9Y4iUG+M6x6ME7MzCI1RPPXSpfmdZ8CjsFyWUjN5Eh3HvKwajjMbAXBaPLMl7abBMhTBXeLc3m4=@vger.kernel.org X-Gm-Message-State: AOJu0YyezHJKbNkk1dfRg6IgdaCKu0bWwwn4eVSICsMHr/nFGzRyqcmU Z0Bx4SM8hmg6J0YqN1N4ypw4UcGcVFr8LJdAy54iNiHrxKJsIJwR5IZ4/P9OZ+ywdEE= X-Gm-Gg: Acq92OE6cWr3kb+ROGIoQagwPF8UEgqXlspe7JL292HQ3sEMYw4Av/2D5l4eAPSU2tc G8548lbI/QWa+VdgCx9FIKKR6dI6fEB9lehYUBcMcTYwrG1ofn+SI/cDFfdZpkfUj4hkoq+7Am6 NROXPQfoamG9bEOx8KJ+kAFwRCP9YjL7g9G9VL4vY5hwRXJA32ZZ/iJdeE3BvWu9GY1qeYiijMD x+JaAISFPkcMcJlpyDhZPf7fM9s6wlGctljVhVdXlR55PH03IdpSIdYrFrpDC87hWQVxM9vLDdQ yDA2fEoya/YDKG4ycXbCLDoLBzYX3oJC9R7CPrd9EaUqViIzj131LA8pSL1Q6S+pRzTViH9H8Hf LRMf6S8ijIZeUa1FyD99K1zMvH/8NXBgyk4pMmsTKim3CSvVwMaCIk/WmUuRoIKKjnpU83nnz4M gCnP6t0XgXP4v6QIMZr9/GzDn1RbE+9J6tnG5E8fpzGeUQ9XhWUxfuV3dcZ8uGT3RfYby96Aw+K 7T3bg== X-Received: by 2002:a05:620a:2987:b0:915:cda5:27fa with SMTP id af79cd13be357-9161bfad4e8mr354973885a.58.1781269891895; Fri, 12 Jun 2026 06:11:31 -0700 (PDT) Received: from ziepe.ca (crbknf0213w-47-54-130-67.pppoe-dynamic.high-speed.nl.bellaliant.net. [47.54.130.67]) by smtp.gmail.com with ESMTPSA id af79cd13be357-9161a055046sm203238485a.41.2026.06.12.06.11.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 12 Jun 2026 06:11:31 -0700 (PDT) Received: from jgg by wakko with local (Exim 4.97) (envelope-from ) id 1wY1fW-00000007mFT-2jeB; Fri, 12 Jun 2026 10:11:30 -0300 Date: Fri, 12 Jun 2026 10:11:30 -0300 From: Jason Gunthorpe To: Alex Mastro Cc: Kevin Tian , Nicolin Chen , iommu@lists.linux.dev, linux-kernel@vger.kernel.org Subject: Re: [PATCH] iommufd: Clarify IOAS_MAP_FILE dma-buf support Message-ID: <20260612131130.GK1066031@ziepe.ca> References: <20260610-tmp-v1-1-b8ccbf557391@fb.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: <20260610-tmp-v1-1-b8ccbf557391@fb.com> On Wed, Jun 10, 2026 at 01:44:41PM -0700, Alex Mastro wrote: > IOMMU_IOAS_MAP_FILE is documented as mapping a memfd, but the > implementation first tries to resolve the fd as a dma-buf and has a > special path for supported dma-buf exporters. In particular, VFIO PCI > dma-bufs exported through VFIO_DEVICE_FEATURE_DMA_BUF can be mapped when > they describe a single DMA range. > > Update the UAPI comment so userspace understands that certain kinds of > dma-buf are supported in addition to memfd. > > Fixes: 44ebaa1744fd ("iommufd: Accept a DMABUF through IOMMU_IOAS_MAP_FILE") > Signed-off-by: Alex Mastro > Assisted-by: Codex:gpt-5.5-high > --- > include/uapi/linux/iommufd.h | 12 ++++++++---- > 1 file changed, 8 insertions(+), 4 deletions(-) Applied thanks Jason