Received: by 2002:a05:7412:a9a2:b0:e2:908c:2ebd with SMTP id o34csp243564rdh; Thu, 26 Oct 2023 00:24:57 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEzbZZ4ceBa3t9oEOiJS4DRKXm9yHN9aE+sYkgvAq4wC6t7xv/vH8byUlRYq6L/7+38HXEQ X-Received: by 2002:a05:620a:4494:b0:778:bb39:7d34 with SMTP id x20-20020a05620a449400b00778bb397d34mr14444164qkp.36.1698305096938; Thu, 26 Oct 2023 00:24:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698305096; cv=none; d=google.com; s=arc-20160816; b=V5oEjkRrSzqJ7d9kLuww47K3ez8dlugWRhdK7qE6FBQZtCOtuRdQcysZIFYZkpNDnA /gsd1c2fBu3n+1KKmYfvDgIA8M5xE0OFVJo7ywk7KBPR2SFnqemK6sRTLCX3xR7d3UOX e8UQDOy0VCQLRy3Ut0irkEYr8yK9WMWHplY39y8BVM7zgcPPYRIFTl7wVlO/0Ld768YV 1FKJZET1vF1/aBbSLQWR6qCcBvAS38JBhOOfJ2TKzzGlAd5tpxfz9qaQCAurK+RhoO72 ldSyjDZo7wIsifotfHWqlOz6NNtpoytKHtzAxp0zCyQWu22gS8z2ew6zLJbyVEFWWJfh +6cA== 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=Gb5Qv/E8DCQm+8BB7l0MQQzELDqRDnNWas24t0aIc1w=; fh=5yFMsf6b/Wf2sCpFN7H9ZxWLdRW2PTeDyFhOutL7BW4=; b=M0128Yaycnzd5a1OD0/sMEoAQsfeYwhZsh/JtzLQDUWD5RedjTKkBWbimTrc9AjaPz 2HEa6yNeQOGdyy44FiTOH1jqKp5DoToj64tkEtc7RlByZCp96ormv5ZDPCifOesxbEzy ZOBt4Kvl4aGk0DMnmbAQZiVMijmzWiwdveoIzSdsfTCvZmg5wNfubYbIYQ2ENuj/jACM 97lQl0rxAZPea3y1hDeL3PIC9J55xsF/9lnBMe4SQjoMjQTBO8Tcm49nOAjYjAaquEYa ZTxydR8lcLL4e9i0lG1TmDoAqR5SWpKfrM3+sr+kXVCk8QyLPVMc0bXPRAPe0/mY+Eri GIRA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@8bytes.org header.s=default header.b=7hXKGtTy; 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 72-20020a25044b000000b00d9cb8051da7si12353863ybe.129.2023.10.26.00.24.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 26 Oct 2023 00:24:56 -0700 (PDT) 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=@8bytes.org header.s=default header.b=7hXKGtTy; 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 9B50F811906E; Thu, 26 Oct 2023 00:24:53 -0700 (PDT) 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 S229705AbjJZHYq (ORCPT + 99 others); Thu, 26 Oct 2023 03:24:46 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54120 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229638AbjJZHYp (ORCPT ); Thu, 26 Oct 2023 03:24:45 -0400 Received: from mail.8bytes.org (mail.8bytes.org [85.214.250.239]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 534FDD6 for ; Thu, 26 Oct 2023 00:24:43 -0700 (PDT) Received: from 8bytes.org (p4ffe149c.dip0.t-ipconnect.de [79.254.20.156]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mail.8bytes.org (Postfix) with ESMTPSA id 7A72A1A6582; Thu, 26 Oct 2023 09:24:41 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=8bytes.org; s=default; t=1698305081; bh=imEBUMoMnJ11bhtOMKZdu+fWgs5XY6RIcln8XGroUKU=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=7hXKGtTydVfrZ/ir3xgATqn4SiC6otKrLWnNt1K+LzOmLLfxYj2tr8T4Xnt55E1gP zmGRsL5n7IV4RfCc36vq2aS6xpMh2AkzXOZ4GbOv/NwzsIbJEKtGYX4j1mAIwuzGvw 2AtkWzomWj379hYHd6reTgpbNB0P1Rq9iJwBbgsZ1QVOgAh1a0mc/K8aMOgEncAwm0 rdUpKDMY0g6VsmTpuqEDIgVHFXMiYev6UVHWlpyJRzNsXktTvQ7Y7nmioAM/ZcIpBl R5TXwoAPCM6Xvm5YS6REGFjn2eMofQSUFPCE7sZQCthfusx22fOe69vgr7aEXboy5a HB++oErAZ4+og== Date: Thu, 26 Oct 2023 09:24:40 +0200 From: Joerg Roedel To: Tina Zhang Cc: iommu@lists.linux.dev, linux-kernel@vger.kernel.org, David Woodhouse , Lu Baolu , Will Deacon , Robin Murphy , Jason Gunthorpe , Kevin Tian , Nicolin Chen , Michael Shavit , Vasant Hegde Subject: Re: [PATCH v9 0/5] Share sva domains with all devices bound to a mm Message-ID: References: <20231018050640.24936-1-tina.zhang@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20231018050640.24936-1-tina.zhang@intel.com> X-Spam-Status: No, score=-0.8 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 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]); Thu, 26 Oct 2023 00:24:53 -0700 (PDT) Hi Tina, On Wed, Oct 18, 2023 at 01:06:35PM +0800, Tina Zhang wrote: > Tina Zhang (5): > iommu/vt-d: Remove mm->pasid in intel_sva_bind_mm() > iommu: Add mm_get_enqcmd_pasid() helper function > mm: Add structure to keep sva information > iommu: Support mm PASID 1:n with sva domains > mm: Deprecate pasid field Thanks for doing this, it all looks reasonable to me. But there is one thing missing which needs to be done before we can move forward with this. There was a discussion about the Kconfig symbol naming used in mm_struct. Please see the discussion here: https://lore.kernel.org/all/CAHk-=wgUiAtiszwseM1p2fCJ+sC4XWQ+YN4TanFhUgvUqjr9Xw@mail.gmail.com/ Please update this patch-set to solve this and I will take the series. Regards, Joerg