Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp2382169imw; Wed, 6 Jul 2022 05:08:45 -0700 (PDT) X-Google-Smtp-Source: AGRyM1tKzt05G2cZ5pAjPl/oA7wH0B0THDpuby0slnJNeiU8E4Wvnn73+SRNHIcKEEOJGqOYWDeV X-Received: by 2002:a17:902:b60a:b0:16b:d6e9:fce9 with SMTP id b10-20020a170902b60a00b0016bd6e9fce9mr22454889pls.124.1657109325226; Wed, 06 Jul 2022 05:08:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1657109325; cv=none; d=google.com; s=arc-20160816; b=Rw3HTFZYNvvRoms2+xGNY0eDyARMsJxQOOm2l9aahKPayTsadCOyWf4E8WfqS4zGq0 eMLA7PFuP2gLQmTyONkAZpTkFYLbCj+BCGNzKlsGAembI2rfYDsEs0drn80HKEv7y0Fr /63wCjCr6wELNroiuNh3QK18hbqq2rGbQIADEwsWrGsFEAHmzI70XnVOpKqd+DryGcI4 t5mZoSM+6Nwo0q+JSyjJnALnG/j1ZRc3Unt9iF6j1E0kO0fT9dtLCTgO2OikGNi9dMWL arB6KsAN0RAt2JA4CnVdv72aKs76RruULGrBqmFxfZnLx0bXm/63kwP8MU7Yyg2yzo6B B1JA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=9AkgZiQhkU23/2dThD7vx8cx2eN0BNvLMLqqdAUtXv0=; b=EX9YvYoaAX08CZ6RtIxovt50Ij3UdLj6vKWAKU+kM0GluVd+ZGApvHBUlC3ZG1qNc5 ta9IOsiWCggsr2nEZ99HcLZqR8j0ej+yrX202xu1ohLJGW6EF1g3p/1FILzMdqJn8TII mkEUi2FjYEcEXQka8mKejJMnn/uvBzOlL636GEfFIL1X1+KvxdaXTyvsv7GipJulbFi1 YaRxVwdEDFnPVfA/E+gRIehYOD+a7/VJUWR6X64/AHDhoKSmAn+lkXAJGoztsNhrxso3 ujMqfZgiFe9sB35XmBfcQ8g+VZxd68VtuFwo2QpGA+nwCDyA+X/kh9vXIGrK+CcRFIk2 7f5w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=dOArfIuH; 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=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id o6-20020a170902d4c600b0016c0ae33e3esi99758plg.347.2022.07.06.05.08.33; Wed, 06 Jul 2022 05:08:45 -0700 (PDT) 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=@kernel.org header.s=k20201202 header.b=dOArfIuH; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233466AbiGFMBO (ORCPT + 99 others); Wed, 6 Jul 2022 08:01:14 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34486 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233444AbiGFMBI (ORCPT ); Wed, 6 Jul 2022 08:01:08 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A8E2428E36 for ; Wed, 6 Jul 2022 05:01:06 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 2DBE161F44 for ; Wed, 6 Jul 2022 12:01:06 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 4789DC3411C; Wed, 6 Jul 2022 12:01:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1657108865; bh=SxZ5gPnL1lJYbbdKlvmsQFgB0lgS1A3kcbUqEn7xBRQ=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=dOArfIuHLw6DUXMjueXyFAFj2MCvfGU248UeblIvaB8Mdpjk6cKv5QRgDqMx2lFNo YPquuSW2tGbSY4szUZ8AsXJ4UhyUu1n+0QYBcu2OKEtSIXoGnTmJMDgFU10bCKD1UL kTnHNnB+u3RvZbLvXiZ4nnoDTn7mOJkFjkNN0pgpo/ij/+tCmur3TTu/VtbTwNvhtJ tLdFw/1/d+h2fNSstaH8dYTmHFiRXZKq0PA7IBfzs3FJSGEA7r1h/dWZxCuN2gcEEg H0JWBi9zioTiZ6u/011hT2D6fRfJ5QMJUeEFfe4rD6K5t9G4KLgqCqr/9rntIR/yjN e9jWJXYnSBCpg== Date: Wed, 6 Jul 2022 13:00:59 +0100 From: Will Deacon To: John Garry Cc: joro@8bytes.org, robin.murphy@arm.com, mst@redhat.com, jasowang@redhat.com, iommu@lists.linux-foundation.org, linux-kernel@vger.kernel.org, virtualization@lists.linux-foundation.org, chenxiang66@hisilicon.com, thunder.leizhen@huawei.com, jean-philippe@linaro.org, linuxarm@huawei.com Subject: Re: [PATCH RESEND v5 1/5] iommu: Refactor iommu_group_store_type() Message-ID: <20220706120059.GE2403@willie-the-truck> References: <1649071634-188535-1-git-send-email-john.garry@huawei.com> <1649071634-188535-2-git-send-email-john.garry@huawei.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1649071634-188535-2-git-send-email-john.garry@huawei.com> User-Agent: Mutt/1.10.1 (2018-07-13) X-Spam-Status: No, score=-7.8 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,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 Mon, Apr 04, 2022 at 07:27:10PM +0800, John Garry wrote: > Function iommu_group_store_type() supports changing the default domain > of an IOMMU group. > > Many conditions need to be satisfied and steps taken for this action to be > successful. > > Satisfying these conditions and steps will be required for setting other > IOMMU group attributes, so factor into a common part and a part specific > to update the IOMMU group attribute. > > No functional change intended. > > Some code comments are tidied up also. > > Signed-off-by: John Garry > --- > drivers/iommu/iommu.c | 96 ++++++++++++++++++++++++++++--------------- > 1 file changed, 62 insertions(+), 34 deletions(-) Acked-by: Will Deacon Will