Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp592997imm; Wed, 8 Aug 2018 02:15:03 -0700 (PDT) X-Google-Smtp-Source: AA+uWPzKq4+6WIlH8qHQSgXyu9OjNFaMFXIka/TUljR1mc7Hfk2RjIVYUeaJuybeQw0Hl9rCaJk8 X-Received: by 2002:a17:902:6b0b:: with SMTP id o11-v6mr1788586plk.214.1533719702973; Wed, 08 Aug 2018 02:15:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1533719702; cv=none; d=google.com; s=arc-20160816; b=d9HEWCB+nJGJYCkBrL+y/6H/2qB2VCuCr75TYCEBJqgT1fHq6Xce6JBsj3ch77zhT7 Bw09bkQvBLgC4sT4lwh61tGj06GaJ3dFNkASN/vrMv8uVnXNGDK6/kCQWp8XOntxgGIm iOSLEJPCImaDxvIw28pcOCWmo6VlaSWtGenHv/TPdSRyRCyUCrSDbs76TR9lul9rWQbu OCJtg1C7AgxSEAwgwYbw5J99A1fL7X+Rfe8RTtFlJgk1uCPBkuUpVva1KAoLqFjhaxsj ws8+TN5uakBKzgdDT7x5LH3MEGAfRyA9ftm40j8Jm1jlWy3C4LTkFWGFj/NK86x0Ig6l tdog== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature:arc-authentication-results; bh=y685VCC2fdL3CrBPTnZ/m5Egk73hRK1xsGGqdE9Nmxk=; b=Ull9excXPLJhFNpWHZVls/PAn4xkrUsvb0NCk6gMoLo1wh+EkG4g0i5/BGcG9HYdxa iwsUJVk3b6QrejtNFtcXEY9cpqfoTbUIOvEdbAcC1jaNLwOEQUIMld5ctwV87XddMDSv 31Ghw1esPK9iHO1W7Qzn1pj6Bsv6EMWbcw4nA57pWOCtiE8kY68fjLG9PXaZy/OMyblj AwSSrT+EagAp7WVhkQFp0VAms8Pepy077F95W7NpfR02ar7KOIIt7vhfkzsBJBGMw1JW qkXeJOjpO6Z4qJypYHl5PAcd5xY4+9nJ9TtFylCzWqcUDG52ytBnejLGgQ7c4wcU/2Bv fsxQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail (test mode) header.i=@8bytes.org header.s=mail-1 header.b=hrLQOm+E; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=8bytes.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id y84-v6si2538718pfb.161.2018.08.08.02.14.48; Wed, 08 Aug 2018 02:15:02 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail (test mode) header.i=@8bytes.org header.s=mail-1 header.b=hrLQOm+E; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=8bytes.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727441AbeHHLco (ORCPT + 99 others); Wed, 8 Aug 2018 07:32:44 -0400 Received: from 8bytes.org ([81.169.241.247]:60904 "EHLO theia.8bytes.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727174AbeHHLco (ORCPT ); Wed, 8 Aug 2018 07:32:44 -0400 Received: by theia.8bytes.org (Postfix, from userid 1000) id 7DD682EA; Wed, 8 Aug 2018 11:13:55 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=8bytes.org; s=mail-1; t=1533719635; bh=7ZFcRR7M/mZfzjWZIjVz2jVZ4Dq5tB4gZ5scTn5OMTA=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=hrLQOm+Emje7OPRGWYoa/jpYQpeVIoBnp/5IenG0tijkT6OnD5BtGA1FHi4XcSlLT wqnDQuGR4WDjty70l7VG7HxWM3lrX2aF8yiq1Dys6YGuPGq08TYzh7cUtfw5QfPboe 5rBkCxengu856MfA6w3DQXrb7LcbcOwfYtWOpIUrc11VzhWF65go1D/u9g9/0suxiJ H/Z27AiRp1eiqLy6ZPHkZVU0PA5tw7exNQOQSt+a0grRlImM2A0fmrqfkBXMXOY0KA fybGlfU3nA78knd+VyElfM6ct/LrZMWmIXfNIbh+EPisO+BU9q6pxK7cVJ3rSzb1Oo 83T4ciRLUS26w== Date: Wed, 8 Aug 2018 11:13:54 +0200 From: Joerg Roedel To: Kenneth Lee Cc: Jonathan Corbet , Herbert Xu , "David S . Miller" , Alex Williamson , Kenneth Lee , Hao Fang , Zhou Wang , Zaibo Xu , Philippe Ombredanne , Greg Kroah-Hartman , Thomas Gleixner , linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-crypto@vger.kernel.org, iommu@lists.linux-foundation.org, kvm@vger.kernel.org, linux-accelerators@lists.ozlabs.org, Lu Baolu , Sanjay Kumar , linuxarm@huawei.com Subject: Re: [RFC PATCH 2/7] iommu: Add share domain interface in iommu for spimdev Message-ID: <20180808091354.ppqgineql3pufwwr@8bytes.org> References: <20180801102221.5308-1-nek.in.cn@gmail.com> <20180801102221.5308-3-nek.in.cn@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180801102221.5308-3-nek.in.cn@gmail.com> User-Agent: NeoMutt/20170421 (1.8.2) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Aug 01, 2018 at 06:22:16PM +0800, Kenneth Lee wrote: > From: Kenneth Lee > > This patch add sharing interface for a iommu_group. The new interface: > > iommu_group_share_domain() > iommu_group_unshare_domain() > > can be used by some virtual iommu_group (such as iommu_group for spimdev) > to share their parent's iommu_group. > > When the domain of the group is shared, it cannot be changed before > unshared. In the future, notification can be added if update is required. From the description or the patch I don't really get why this is needed. Please update the description and make a case for this API addition. Joerg