Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp3994623pxb; Tue, 25 Jan 2022 00:57:33 -0800 (PST) X-Google-Smtp-Source: ABdhPJxpXxuA0+4b3fuXY7Txndi8Szzs33yXmCeRfPpv+NylpFtQKPPwjSq/gh/uGrc2Vi1pN2US X-Received: by 2002:a63:210:: with SMTP id 16mr14897041pgc.26.1643101053116; Tue, 25 Jan 2022 00:57:33 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643101053; cv=none; d=google.com; s=arc-20160816; b=j09ZdRBAQv2TLypAXwxj3fj0h4LcGOh58OLS1JJIhsxPr4qNV8cUZc3u70g6iXx1yE lbg3AxoSBgbmYo35PowwIBin/M/+mjOVwDbkQ4kSzYdpyxQLPeW6tdP326mGJOgm+wZG SvB7/gYRW45ZGFu+WTArjXZBuwmb95jN3txKc3cVq4Nd7Nc3tgAEJ+FrV979RhkEEp/d c29wTOSV158YcHSZaSsE9o3iOsDq4P3dYuw8HxC+pbc+cRo0En8+weKHtHbRwW3iF182 ePxiHBShYWfUlAOZqRgaJrCmjFYaG5vn/TN1jHft98THEwM6pOjDwihg3+5710wyFJG/ gttg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :to:subject:cc:dkim-signature; bh=3pBUix0KzKn6ABLayz7zRm3Uercd2+uRQHbPURRxCkw=; b=sNSCGkPOgDHp+lr3JqPAqadzIMA4ivv6zRbM9UozPqLnri45RPIdHWKzm01H53r01T css5ApucRhe93aNYBXIq9LHU0kn+4pW2OaXUQRpgUTydLEYIVL7QkRIQyTaAREIBCQM3 skC8tqzUOTFQ7CbOeDEQyaE6OgqsLFsPp9JsNWwEmkSMJO65fmmkXZ4DfPHkg9e3a8fk 0clWcIAdf7AmrqSPu1+cAACJbtz9Wrx6yYe0L4vnTPnqmJtpf5oYBWNOZlHqVXWHFnin HZvRc5CVMpVBOIs1p4u3cIZGBouWOaAga+gApw4Ay3Z5UwyS8oc91R+1ETyGknxjR5fx 0q1w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=DOJSn57a; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id f17si18868353pfc.39.2022.01.25.00.57.21; Tue, 25 Jan 2022 00:57:33 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=DOJSn57a; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S254922AbiAYExg (ORCPT + 99 others); Mon, 24 Jan 2022 23:53:36 -0500 Received: from mga06.intel.com ([134.134.136.31]:17064 "EHLO mga06.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1326106AbiAYEoi (ORCPT ); Mon, 24 Jan 2022 23:44:38 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1643085878; x=1674621878; h=cc:subject:to:references:from:message-id:date: mime-version:in-reply-to:content-transfer-encoding; bh=RHEqwCKoay/aJcjfpJzwezonfNdiVpJz/c7HuPxDFXQ=; b=DOJSn57aMVvUcI8Ou5RowefsFtuyxujYPNMB1XLJuXKOB5Y6sbDezjqr M35Ly93xomaymRNCYnelqbvR+weMUELo3z8Ucke+3dyNqao9xIsiY/MCz fuoRn1hHodQgAR6QZvrGt+Ta7nd7umHbUgEkXSe5W6DugnXWsce8UR8Us /wZb2HMX1TSY5Fxdrj0lL3SPLIHNepshyz943QLBQRxSzWvfQ4oOO/DbT MB/7iZgb5EKUh+8AyfbL1VAZsVAHpDoqTG2mi133hjGJpk3WXIKG8H557 E9cOLP/D4ic6yPCkCqUVGeDh6lsGMDpUWIbJ8hETKYVlH7Yo7XRaXSb9Q Q==; X-IronPort-AV: E=McAfee;i="6200,9189,10237"; a="306932970" X-IronPort-AV: E=Sophos;i="5.88,314,1635231600"; d="scan'208";a="306932970" Received: from orsmga008.jf.intel.com ([10.7.209.65]) by orsmga104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 24 Jan 2022 20:44:32 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.88,314,1635231600"; d="scan'208";a="534559345" Received: from allen-box.sh.intel.com (HELO [10.239.159.118]) ([10.239.159.118]) by orsmga008.jf.intel.com with ESMTP; 24 Jan 2022 20:44:28 -0800 Cc: baolu.lu@linux.intel.com, Joerg Roedel , Ben Skeggs , Kevin Tian , Ashok Raj , Will Deacon , Robin Murphy , 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 7/7] iommu: Add iommu_domain::domain_ops To: Jason Gunthorpe , Christoph Hellwig References: <20220124071103.2097118-1-baolu.lu@linux.intel.com> <20220124071103.2097118-8-baolu.lu@linux.intel.com> <20220124172418.GE966497@nvidia.com> From: Lu Baolu Message-ID: <256b0ae8-47c5-24ac-0ca9-8f0936505656@linux.intel.com> Date: Tue, 25 Jan 2022 12:43:28 +0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.14.0 MIME-Version: 1.0 In-Reply-To: <20220124172418.GE966497@nvidia.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 1/25/22 1:24 AM, Jason Gunthorpe wrote: > On Mon, Jan 24, 2022 at 01:37:21AM -0800, Christoph Hellwig wrote: >> On Mon, Jan 24, 2022 at 03:11:02PM +0800, Lu Baolu wrote: >>> Add a domain specific callback set, domain_ops, for vendor iommu driver >>> to provide domain specific operations. Move domain-specific callbacks >>> from iommu_ops to the domain_ops and hook them when a domain is allocated. >> >> Ah, that's what I meant earlier. Perfect! >> >> Nit: I don't think vendor is the right term here. > > +1 please don't use the confusing 'vendor' in the kernel, if you feel > you want to write 'vendor' writing 'device driver' is usually a good > choice.. Sure! > > This whole series is nice, the few small notes aside, thanks for > making it! Thank you! > > Jason > Best regards, baolu