Received: by 2002:a05:7412:bbc7:b0:fc:a2b0:25d7 with SMTP id kh7csp2531185rdb; Mon, 5 Feb 2024 09:15:23 -0800 (PST) X-Google-Smtp-Source: AGHT+IHtR3UjTHAOyN+GK4Vqsv7isq06Pwh7Yye4mvbri+nFDWWTsePCQy3UsyTLPqoXoN+iRSo1 X-Received: by 2002:a17:90a:644e:b0:296:4a5e:193d with SMTP id y14-20020a17090a644e00b002964a5e193dmr42403pjm.34.1707153323249; Mon, 05 Feb 2024 09:15:23 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707153323; cv=pass; d=google.com; s=arc-20160816; b=D0RyaRHH07BEPjGRKXtmytyWCSWvqIVUNMmfBH8cVuBMTeO71vMEhvVGXqDxOiyTBX jR0TuHGkL24B5lBxnz3ALkaMDp2iHIcty1yoEDSVIc1KeYg84m/OcZOgFwO5sPZpgf3+ 3ekXhLUjhSg1Yoo5yUFyEk9FhFaJyncKNHFOJG7lzaYDHFWTD3CtYdw+JXOW8JjOndF5 P7+wC1PhBqWTHLIFIAvwfkzLqVoPdi6Q/YK00JFa2jCKxWBmj1DUCRsC+NK76BKu512c AQ8xKYUdQuec5mTsx4zNKRRuJCY/qQ4THy+2uFknuJZagnlcao1ifqtKiCSFPcuAnDcY obEA== 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=8gBlKfQm3vRprhFc0/QpnWE8p96XYPuWr7rTbz4Ejy4=; fh=uZrWtEufPaMxWYbSY7M+HWOQADl5Mvq8UQaTPg8X/Mw=; b=Ws5Yvm4ajoiTsJvcQw6q8hMhnm6b8rwC/Wgp6E3UaXaBPzs/CTVIOIHweInakza9yt sv/sWP5r4hUoOjIYZ/dvH01Uri73uf4D/LvLDXdGfksxxLaq6cUzR7M2wsu4DUViNBpU aWpFsXbL/wQnqcXhbDUJYcP0CZsUYzhbdXcZVXg+B/6j7VHemWWQT9pDfkATYuR/IzTP AtR+4r9Vr/j3Zxeylos6XRqqKEhP/GGEiQSLlwg5DuR8EebnbzgQdF5zNoFkIRzL5UAC WNTyesv8S7I17DEOhl8dD2x1pANAnBcVrVe4KJ1P7yGP9gJfelHfid2Zg8caE75hXNEn nuFw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@ziepe.ca header.s=google header.b=pThueR9t; arc=pass (i=1 spf=pass spfdomain=ziepe.ca dkim=pass dkdomain=ziepe.ca); spf=pass (google.com: domain of linux-kernel+bounces-53064-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-53064-linux.lists.archive=gmail.com@vger.kernel.org" X-Forwarded-Encrypted: i=1; AJvYcCUHL8lAGUTk7NB2cgSI15gRgOARdzuHi8RrqjGvv+/hOfA3tmrjxSGq9KPF3r4UuK/PeKh/E8oihLtXixakgWu6CcSzB3H56VXxLLh2ag== Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id k4-20020a17090a9d8400b0029641c715ffsi4787450pjp.90.2024.02.05.09.15.22 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 05 Feb 2024 09:15:23 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-53064-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@ziepe.ca header.s=google header.b=pThueR9t; arc=pass (i=1 spf=pass spfdomain=ziepe.ca dkim=pass dkdomain=ziepe.ca); spf=pass (google.com: domain of linux-kernel+bounces-53064-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-53064-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 sy.mirrors.kernel.org (Postfix) with ESMTPS id E42AAB23616 for ; Mon, 5 Feb 2024 17:08:59 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 4F3F14120F; Mon, 5 Feb 2024 17:08:44 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=ziepe.ca header.i=@ziepe.ca header.b="pThueR9t" Received: from mail-qt1-f178.google.com (mail-qt1-f178.google.com [209.85.160.178]) (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 BE9463D54A for ; Mon, 5 Feb 2024 17:08:41 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.160.178 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707152923; cv=none; b=Im+3heg8+JiwJiM3saUj/XQ4ldhcpIm/tS/kLW87BcPM8oeB51HuN626rVOreEiqzAVpNFkTDEDc8ox9IJBOSlZbnLx+1BYm3/b2gB5QFGEfXmMEzv/uNSGm4EZzS4pyVeVGMBK7PNKrUhwAIXml1eLsVzL5Ytd1RSIEKpLEJ1U= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707152923; c=relaxed/simple; bh=8gBlKfQm3vRprhFc0/QpnWE8p96XYPuWr7rTbz4Ejy4=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=lTlbY43S+ZveNo8AaIU3M53GP0pWrt8gmg7oUkkyp3qQl624LqX93DkRLF5/RtFbyFa9RqQ+mb9vwHWFloENDsXgjR0BSo8jj6oA6FiPprKKwdIWZhQc0/1O4h3nhYBoCBbU/UopWzk9yKeI5rxeMUZqrXUibW5KEzqVZ+oNV7o= 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=pThueR9t; arc=none smtp.client-ip=209.85.160.178 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-qt1-f178.google.com with SMTP id d75a77b69052e-42a8be32041so38881051cf.1 for ; Mon, 05 Feb 2024 09:08:41 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ziepe.ca; s=google; t=1707152920; x=1707757720; 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=8gBlKfQm3vRprhFc0/QpnWE8p96XYPuWr7rTbz4Ejy4=; b=pThueR9tS4++4Ak+63QKJD5ztu0stiKwKjMYm8GGi9NWP+lqt1uz0Qk1hMqaGZ0sTr fPWtCd+6Er9idhCPt1WvCPSvXTC9fC9GPLMkj6ZNKYLoknf0CPuLke9GltXcdBZOvuxr QMbWzMqbX4BQAQm2Z4Fyl/Qm2YXQ+PH33fP3J0bLXIXGackyhFW0peHrgVFTIWQu+rab SfQohNzSaxb3Gg7BUYxxs5LK+Hrs4oWJbn7fVhubCyLl3Iw3uTx17WKAQxtiqxVPH4pm Ie1MIxErmkxewE9orbvfB1z2fHDsEB4SYyMoVokL/kYAP+1AsEFk4YK+1kNm7OOB2JzR oKcg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1707152920; x=1707757720; 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=8gBlKfQm3vRprhFc0/QpnWE8p96XYPuWr7rTbz4Ejy4=; b=Nd68L0bPqpW94iy802SC8ayR/NbH3ynu+x6bgYyEt+UooYN8fsFHUb7fu9IuK3ZSQ1 1zg2lNMUzR3InmZeDCQOlf5OBU3oLXvcYoR1fXWBrLqeGdtxNmHatShUJFKjQeYzGvL2 UkyT9qGsWyp7Dk+987ZrlQZct+0kedolK83xJyGwb6pb43fv0Cz0Uxncbi+cP6edK4/x NMd0EwEVrqYKVmeC2fd4jERllvS/tyzEc5mM9pI+LkE7+UZEVV6NlLLSywU4q+L2Ox8c bAn2OiYZ35o9coXOAKqzxfHSGD564iGhRbGhBEwLK3oicFD1c7pppVOUkc1gNVr4LUri LqtA== X-Gm-Message-State: AOJu0YzkAfMLMORKQaf29ip1wK3X9BKRa5NWszFmpiR0nIcV7Eyx65sw VGLbMdbJBDefQgbb/Ctl7Tp5Xd3pr2SZRNpHztHzQKm5cWmSmYf50LaAdyzlwpw= X-Received: by 2002:ac8:6bcb:0:b0:42a:48bc:f69 with SMTP id b11-20020ac86bcb000000b0042a48bc0f69mr7977973qtt.35.1707152920631; Mon, 05 Feb 2024 09:08:40 -0800 (PST) X-Forwarded-Encrypted: i=0; AJvYcCWFnZsn/+oaH85mYCSnpv4YgXZiAdaRH0+Rq60h3VhSx80V/GhIDkgZR10vmkuwF1N3jhhz9aRo8LLD4ff5OgXLimlfMXcSIPuyfjqJcxPxDRiouB5DndZ1kQz5dDjvpSVf2qZnwpdmYLKdUUiGGPxIlHQiPas89V0qswdC6497cElumvLrngGqTJkZscqv6ouG2f0OrpG6Ei2Zn4TY19Lk9NbJPoaaQZIBZSq0XCtZUA7d3PA2XkCWjmZueMp2A4tCAorCWj6i6E3kIrdi2y7VdUXMK5IQwL1ODMaERiIbTXBJbVrhlVGqhDyHvDIuotZrahRKcH/dGKlHT6GOh0AiVMK8Tzohvd/1DqWSOsUrv6/uL6cpoulHtaNasUn2g1+as+1/aN3+PukRM38uB/fouGVfLgmdpOE3dunZMoCAT8ZvWsyLQq5HJzPKp8dnEjpdvCDijtK2oY+4Fte+c9yCkKSI9o3pZZZEGbyVB7g/qoYjmnzB6UvMvTFVVXtvqMnEmcwOaYKyi0HF6aat2Ve6C6mKE8L/YuQwof83w3Z5XmIHwIZ2oGMal/R+I06RZSVRWXaOUkQuB8sHRlexzojF3AdtuOI7nq6sqs2lcG4+ML2g+c2ZAxM9tnpLd69JMkvGu7iMwJ1692U5EjqV1QDP6l+mc+OUUzf8X6XSuc3UdFj+vXovcLlbwYzYR22mSvd+Sld4DusAh+aVZhGTkOMpJe7mDCGP0YbiYqikir3ZKx0d Received: from ziepe.ca (hlfxns017vw-142-68-80-239.dhcp-dynamic.fibreop.ns.bellaliant.net. [142.68.80.239]) by smtp.gmail.com with ESMTPSA id f22-20020ac84996000000b0042c22902ca2sm112941qtq.81.2024.02.05.09.08.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 05 Feb 2024 09:08:39 -0800 (PST) Received: from jgg by wakko with local (Exim 4.95) (envelope-from ) id 1rX2SV-000d2w-7N; Mon, 05 Feb 2024 13:08:39 -0400 Date: Mon, 5 Feb 2024 13:08:39 -0400 From: Jason Gunthorpe To: James Gowans Cc: linux-kernel@vger.kernel.org, Eric Biederman , kexec@lists.infradead.org, Joerg Roedel , Will Deacon , iommu@lists.linux.dev, Alexander Viro , Christian Brauner , linux-fsdevel@vger.kernel.org, Paolo Bonzini , Sean Christopherson , kvm@vger.kernel.org, Andrew Morton , linux-mm@kvack.org, Alexander Graf , David Woodhouse , "Jan H . Schoenherr" , Usama Arif , Anthony Yznaga , Stanislav Kinsburskii , madvenka@linux.microsoft.com, steven.sistare@oracle.com, yuleixzhang@tencent.com Subject: Re: [RFC 13/18] vfio: add ioctl to define persistent pgtables on container Message-ID: <20240205170839.GA31743@ziepe.ca> References: <20240205120203.60312-1-jgowans@amazon.com> <20240205120203.60312-14-jgowans@amazon.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: <20240205120203.60312-14-jgowans@amazon.com> On Mon, Feb 05, 2024 at 12:01:58PM +0000, James Gowans wrote: > The previous commits added a file type in pkernfs for IOMMU persistent > page tables. Now support actually setting persistent page tables on an > IOMMU domain. This is done via a VFIO ioctl on a VFIO container. Please no changes to VFIO in the iommu area, new features need to be implemented on top of iommufd instead. We already have the infrastructure there to customize iommu_domain allocations that this can be implemented on top of. Jason