From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-qk1-f180.google.com (mail-qk1-f180.google.com [209.85.222.180]) (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 994B93128B4 for ; Thu, 8 Jan 2026 18:33:42 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.222.180 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1767897224; cv=none; b=uByG5NtxvQcxShK+4X7WwXH+jeB6J69oSNn+iNqhtGPLMI70L0jNgmKECG21cCycGRQZj5YQbmHUD63tO12cNiwfoCqRU4NWRypmjPgD508yNqeHSWkacplpciO/aJVq2iR0TvAoblvJOlYUYijKLPxgwE/GjXax7iFayJU8sAo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1767897224; c=relaxed/simple; bh=friVe+ZjDGl0vJha3E5L94T8EUtcvl8xY3GpjIuxSMI=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=Vfm2zwDpHn6b0dmz5nnN3jzU1U1lo45jO7VaGnr7HDlB7zHre3uywk/g5CTq1Kae1zINkN8EqhS7lq5MwMpOdM/bGtRmcMyawkUUpuD6LDJqNPUrNx/GQxeljBSO4iJnZMns1s30NEvOrG5+ivp6cQ4HOrR+x6icP9cV0l2eqXY= 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=mdplkM00; arc=none smtp.client-ip=209.85.222.180 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="mdplkM00" Received: by mail-qk1-f180.google.com with SMTP id af79cd13be357-8b25dd7ab33so264089385a.1 for ; Thu, 08 Jan 2026 10:33:42 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ziepe.ca; s=google; t=1767897221; x=1768502021; 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=VeDbCR7Lw3XLjb0kHArZW/oJZIOc8ufadN9fvBnzpPw=; b=mdplkM00FTtzMNdw4W2AhXt1dihAiMJcdr80l2u3xXrtq3Y4CchWzA5BaxDdIOnqvY K4hFFDpqQ24zbZTGxM/h10hEKD76drJH80UZDwueq3aMhRvqZojt/NGa2noknnH2AKcM 2mwlIZqzjdH3K61O/z8S+42uXAG8aXOI0Q0LBAq+7up9Cf5qrsRqE3QPmP2MnSoOi06G 90QsytLCcTOQHKlHu7qVtShpakHPkvRFDqKgfr1vU1AXYj1X0l+Oqn2Sj/8P7ycyLggo prymzqAdno/8te1S5QGeqp2O+SGBwTgK7u8asJj5lDObmZDYHkUulToO3wfy6A0ITz0G LDtw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1767897221; x=1768502021; 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=VeDbCR7Lw3XLjb0kHArZW/oJZIOc8ufadN9fvBnzpPw=; b=Wuxi/1WIE0Z9C/PIOskmrMp4g84WzWYsax8RymJF9uIIIIMcDG2Fki5J9wNJ4cjAzm onmy4jIc13HGzGpQKpDTc6JxdMPt8FSvvoDk1gE1PfqoURnMSMGAZ9bNujSktrlE6f6c 3y4FLATnTyMe6FGSJNIh/Wt98CO1SRaf1DJKN2lTW8CjzBf6UHUV5k1g2c35pX87aVWh bW5QCl3PEep3Txy8CxKKcWvoBeYx9tSptm5Z+iil6upD181P/1OcHns7Xo8YtRax71xQ n58LPVPQA0xhaHgG3i2VzgEV8rIaXKDWn+IoNq4mVRHuX4k+6vuNeBRSExf3TxcO2ygJ YGpQ== X-Forwarded-Encrypted: i=1; AJvYcCVBn40usPSaF82WTVJSetVrVDn4jNcCgwQNJeCnYAA5JL3mlI8oj05BbBA4HOmlwEBg3ybUMw6RqxO9qrs=@vger.kernel.org X-Gm-Message-State: AOJu0YwAQn86NrNelUcmSaIepTFgIa10Wm3abn8zRExQpb7HTx94XBIU OKjhByaj7cUy5PLJ9pIW10XuJSiIE0EcWArn9d6EGmmB9ZtjohhhgRunJ7kOAksuGio= X-Gm-Gg: AY/fxX5etnyalRosSlj/cG6YXxp67tfT1BGZOS0BuUzmYi/F8YAzD7P1J+l08tCP7fo Cxyi/7XGypSnVDeAyf+FKQTrpBHwlgN2wWz5xrerGanfphjLThHBNt4ijCITer4rO+Ye9ZhZeQL xZ2gB3Xpp7c0Xu5W7kfzvuLCus40LfXyEJRpeLnz7egBTTHiI7uft5nPLqrP+NWoSfpPn2VeGJ+ H9A8Ehvv44cUcAHO7o8CQUZCcV3xGZeWOBDewMgTdPnapEE1m7SAgPviwW48W+ie5v0qvUpksLx hSFu12eHgt1FdxuoxbzQlOD4eV/0BYgyF4F8aaAbFVAWAGZWRiroUkIIwRFpxDBiT/lWuA8s4hc f+8xcm2KG2xmYdEybhYNpTNnbcnbT4Sbj9enc8MKCy/4/sJgkMQTUN/Q1w+pkIU+4hNNfX3gqjn qoE7xqrKE53+XWQSUOfwjHfvSwtIHjJOQjtlJTgsOO21Hlv2JaVr5qk9sCz7KjEvm/uBY= X-Google-Smtp-Source: AGHT+IFvxaAGa9/1YlHwiUC0+rcyB8Si3/CdOHpRzOHE2IQYwWhD7wqizXJ2yXbaQu7l341Mgk8JvQ== X-Received: by 2002:a05:620a:7001:b0:8b2:2607:83d5 with SMTP id af79cd13be357-8c3893fa385mr961645785a.75.1767897221473; Thu, 08 Jan 2026 10:33:41 -0800 (PST) Received: from ziepe.ca (hlfxns017vw-142-162-112-119.dhcp-dynamic.fibreop.ns.bellaliant.net. [142.162.112.119]) by smtp.gmail.com with ESMTPSA id af79cd13be357-8c37f51cdcesm640455285a.26.2026.01.08.10.33.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 08 Jan 2026 10:33:40 -0800 (PST) Received: from jgg by wakko with local (Exim 4.97) (envelope-from ) id 1vdupH-00000002n7A-3fMQ; Thu, 08 Jan 2026 14:33:39 -0400 Date: Thu, 8 Jan 2026 14:33:39 -0400 From: Jason Gunthorpe To: David Matlack Cc: Alex Williamson , Alex Mastro , Shuah Khan , Peter Xu , linux-kernel@vger.kernel.org, kvm@vger.kernel.org, linux-kselftest@vger.kernel.org Subject: Re: [PATCH] vfio: selftests: Add vfio_dma_mapping_mmio_test Message-ID: <20260108183339.GF545276@ziepe.ca> References: <20260107-scratch-amastro-vfio-dma-mapping-mmio-test-v1-1-0cec5e9ec89b@fb.com> <20260108005406.GA545276@ziepe.ca> <20260108141044.GC545276@ziepe.ca> <20260108084514.1d5e3ee3@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 Thu, Jan 08, 2026 at 10:24:19AM -0800, David Matlack wrote: > > > Oh, I was thinking about a compatability only flow only in the type 1 > > > emulation that internally magically converts a VMA to a dmabuf, but I > > > haven't written anything.. It is a bit tricky and the type 1 emulation > > > has not been as popular as I expected?? > > > > In part because of this gap, I'd guess. Thanks, > > Lack of huge mappings in the IOMMU when using VFIO_TYPE1_IOMMU is > another gap I'm aware of. > vfio_dma_mapping_test.vfio_type1_iommu_anonymous_hugetlb_1gb.dma_map_unmap > fails when IOMMUFD_VFIO_CONTAINER is enabled. What is this? I'm not aware of it.. > Is the plan to address all the gaps so IOMMUFD_VFIO_CONTAINER can be > made the default and the type1 code can be dropped from the upstream > kernel? This was a dream for sure, distros can decide if they want to continue to support both or have an option to do just one. Jason