Received: by 2002:a05:7412:31a9:b0:e2:908c:2ebd with SMTP id et41csp3642683rdb; Wed, 13 Sep 2023 20:06:08 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHA2qKXhmx/sxtJ+ayeZLLJJ3Eg5xnkheglxXhcQE4zdSHs/8Su5tk1gb7ykItUU3Rqhr3i X-Received: by 2002:a81:8490:0:b0:586:9c4e:a9a4 with SMTP id u138-20020a818490000000b005869c4ea9a4mr4363030ywf.5.1694660768339; Wed, 13 Sep 2023 20:06:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1694660768; cv=none; d=google.com; s=arc-20160816; b=NywoLbE7M45KbTgZhezfmrTy3v2YDETAql+fdV2en8U+yHtTdn+XZIdwwEDfuL8HLV B8L0GeUyhzp6CbaYBd2UwfmIWo5vQ+tBU6QzMMSW9cYGrtZKy7pOw7B0FrRVgqJbZtHL xO2ReEfZvZy3nTdFN5EPFlkv4YI1DCPzQP1v9XmZpLbyJ7CvdpBjibzCFgB4ctZpZsFL 2JAdw/vcRJv+4/UU6TSyAyVF2SKVgpsUuOCh4zzwHhAkogzuIkmeCcJEksE+a31X0We1 xPg5WvqRfNV/swi6hc8J640W7lyIYfL6sgrBUrUvkv7Fod0zsBOsm+urqc6v/gSfYnNQ W9wQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:to:content-language:subject:cc:user-agent:mime-version :date:message-id:dkim-signature; bh=vujdJ495X7bJXBzXGKOL8aGhO6CZZXZrTXuDp+OZ7XA=; fh=1VsqXq2qcuaB9T60VGbarwB01qgHSrTRedORIurWRvk=; b=D5gN0TN6E4DZeO/sbhS60Wkt3yyZpJWq9ocVnMb1utB6DIs+MIczhsO17lHz0eFQn6 ml/kIu8yYNLli/kbgQ90pTWm2+nBOVd0M6j92CKtK386j0NkTUICu4GNC2tkkIC8PA0Q MdORuZl0dTTn0wuxaKp587vl2SdLB5n5YjnRWZzpp7sAHEW0zfLSGjmcjs43ac1qYyRE USQdvYMJCmWSoUEXo1p+P8jqHhHzEBvxVQ4+Os2nD2rhM8QzJxlXsWQFv5eglaO940Df XvNM+HnNDXLUKL62zMw5dP/1GqXogRJHbENRLG6uzzOTwbHKUqzKKOcCh47PZSWaXxT5 sbmw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=QcRBK0fz; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from howler.vger.email (howler.vger.email. [23.128.96.34]) by mx.google.com with ESMTPS id cg12-20020a056a00290c00b0068e486a14e1si604857pfb.163.2023.09.13.20.06.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 Sep 2023 20:06:08 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) client-ip=23.128.96.34; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=QcRBK0fz; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by howler.vger.email (Postfix) with ESMTP id 32B878328ACE; Tue, 12 Sep 2023 19:41:55 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238174AbjIMCl5 (ORCPT + 99 others); Tue, 12 Sep 2023 22:41:57 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46184 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232447AbjIMCl5 (ORCPT ); Tue, 12 Sep 2023 22:41:57 -0400 Received: from mgamail.intel.com (mgamail.intel.com [192.55.52.43]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 43F8E1718 for ; Tue, 12 Sep 2023 19:41:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1694572913; x=1726108913; h=message-id:date:mime-version:cc:subject:to:references: from:in-reply-to:content-transfer-encoding; bh=Pgc2D+3zfvkfmv8fkBy8k8iJeoSXz10wKKf+lnbUSZQ=; b=QcRBK0fzqhCBFxZXP1MCQkWqsw0UYsnnakkWTNQ2QAGz23TCLzjJ3rgw 2hDaYZ/HhedZ6QaNu+CpwGJqwf2RMRMZ82ItSdDNelTiSAt0LOoYOA47R iZ6sFSY+ryYKID6Zo8/KhbXDlEeSpxPEMJyjMSwoVpwEKsRrKxhIiReDE A3/XS200m7VLRJLZCV+wJhamRt+orPipPs2XbSbFz7VUSb3IkOsbzGPJh pLMFy79Dto12Fu+ARNFYxvzO6NZS6BZc2xlamQoJZx6I4wnI5Y1AY2nHp zAQRB0CZvUbtdilTJAMsy7G6hfymK2dnU+jzQhtKSW5rCIC8V6WtKm9oW w==; X-IronPort-AV: E=McAfee;i="6600,9927,10831"; a="464917149" X-IronPort-AV: E=Sophos;i="6.02,142,1688454000"; d="scan'208";a="464917149" Received: from orsmga002.jf.intel.com ([10.7.209.21]) by fmsmga105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 12 Sep 2023 19:41:29 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10831"; a="743946569" X-IronPort-AV: E=Sophos;i="6.02,142,1688454000"; d="scan'208";a="743946569" Received: from allen-box.sh.intel.com (HELO [10.239.159.127]) ([10.239.159.127]) by orsmga002.jf.intel.com with ESMTP; 12 Sep 2023 19:41:27 -0700 Message-ID: Date: Wed, 13 Sep 2023 10:38:29 +0800 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.13.0 Cc: baolu.lu@linux.intel.com, Michael Shavit , Vasant Hegde , iommu@lists.linux.dev, linux-kernel@vger.kernel.org Subject: Re: [PATCH v4 4/6] mm: Add structure to keep sva information Content-Language: en-US To: Tina Zhang , Jason Gunthorpe , Kevin Tian References: <20230912125936.722348-1-tina.zhang@intel.com> <20230912125936.722348-5-tina.zhang@intel.com> From: Baolu Lu In-Reply-To: <20230912125936.722348-5-tina.zhang@intel.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit 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 (howler.vger.email [0.0.0.0]); Tue, 12 Sep 2023 19:41:55 -0700 (PDT) On 9/12/23 8:59 PM, 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 > Signed-off-by: Tina Zhang > --- > include/linux/iommu.h | 5 +++++ > include/linux/mm_types.h | 2 ++ > 2 files changed, 7 insertions(+) Reviewed-by: Lu Baolu Best regards, baolu