Received: by 2002:a05:6a10:1a4d:0:0:0:0 with SMTP id nk13csp703414pxb; Tue, 8 Feb 2022 00:02:03 -0800 (PST) X-Google-Smtp-Source: ABdhPJyrHQYRSqMhX96dQ2nlD/q+AjWdSBN4nK2xl2c1cNXYSFjRulzF6z1GzfI8SqF1k3bpLiTl X-Received: by 2002:a17:902:f687:: with SMTP id l7mr3495479plg.146.1644307322730; Tue, 08 Feb 2022 00:02:02 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1644307322; cv=none; d=google.com; s=arc-20160816; b=zSGfL1H4/CCNyBojS0IK5eMXiwKPLqnjD+TfQ7cGP9OJti4nGIR6aCoqd/PGcsNc4k Kk6Y+a8+vrc/khGTJvjqNloaRRLIHX9HZuDVb2yXwhA1BDKCELuFKgNtJVDUWKSQaXHY ke5SwMBxCRbY3xeBw0NgyTziIcbJ7/h5b7qLeQaWBq2uq+ugmHouwR7dxAbb3I4Rk7AC 7NUvh/FvxqcsUHbB8uRxNUe+ojNRUbHN436B3x+2Is4Ns4hDAPNYvXn4UqC/yKH28+Bj tRdXIdYdU0S5rieKd1ecKvHOUzGcx8ylCSB9FR2SelM9QDkhxo0coFswGNwGLdENQ+JU FWpA== 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=zIpSyWR7ak9tqAevMeA6OE8Vn5+WotNLo+B5taG6qP4=; b=fzHxPRIHBx0tX7OlW9wSRiQvRXSmbLZwDYtAMbVYjTzbvZg2hup+5cqzMNFYvuNWk7 nQQpBesf/LcSWDltigPrme6FXvG9j4h4rCvh6P/ZdtobO15f8fRpSRjmDY076icoXUHM y3oL9fCIxl4rzf4pWGS++QE26X8bt6DWoxj2NtTQawm/uBCaSmiornlYGE1y/7OrcF8O aYx1jZiMCB/7qgzSjHLsp0yXz9yEx0wfKUS6mqjuYGntcQlz5m8r4V4afLQcwYObA6oB p4pojhz9cFmp0J8UpPMoPK6tbg7blE6MrAhER0c944NlkivelDWuJIhTvKEP4XP9vDDl UHcQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=OVwmuZsX; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id a28si8959314pgl.361.2022.02.08.00.01.49; Tue, 08 Feb 2022 00:02:02 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=OVwmuZsX; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344466AbiBHBut (ORCPT + 99 others); Mon, 7 Feb 2022 20:50:49 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60530 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241926AbiBHBdk (ORCPT ); Mon, 7 Feb 2022 20:33:40 -0500 Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 81866C061A73 for ; Mon, 7 Feb 2022 17:33:40 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1644284020; x=1675820020; h=message-id:date:mime-version:cc:subject:to:references: from:in-reply-to:content-transfer-encoding; bh=lCvKr8YSZEJVpbrPbtkoNv3VFQvm3GXDNvJCWJ1cbfQ=; b=OVwmuZsXDYNGLFytnYauiH07MhHsAq0IYUsktefUtNAy5gW1i381jA+5 ikjyYOPptTWU1xERyvFWtXB3Mmf0TYY/WZa3N7lsb+yMHGpBRZQWToWNE tMT8sqxCJaaIOZXIU4GVQHS2halvPAFQkFtwQJBzWk909zyss4gDzQuEg iNDqkKia7rZWbx+EArtyAprzczYDgn3qMRSNUv+0kbpIvohjwcoMwu0IB JIIqaBPh/jG1KB/gEylM4zvnwa+JKhRyUHwWWTQsi/curGZ4eToJj4bNs KDFZmTLmv8y5lHrHw36VX5qvrqLTeZeN58c9XmB397gpt22YlIVKyYlhZ w==; X-IronPort-AV: E=McAfee;i="6200,9189,10251"; a="246436875" X-IronPort-AV: E=Sophos;i="5.88,351,1635231600"; d="scan'208";a="246436875" Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by fmsmga102.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 07 Feb 2022 17:33:40 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.88,351,1635231600"; d="scan'208";a="677950229" Received: from allen-box.sh.intel.com (HELO [10.239.159.118]) ([10.239.159.118]) by fmsmga001.fm.intel.com with ESMTP; 07 Feb 2022 17:33:36 -0800 Message-ID: <40399e95-1ce4-187e-06c1-7cd7b7f4a190@linux.intel.com> Date: Tue, 8 Feb 2022 09:32:25 +0800 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.5.0 Cc: baolu.lu@linux.intel.com, Alex Williamson , Eric Auger , Liu Yi L , Jacob jun Pan , David Airlie , Daniel Vetter , Thierry Reding , Jonathan Hunter , iommu@lists.linux-foundation.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 0/7] iommu cleanup and refactoring Content-Language: en-US To: Joerg Roedel , Jason Gunthorpe , Christoph Hellwig , Ben Skeggs , Kevin Tian , Ashok Raj , Will Deacon , Robin Murphy References: <20220124071103.2097118-1-baolu.lu@linux.intel.com> From: Lu Baolu In-Reply-To: <20220124071103.2097118-1-baolu.lu@linux.intel.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-7.0 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_HI, RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 1/24/22 3:10 PM, Lu Baolu wrote: > Hi, > > The guest pasid and aux-domain related code are dead code in current > iommu subtree. As we have reached a consensus that all these features > should be based on the new iommufd framework (which is under active > development), the first part of this series removes and cleanups all > the dead code. > > The second part of this series refactors the iommu_domain by moving all > domain-specific ops from iommu_ops to a new domain_ops. This makes an > iommu_domain self-contained and represent the abstraction of an I/O > translation table in the IOMMU subsystem. With different type of > iommu_domain providing different set of ops, it's easier to support more > types of I/O translation tables. > > Please help to review and comment. Thank you all for the great comments. A new version of this series has been posted. https://lore.kernel.org/linux-iommu/20220208012559.1121729-1-baolu.lu@linux.intel.com/ Please check whether I missed anything. Best regards, baolu