Received: by 2002:a05:7412:8521:b0:e2:908c:2ebd with SMTP id t33csp2355049rdf; Mon, 6 Nov 2023 11:32:53 -0800 (PST) X-Google-Smtp-Source: AGHT+IGX1PvHihD1CDF46jjCpBVuCxAev9tzKB5fQHaNEiZkidtbup5JyxTVjnPuL8rvCCU25XRS X-Received: by 2002:a05:6358:71b:b0:168:ff1b:8f59 with SMTP id e27-20020a056358071b00b00168ff1b8f59mr40734798rwj.4.1699299173192; Mon, 06 Nov 2023 11:32:53 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1699299173; cv=none; d=google.com; s=arc-20160816; b=STx09+lxtpOnYUd1szH6n0khNvPzWPxa0TiYfP7MttI0VRQqex7Yo2Ug324k/OVXpL egIZ4YmV7nNcfPvNvmp0QuOCvAUs1mKhWM6gEllXZfDpYZ1MDiWiVMKSL8Iog1XZ73U+ 2HrobtsAdhhgDTZnqeY8D1xJ90EjbHy02PhKNx7A+G+PkBtDbZ8UuJKIlB6jJ7qqY59h 8zadqtA/SUPzmo9XOMp8NDp/eBDsOIqlRzaW49nJmnFiDg5KbcWqacdilaIgOCQBpMI8 tFLFO+XOpINK2W5P/uqTjBocMWLLhVLnCTzoMofxc6vq5bEZSFWritjRU6G/rjT+1tZr PApg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=DAHtCI4uX5rSDG9hdPsxsTF21tKIZfBDAKE7xDsp3rU=; fh=Nf8ybk9l98033itcpVeQp50k+ikfkhJOnap/asxR6GA=; b=DXz5X2aXQ8k0u3pH85CksrM4LG/PvzYtdWKE0RRZrYVhTfIcf3XQvQmijSMn6pXsLL gJYIKiP0J9kISH8Ic679uIT/CUo3qvEKQCfIFIzjojSc2xRwe/SWY/Vm0Uj0YPHRlnZH Sn5CDskkIs1PK//4VuN90vtPZTFeDqOZ3GauLwbOr+PMXwQRXhuQX3NOWEmBiIC/awl+ aVksb5aW4nmv2X3PCuvL8ji2G4dFLfFVSGI3CsezFtMS8CahIYiVwbO1NO22lpKRwJVM Z8LK3ZGonXqhSN6AVfgQmzy9HtwavkN0iJzMg26QPVof5lUvX/7CHfFUJBR4dro/rC/8 F7BQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ziepe.ca header.s=google header.b=Z2jm4Z2f; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from agentk.vger.email (agentk.vger.email. [23.128.96.32]) by mx.google.com with ESMTPS id cl2-20020a056a02098200b005b92edaa151si389017pgb.739.2023.11.06.11.32.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 06 Nov 2023 11:32:53 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) client-ip=23.128.96.32; Authentication-Results: mx.google.com; dkim=pass header.i=@ziepe.ca header.s=google header.b=Z2jm4Z2f; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by agentk.vger.email (Postfix) with ESMTP id DE4158033DCD; Mon, 6 Nov 2023 11:32:50 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232938AbjKFTck (ORCPT + 99 others); Mon, 6 Nov 2023 14:32:40 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38980 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232818AbjKFTcf (ORCPT ); Mon, 6 Nov 2023 14:32:35 -0500 Received: from mail-vk1-xa34.google.com (mail-vk1-xa34.google.com [IPv6:2607:f8b0:4864:20::a34]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 83FC1103 for ; Mon, 6 Nov 2023 11:32:30 -0800 (PST) Received: by mail-vk1-xa34.google.com with SMTP id 71dfb90a1353d-4ac45927974so738748e0c.3 for ; Mon, 06 Nov 2023 11:32:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ziepe.ca; s=google; t=1699299149; x=1699903949; 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=DAHtCI4uX5rSDG9hdPsxsTF21tKIZfBDAKE7xDsp3rU=; b=Z2jm4Z2fM/s6CReA9bNMbi06a5UFGrWJtM4czIwF5UVP2NCEgE/Lbi/nNoBg6uY3eh UutNwYXbnLSrdmNCi9OpK/jy9T6nsE8KET3oC3oBZWwl4SbtcQJ1ShLFHYylPkSmn7iK vGLEdlB86xa2m7u+i+obR0ZGO4OOhMcuHcTcn3qEJ/y2S3OsDzF2VLDq79m1pULy+mcv fsNZKo39mESiFIuASuhNiGmFgpPebJ16GvBfQpstPJMHNpTeKyzMpYPf+W7pcjWpuhw+ zXk3ZjtydtJRHjq44iY0IzLz1r+lTI3FOlqUBzxyV16/uGKS+vmOtQ4Hf9gQF2TuDVhS a78w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1699299149; x=1699903949; 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=DAHtCI4uX5rSDG9hdPsxsTF21tKIZfBDAKE7xDsp3rU=; b=jdocTXyF+lpmZyJob40giLL9+WRGW5ljTl/36HjkK5rCLttex+57zFEPxz92QUHi0O fDVYZwZlygCE1nCpsI+6Y6WMGrV34Er0mQ2rEoHrGnNv6BEseiI/HvtTM4IxoUtKFldS RBWZWYP14KZBdcZ42eoArAwFwM+3KweRD9BosmMP00cD/rMOqQZxJYefS7NQ3uMulTat dRUyKkMn4IClemWBM+WhTqgV6k2UZaPDt20YHLsMFxCw369neX1WFt6sp5+adgOz1zoT /poKM7GePw80Pf+i4We1CHDWwmTfMTt9C6G0XrqcA2LgPpKg08vWP4Abdfu8yYsT40wj 1mkQ== X-Gm-Message-State: AOJu0Yz7NvrEfJdv1yXnj9IrtECANLEyfmE4B3QyH423fisF0Y0RLzKn zzTaPV4CCgVmboTz72tfMS5NuhdqZV30vk7v+mU= X-Received: by 2002:a1f:1c4a:0:b0:49b:289a:cc4a with SMTP id c71-20020a1f1c4a000000b0049b289acc4amr27005359vkc.3.1699299149465; Mon, 06 Nov 2023 11:32:29 -0800 (PST) Received: from ziepe.ca (hlfxns017vw-142-68-26-201.dhcp-dynamic.fibreop.ns.bellaliant.net. [142.68.26.201]) by smtp.gmail.com with ESMTPSA id b3-20020a0ce883000000b0066cfd398ab5sm3663160qvo.146.2023.11.06.11.32.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 06 Nov 2023 11:32:28 -0800 (PST) Received: from jgg by wakko with local (Exim 4.95) (envelope-from ) id 1r05Km-001Qut-BY; Mon, 06 Nov 2023 15:32:28 -0400 Date: Mon, 6 Nov 2023 15:32:28 -0400 From: Jason Gunthorpe To: Tina Zhang Cc: Jean-Philippe Brucker , Kevin Tian , Lu Baolu , joro@8bytes.org, will@kernel.org, Yi Liu , virtualization@lists.linux-foundation.org, iommu@lists.linux.dev, linux-kernel@vger.kernel.org Subject: Re: [RFC PATCH 2/5] iommu/vt-d: Add generic IO page table support Message-ID: <20231106193228.GU4634@ziepe.ca> References: <20231106071226.9656-1-tina.zhang@intel.com> <20231106071226.9656-3-tina.zhang@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20231106071226.9656-3-tina.zhang@intel.com> X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on agentk.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (agentk.vger.email [0.0.0.0]); Mon, 06 Nov 2023 11:32:51 -0800 (PST) On Mon, Nov 06, 2023 at 02:12:23AM -0500, Tina Zhang wrote: > Add basic hook up code to implement generic IO page table framework. > > Signed-off-by: Tina Zhang > --- > drivers/iommu/intel/Kconfig | 1 + > drivers/iommu/intel/iommu.c | 94 +++++++++++++++++++++++++++++++++++++ > drivers/iommu/intel/iommu.h | 7 +++ > drivers/iommu/io-pgtable.c | 3 ++ > include/linux/io-pgtable.h | 2 + > 5 files changed, 107 insertions(+) If this is going to happen can we also convert vt-d to actually use the io page table stuff directly and shuffle the code around so it is structured like the rest of the io page table implementations? Jason