Received: by 2002:a05:7412:518d:b0:e2:908c:2ebd with SMTP id fn13csp493581rdb; Thu, 5 Oct 2023 11:49:32 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGS/zIzT95TgyFfYxt9DnwFC2ZSZunqu3NR0oUS73srGgpEOo4huGgupP7x18iFZzV+8/4q X-Received: by 2002:a05:6808:2192:b0:3a7:44da:d5e6 with SMTP id be18-20020a056808219200b003a744dad5e6mr7232483oib.38.1696531772000; Thu, 05 Oct 2023 11:49:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696531771; cv=none; d=google.com; s=arc-20160816; b=cp15Wfzk0LUWKLqFfUqDYE/xvmhGa+FaUAf31PtqzW8BkicqKAwSxnVZ6Ie+ilyAFU xDHqvsNpJHktq8QVgYq58SjjVixzwXpAKaJHKHoDqyu9FcWLW4JsTW2Gxz1FylX3tUIQ C5aYDP9ozen/PgrzmKdZr7Mvi9FPFlv2rWc6JACU4+E9hqssMwC06IBnsDM0mC/wChFx TYr7cPjDhqfWh9tpWJ6Y35ItriKkQt0X2rEvCqm50scXO4ITQl8q4EJHapd1lZe//IA/ e1NDRtaS+Z/gonw/27lv0y6fdghKw5grtILvujuORAURnaojqvh6Lv2FVTRhGrmxFuDq Dmtg== 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=ftxOEPJW1rckghtvt8DSd7lLtI0tEVMwZjbURy6macw=; fh=4ns45bZfrwFdXPgeQN3ffYKcEqbNQsKKKh0jYm6xn10=; b=v48uVTAeAFHk13goe/LEnz/wePCql/MGA8SgVTCFLYhEhwStQQzpY21qexhiwfqw+r P5FuXrKLPa4Vpscj0hEgpljKfzT8Hwpz/tcEG1B5VnAXdQtUNrylGdS1YILHrFYsh/at Hhxcr6iXSC7g2DIPpCEY/Dl6jbY7hpNLYKMAYR1fBclasbNeq8F+vdFWrS6ns2/fF3b4 Y3AXkdCCbglYVD+9Mk1aZVND/PS4noHXQNZM5Na06TxGHVQ09rSu1AbcsZ1xu65952V+ LO1gM68L/cy8DTeejxQph7760GGZ7xEG4P//+NmRizz5SfoAFz5RV/DNEjkiueGKerRs 3C+Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ziepe.ca header.s=google header.b=e0yuDN5q; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from fry.vger.email (fry.vger.email. [23.128.96.38]) by mx.google.com with ESMTPS id d17-20020a637351000000b0056c297d163csi1876366pgn.530.2023.10.05.11.49.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 05 Oct 2023 11:49:31 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) client-ip=23.128.96.38; Authentication-Results: mx.google.com; dkim=pass header.i=@ziepe.ca header.s=google header.b=e0yuDN5q; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 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 fry.vger.email (Postfix) with ESMTP id AD0F0807DED8; Thu, 5 Oct 2023 11:49:28 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229619AbjJEStT (ORCPT + 99 others); Thu, 5 Oct 2023 14:49:19 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40840 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231710AbjJEStR (ORCPT ); Thu, 5 Oct 2023 14:49:17 -0400 Received: from mail-qt1-x835.google.com (mail-qt1-x835.google.com [IPv6:2607:f8b0:4864:20::835]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2D9A598 for ; Thu, 5 Oct 2023 11:49:16 -0700 (PDT) Received: by mail-qt1-x835.google.com with SMTP id d75a77b69052e-419c8911049so7644201cf.1 for ; Thu, 05 Oct 2023 11:49:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ziepe.ca; s=google; t=1696531755; x=1697136555; 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=ftxOEPJW1rckghtvt8DSd7lLtI0tEVMwZjbURy6macw=; b=e0yuDN5qpOWOdV3BcnR/KnMOcowHIPsqaRGdWLeorxPxeUWUpcimL2Sj2kXls4DeOj hNOallEYkr3ZN4nlkXEC99FROtTelp1PEzQQiAup8gche0pNe5Iml5oO9y8MDysirJTN 5S5v020yHdQ4ORJHv/VFsa67/Yf9qAV9kyv/EUsDj54nrmPfiXRWA40nSQl6Kv15eWq8 Qd0/1t/IWn4iy+aTSkvQp7bQaqM+Nf7wvaaV58/mA0UamT7tWI575UiEUJhAon4fZi3x hlNVTbJNWRyHf9KaadPWZiE/7bPs6r6r8iQ9qCwlxcjJUyflONPFKZRFsKJsbw4vZoTD 7RwA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1696531755; x=1697136555; 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=ftxOEPJW1rckghtvt8DSd7lLtI0tEVMwZjbURy6macw=; b=PFfncJFOVIbstnIJQuKTEoTrk893ma0S2mOQjzJ7e0qOW37Th+rH7V4KLyA8qm7Ijs uXor6GRAAYm9Dd0+NWl5CP6UaHIy1Do2LkVJ9cIrmc8H/P50jHH8S658rx2KTAuln6wn e3wnfntzHFXV/bRclzv8lJyEnC5OZxQ0bf3U2di/Du5+GqXDL8idZOM4Apsuk5h8FC84 8n913WErEuWMOnBNXwYK1b4/xaEvlfapwAMiRhuB6fNQoEDWtFRgIeBEYrxwiB6Ykdj2 16K/LrEZk46roIXPYVDMQ002aZHYJZQ4leu3QL/NO/ocfJEk4BcL9YlztPJg91Ij+zeG tsVA== X-Gm-Message-State: AOJu0Yx/J2hKSp7e37sL4sU/vypI2nvWBlA7qn9yFgdjlz9cgdWvQlLP bZf9G1jvvQniOET6kJFQ85W/rQ== X-Received: by 2002:ac8:58d0:0:b0:403:ed26:4083 with SMTP id u16-20020ac858d0000000b00403ed264083mr7375927qta.61.1696531755314; Thu, 05 Oct 2023 11:49:15 -0700 (PDT) Received: from ziepe.ca ([142.68.26.201]) by smtp.gmail.com with ESMTPSA id m3-20020ac84443000000b0041520676966sm674475qtn.47.2023.10.05.11.49.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 05 Oct 2023 11:49:14 -0700 (PDT) Received: from jgg by wakko with local (Exim 4.95) (envelope-from ) id 1qoTPM-004Z7D-Cd; Thu, 05 Oct 2023 15:49:12 -0300 Date: Thu, 5 Oct 2023 15:49:12 -0300 From: Jason Gunthorpe To: Tina Zhang Cc: Kevin Tian , Lu Baolu , Michael Shavit , Vasant Hegde , iommu@lists.linux.dev, linux-kernel@vger.kernel.org Subject: Re: [PATCH v5 4/6] mm: Add structure to keep sva information Message-ID: <20231005184912.GU13795@ziepe.ca> References: <20230925023813.575016-1-tina.zhang@intel.com> <20230925023813.575016-5-tina.zhang@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230925023813.575016-5-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 autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on fry.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 (fry.vger.email [0.0.0.0]); Thu, 05 Oct 2023 11:49:29 -0700 (PDT) On Mon, Sep 25, 2023 at 10:38:11AM +0800, Tina Zhang wrote: > Introduce iommu_mm_data structure to keep sva information (pasid and the > related sva domains). Add iommu_mm pointer, pointing to an instance of > iommu_mm_data structure, to mm. > > Reviewed-by: Vasant Hegde > Reviewed-by: Lu Baolu > Signed-off-by: Tina Zhang > --- > include/linux/iommu.h | 5 +++++ > include/linux/mm_types.h | 2 ++ > 2 files changed, 7 insertions(+) This is fine, but you could probably squash patches 4/5/6 Reviewed-by: Jason Gunthorpe Jason