Received: by 2002:ab2:6f44:0:b0:1fd:c486:4f03 with SMTP id l4csp203148lqq; Wed, 12 Jun 2024 23:49:25 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUfQ28SO6CcXtc3V62lyO408ZOt3uGBA0KntbNlr0BCYMbnevA6mu1+aqbC/fg60c9dkKzkxGkVqsx7xqomITBt0KHUokiH13nrX7U6jQ== X-Google-Smtp-Source: AGHT+IEZqhMT2CNJE8rKXBA5kYVfeSwnOyMR7uZV2czuCmShMvD3fTqOgMzH7z1okJrWotXigla8 X-Received: by 2002:a17:906:d147:b0:a6f:fbe:d3e8 with SMTP id a640c23a62f3a-a6f47d3bf13mr251739966b.54.1718261365758; Wed, 12 Jun 2024 23:49:25 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1718261365; cv=pass; d=google.com; s=arc-20160816; b=P4K58yodRsR8GFqujt+uVkRkOAmH1wUD8d7W7IoaGmECXvjRJNlFLWFBBFzlI8rq+5 R/qPvaznZcCrDdIov/7U6ULBAMaTj60kdAjO/HQjoDQhVQ9pPs9bIq9P9kc2gmDyjHgL 8cWLuz18+ss7dIHXyYoqRNIi91JQYX4Qo+yjmbyQgG+wNAwXtYogAPfEwyL2T4wWnGjL bvL7eES8RYTtBUl2k4D+O58x7hEHZuqNDbdCj1lc7mjzI0KMQF9r9MZMkf3xSwhWPsh4 FTUTpjyfJjnR3Wui50WWIz776IiX5oKSM/PTvdrOKbdsRddzIkNduD9e1H20dwuQjAyt Vi1A== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:content-language :references:to:subject:cc:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=WBIDa8EW/dX05X0Pb8ExnAzcKRiIOjXdz3UGKRYDqMk=; fh=XN62Fn4GZ5VGQ5mINDCyZOUyy0Xs62kW0uAIH4gx/F4=; b=VqYvlbUoohhvjwQBr6AC6TRKVBug09PF7LvpclJ/AhzkNv1zMTZoXNnSrjtdOMCyVX eTlCT8THT5o1W4C4AZDOGFlxMvHswDV/Ng0Xh/RT44gIYc9/heewM+MOXibnNQRE/dSd NJcgM0jzHWWXJnP+KwPURkIvSYUDVRGbuRieqSQRbrJqRIaKuXDy/RIQXGPUVeH/2Xux J8XT6p1BYjXutGHrUUxu9jQE1tBNDX2VB0iBIpwh26vmIAEYyiSyS+mHACEMw0UEfszt tOFRHxBAkG5S1nexQ4Mjn9OsYAGDe0im21MNxgJKeshwlrbI7aMgaMqHgDVUXh1S8B1g 80GQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=Ma3uHmHU; arc=pass (i=1 dkim=pass dkdomain=intel.com dmarc=pass fromdomain=linux.intel.com); spf=pass (google.com: domain of linux-kernel+bounces-212652-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-212652-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id a640c23a62f3a-a6f56d4d294si39183466b.253.2024.06.12.23.49.25 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 12 Jun 2024 23:49:25 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-212652-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=Ma3uHmHU; arc=pass (i=1 dkim=pass dkdomain=intel.com dmarc=pass fromdomain=linux.intel.com); spf=pass (google.com: domain of linux-kernel+bounces-212652-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-212652-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com 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 762051F22F1F for ; Thu, 13 Jun 2024 06:49:25 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 5043413792E; Thu, 13 Jun 2024 06:49:18 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="Ma3uHmHU" Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.11]) (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 3E5EF2119 for ; Thu, 13 Jun 2024 06:49:16 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=192.198.163.11 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718261357; cv=none; b=temBOxEnqHb+y4ygVFznNVEG1CP+mequIEt17bPbjJcsVBameWyi6GFeta+UVClH9A0P4YC38ez5sMJFOjVqBx2KmoFvKcZLZXCrOeLbmPZhGCikuqYtSNPweWNHN8NyRKxCWCI7WYLLfibR7O4/mNCLdwgnK6ya3GlX+/lnqfc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718261357; c=relaxed/simple; bh=WBIDa8EW/dX05X0Pb8ExnAzcKRiIOjXdz3UGKRYDqMk=; h=Message-ID:Date:MIME-Version:Cc:Subject:To:References:From: In-Reply-To:Content-Type; b=hwBnjDYmrwt43vuV/224CPprARgZxOdlwvtVHhsvyrmsltOhdPQMi7fFSKxabzVYxgYtpazdUAqU3ZoPVlV+5E6RLUkZYvYtN2dZOPJcrPGMFs1hnYfJpb4nqNpncD9SVcgdf2/YylrRfteNiwvPQlKgnToPBxY1DUdjIzjfleE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com; spf=none smtp.mailfrom=linux.intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=Ma3uHmHU; arc=none smtp.client-ip=192.198.163.11 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=linux.intel.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1718261356; x=1749797356; h=message-id:date:mime-version:cc:subject:to:references: from:in-reply-to:content-transfer-encoding; bh=WBIDa8EW/dX05X0Pb8ExnAzcKRiIOjXdz3UGKRYDqMk=; b=Ma3uHmHUT/m+cMYA10WsnX4Bubp7tsd4+ErDRIuYI7hj/grX0dJq9nin sKuQkVUgz/omvK6THkqCgWEhcTdpeUnOTJ6xDC03d/sx5K5itYmQUL/vn 5xB4UmJMI5WjvCqDSO0dmuw5C+ofHGlfwAP95u2cJp8eILXONk5jNEjNn tJbrNctdeYVjJYrw9hyakAxC2UEE4k7I0dIdDqEaTxbtYSrDaCbPzAWwc L8tWiDQi9qNS9co9Hth8Y6GYZO6X2jDWKSCUIG+1gfboYOGBAcoBzjbnx pCKzQ/CCWWmImS7d5xjUrtoFxcIq35chQPkZiXmakH6F4eeY6fVha9SkB w==; X-CSE-ConnectionGUID: hy0oMWLCRYGgXqAeBxjFmw== X-CSE-MsgGUID: yF/yXAsNT1iI+E+k/zafZg== X-IronPort-AV: E=McAfee;i="6700,10204,11101"; a="25698820" X-IronPort-AV: E=Sophos;i="6.08,234,1712646000"; d="scan'208";a="25698820" Received: from orviesa003.jf.intel.com ([10.64.159.143]) by fmvoesa105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 12 Jun 2024 23:49:15 -0700 X-CSE-ConnectionGUID: Mle86pKBToOVONWcQvcFmA== X-CSE-MsgGUID: /uYyYCSzT6qjB04x0FYQaA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.08,234,1712646000"; d="scan'208";a="44944503" Received: from unknown (HELO [10.239.159.127]) ([10.239.159.127]) by orviesa003.jf.intel.com with ESMTP; 12 Jun 2024 23:49:12 -0700 Message-ID: <4ba5a1a6-80f2-46eb-84f7-921b9ac27efc@linux.intel.com> Date: Thu, 13 Jun 2024 14:46:53 +0800 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Cc: baolu.lu@linux.intel.com, Kevin Tian , Joerg Roedel , Will Deacon , Robin Murphy , Jean-Philippe Brucker , Nicolin Chen , Yi Liu , Jacob Pan , Joel Granados , iommu@lists.linux.dev, virtualization@lists.linux-foundation.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v6 00/10] IOMMUFD: Deliver IO page faults to user space To: Jason Gunthorpe References: <20240527040517.38561-1-baolu.lu@linux.intel.com> <20240612135426.GA2151677@nvidia.com> Content-Language: en-US From: Baolu Lu In-Reply-To: <20240612135426.GA2151677@nvidia.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit On 6/12/24 9:54 PM, Jason Gunthorpe wrote: > On Mon, May 27, 2024 at 12:05:07PM +0800, Lu Baolu wrote: >> This series implements the functionality of delivering IO page faults to >> user space through the IOMMUFD framework. One feasible use case is the >> nested translation. Nested translation is a hardware feature that >> supports two-stage translation tables for IOMMU. The second-stage >> translation table is managed by the host VMM, while the first-stage >> translation table is owned by user space. This allows user space to >> control the IOMMU mappings for its devices. > This looks pretty close, will you post a v7 with the minor changes? Yes. Sure. Best regards, baolu