Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp693005pxf; Thu, 1 Apr 2021 11:03:58 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwz6am397MqewSqZiBBtxs0LuwpR9WGA5N8KtFgQFtZvqJcW0VRgneQiDlI0juD+SqcUTai X-Received: by 2002:a05:6402:304b:: with SMTP id bu11mr10884339edb.157.1617300238313; Thu, 01 Apr 2021 11:03:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1617300238; cv=none; d=google.com; s=arc-20160816; b=N322glf2yyYt0kP0Ipt8JDhT4zTbkLa3xhMHYWD6V1A0xZa6j6kxuwyfph3XyokIuh MFg5HCHYdN+ZBILBKPknRsF3SSOrt6XWM5X3EwHrPXygBgjgn6fAp2061gp4gwDIQSJc iZLcEisAWnJnohqj5VpOomUUizCuPCD8X9A1oXuIRivPjf9TUDK0GzilBZdhN2NTGmQc /xNzhpvxQSnU3wkU6RmKBgE7SFC30vA7eS8/E6/a45Wl7ph7bgB4oH4iUOz/tFiv+Flo R0SSsqbYhogh+MW13UnA2214bv//+7mw8DQT+ulM7hB4By1NCdgUvSEXZbUuHc50ZxR+ 1LnA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :content-language:accept-language:in-reply-to:references:message-id :date:thread-index:thread-topic:subject:cc:to:from; bh=SRUee3ngTwDLx8pVDemLx8jtEesBt12s9tqdOZz+ixM=; b=l+Le3hCyqcmWqXRZFpWltL85rd7qHGpOWoYTz+hTKw/YUUUDyECh5I6oL4AXNxxQWY VTKnbDhbjZ81n/AvFXzeDqoJIh7O2kPnyLIsfq0uZA0aWFHvBmdHtoIk4VJaRv6DWznw bpNCF2uhkEo47sgWHtCy9uCO6U6N+D5zVWZPp7TT4gEbJfSqUT7pB0vLb2OqQvNazqgm RFHGE/bc5+e/GYbZOlvABpnZfSFELOe/xyqhiqLe0l8bF9s5sT+iFOE1gE3qthJ3FbD0 JBxR3rE1ptZTCi0uQUkSnIIoHqGfmXOGGlgojgx/VAwrYYlk404pBkPpASH4ydgPXQx8 f4zw== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=huawei.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id s20si4854095edq.484.2021.04.01.11.03.34; Thu, 01 Apr 2021 11:03:58 -0700 (PDT) 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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=huawei.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235883AbhDASCn (ORCPT + 99 others); Thu, 1 Apr 2021 14:02:43 -0400 Received: from szxga01-in.huawei.com ([45.249.212.187]:3066 "EHLO szxga01-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236094AbhDARqA (ORCPT ); Thu, 1 Apr 2021 13:46:00 -0400 Received: from DGGEML403-HUB.china.huawei.com (unknown [172.30.72.56]) by szxga01-in.huawei.com (SkyGuard) with ESMTP id 4FB2h24HlxzWQLW; Thu, 1 Apr 2021 20:34:58 +0800 (CST) Received: from dggpemm000003.china.huawei.com (7.185.36.128) by DGGEML403-HUB.china.huawei.com (10.3.17.33) with Microsoft SMTP Server (TLS) id 14.3.498.0; Thu, 1 Apr 2021 20:38:19 +0800 Received: from lhreml710-chm.china.huawei.com (10.201.108.61) by dggpemm000003.china.huawei.com (7.185.36.128) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2106.2; Thu, 1 Apr 2021 20:38:19 +0800 Received: from lhreml710-chm.china.huawei.com ([169.254.81.184]) by lhreml710-chm.china.huawei.com ([169.254.81.184]) with mapi id 15.01.2106.013; Thu, 1 Apr 2021 13:38:17 +0100 From: Shameerali Kolothum Thodi To: Auger Eric , yuzenghui CC: "eric.auger.pro@gmail.com" , "iommu@lists.linux-foundation.org" , "linux-kernel@vger.kernel.org" , "kvm@vger.kernel.org" , "kvmarm@lists.cs.columbia.edu" , "will@kernel.org" , "maz@kernel.org" , "robin.murphy@arm.com" , "joro@8bytes.org" , "alex.williamson@redhat.com" , "tn@semihalf.com" , zhukeqian , "jacob.jun.pan@linux.intel.com" , "yi.l.liu@intel.com" , wangxingang , jiangkunkun , "jean-philippe@linaro.org" , "zhangfei.gao@linaro.org" , "zhangfei.gao@gmail.com" , "vivek.gautam@arm.com" , "nicoleotsuka@gmail.com" , lushenming , "vsethi@nvidia.com" , "Wanghaibin (D)" Subject: RE: [PATCH v14 13/13] iommu/smmuv3: Accept configs with more than one context descriptor Thread-Topic: [PATCH v14 13/13] iommu/smmuv3: Accept configs with more than one context descriptor Thread-Index: AQHXCibIIJ3XeBlNOUapPYfC9gSwdKqcZ70AgANNIQCAABX1MA== Date: Thu, 1 Apr 2021 12:38:16 +0000 Message-ID: <27a474c325fc46a092c2e11854baaccc@huawei.com> References: <20210223205634.604221-1-eric.auger@redhat.com> <20210223205634.604221-14-eric.auger@redhat.com> <86614466-3c74-3a38-5f2e-6ac2f55c309a@huawei.com> In-Reply-To: Accept-Language: en-GB, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.47.25.230] Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org DQoNCj4gLS0tLS1PcmlnaW5hbCBNZXNzYWdlLS0tLS0N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