From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id BABC7EE4993 for ; Mon, 21 Aug 2023 17:08:00 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236590AbjHURHB (ORCPT ); Mon, 21 Aug 2023 13:07:01 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46302 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235596AbjHURHA (ORCPT ); Mon, 21 Aug 2023 13:07:00 -0400 Received: from mail-oo1-xc36.google.com (mail-oo1-xc36.google.com [IPv6:2607:f8b0:4864:20::c36]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6B1D0101 for ; Mon, 21 Aug 2023 10:06:55 -0700 (PDT) Received: by mail-oo1-xc36.google.com with SMTP id 006d021491bc7-565f2567422so2238969eaf.2 for ; Mon, 21 Aug 2023 10:06:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ziepe.ca; s=google; t=1692637614; x=1693242414; 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=VcpesrdOKBjIBH3tlZ3q44ls+ILnPyIbnyYqKr2W+dE=; b=i6Kb4H1cvgEso7109Gj9Y553yi7GSJelnA0xjnD/VxAY2DUlnrNnvON3JHvIfxm0tM Khe2hq6wX6BQKnboV5ic2Ud2ZF/0lJjL/6ybD+FZbFoyBmonG2o8OrcUvSPMJ/E0DU7Q Sm9u9VdsJcaR6XJk+XU5WXOCjz+L0eyorS9BupLzbzhhqGPNPdABoJl5zSI+K2C5t8S4 u/QKDmkT+DtZrqFJ90SuPsJ+b/skNq3EtbseQZWSRoAjpFiXnxmpeykw/PtavxcZvoOH uFHR/4KkKRLb8Rh6ptTotGQknfASXOc9KV+D42hlAvVcxAPaSFKn4WI9BrKMAac1JOUh mM8Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1692637614; x=1693242414; 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=VcpesrdOKBjIBH3tlZ3q44ls+ILnPyIbnyYqKr2W+dE=; b=khJnvOSvqwBakvV4tRIbGB7vimVs8+Nb9Y4dN62O9wm8Voq7EgnxdaawhhFZWnCYvL qQuecl3M7Hvqv2X13wtkdbckc4qLWgIhMZniuzcyrlvXnr7pU0L0raURsU5svZeTymCc D/uuwUrogWXLQxvCAWoRlzwixNPVRZGgUUF8FXL7MSbkPekEpnH756d++hA8aZVEtY0c VtKh138ZdExecei77gFZPiPS8rkaMPqCQWUPCAGlq1zaXpDtcqt0NQh8v8O9midGF1d9 a6bHajtLAmYeQkQYCjbVHMerJOJTo/mQtQFD384UdVoGQIvU7mK3iJleyBW7132THAE5 RFrg== X-Gm-Message-State: AOJu0Yy0t1Q094vhWmMA4r8lHnwpXGTA6FgVYL/K5g1FquqSS4SgBuSg 73Zgkl/xDvH7PU3s/v2/5No8hA== X-Google-Smtp-Source: AGHT+IG8X+l5Motw2UgXh3Pll87HnD6q0vanSSPX/5vtlKoHrD+t0K/F+xFSEdJ9OFLGAZ+9gB3oFw== X-Received: by 2002:a05:6358:41a3:b0:134:dc90:b7d1 with SMTP id w35-20020a05635841a300b00134dc90b7d1mr5913387rwc.25.1692637614702; Mon, 21 Aug 2023 10:06:54 -0700 (PDT) Received: from ziepe.ca (hlfxns017vw-142-68-25-194.dhcp-dynamic.fibreop.ns.bellaliant.net. [142.68.25.194]) by smtp.gmail.com with ESMTPSA id s8-20020a05622a1a8800b004035b79860dsm2455049qtc.81.2023.08.21.10.06.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 21 Aug 2023 10:06:54 -0700 (PDT) Received: from jgg by wakko with local (Exim 4.95) (envelope-from ) id 1qY8Mf-00Dv3E-Ob; Mon, 21 Aug 2023 14:06:53 -0300 Date: Mon, 21 Aug 2023 14:06:53 -0300 From: Jason Gunthorpe To: Lu Baolu Cc: Joerg Roedel , Will Deacon , Robin Murphy , Kevin Tian , Jean-Philippe Brucker , Nicolin Chen , Yi Liu , Jacob Pan , iommu@lists.linux.dev, kvm@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v3 07/11] iommu: Prepare for separating SVA and IOPF Message-ID: References: <20230817234047.195194-1-baolu.lu@linux.intel.com> <20230817234047.195194-8-baolu.lu@linux.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230817234047.195194-8-baolu.lu@linux.intel.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Aug 18, 2023 at 07:40:43AM +0800, Lu Baolu wrote: > Move iopf_group data structure to iommu.h. This is being done to make it > a minimal set of faults that a domain's page fault handler should handle. > > Add two new helpers for the domain's page fault handler: > - iopf_free_group: free a fault group after all faults in the group are > handled. > - iopf_queue_work: queue a given work item for a fault group. > > This will simplify the sequential patches. > > Signed-off-by: Lu Baolu > --- > include/linux/iommu.h | 12 ++++++++++ > drivers/iommu/io-pgfault.c | 49 ++++++++++++++++++++++---------------- > 2 files changed, 41 insertions(+), 20 deletions(-) Reviewed-by: Jason Gunthorpe Jason