Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp38328imm; Wed, 12 Sep 2018 17:36:07 -0700 (PDT) X-Google-Smtp-Source: ANB0VdaKe7FNa+hs0tx6NUcJErphryorwaEaCRs4GOFybVEhYTbQzcHtq6kVEJcXIASakfQUM6sy X-Received: by 2002:a65:50c9:: with SMTP id s9-v6mr4690853pgp.417.1536798967221; Wed, 12 Sep 2018 17:36:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536798967; cv=none; d=google.com; s=arc-20160816; b=xcDyt+j6L+tHSRx2A8M9GsMzEGIkKLs9llyGwyZSIiM2aKyV8ab/6jRw/gwVAz2Ixt yrRCjgve6HA04oD7OyWnsnm38MVhdx+c/oJeJh4xNTPedCb2kCIPne7jtp8VPr19W+g8 bmbYn2Hbg0D3WIInXhOtSBPBoq+AIwHR9RXS8q6QKHt2MI5EBCtJankWJx/ztX6QT3M3 ZD9W95lIMrRf0Lkl9sA8spv3uQ6gPGoud5yMhllbbrhJWp2WpvCtHEEpCWrZ8l7SCREI NyU65ze/5UOqAUGZqDrLA94TIaBItwYEQar6CnxrQDtDnNtG0oIRElgTHCHP0SJ21T+4 RF6A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :dlp-reaction:dlp-version:dlp-product:content-language :accept-language:in-reply-to:references:message-id:date:thread-index :thread-topic:subject:cc:to:from; bh=WQUadFnAhwQtSPaOTf28VnfPT3HjerucySIkqd7qGzQ=; b=kzHeQRuxtPwVw921VsfpaLXlKwhCt+3AO0eFlV6VwiLxRBVMXO5hn8IlsD//FfP1gw FkIz9w9NJAwiFy+I/MLmyd6am8gvEcLQuSandIa2pP2vKzBUBaEMyfzpnvTvuNRd56EH RIiQiZhMiZfDiBdPv+4hcAJdKvbb8XgHasH+NAFWfnMAGbWBMyfcI0PhyLtT9eiqYRdC JlDTJLtrbUxBU/cYIjvRCrnt5pM629GldoQmtzTErI5IXBw5NnDtECalKBbu9MliQzAr vjua5TwHeHomkn7fhyR9iKg1h9d6CswK46mAYHJXxsBQbu3CHUSLN3bkhXegWreZHVc+ 65fg== ARC-Authentication-Results: i=1; mx.google.com; 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=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 14-v6si2615073plb.230.2018.09.12.17.35.51; Wed, 12 Sep 2018 17:36:07 -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; 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=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726736AbeIMFmn (ORCPT + 99 others); Thu, 13 Sep 2018 01:42:43 -0400 Received: from mga18.intel.com ([134.134.136.126]:8907 "EHLO mga18.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726501AbeIMFmn (ORCPT ); Thu, 13 Sep 2018 01:42:43 -0400 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga001.jf.intel.com ([10.7.209.18]) by orsmga106.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 12 Sep 2018 17:35:43 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.53,367,1531810800"; d="scan'208";a="89984534" Received: from fmsmsx104.amr.corp.intel.com ([10.18.124.202]) by orsmga001.jf.intel.com with ESMTP; 12 Sep 2018 17:35:24 -0700 Received: from shsmsx103.ccr.corp.intel.com (10.239.4.69) by fmsmsx104.amr.corp.intel.com (10.18.124.202) with Microsoft SMTP Server (TLS) id 14.3.319.2; Wed, 12 Sep 2018 17:35:23 -0700 Received: from shsmsx101.ccr.corp.intel.com ([169.254.1.205]) by SHSMSX103.ccr.corp.intel.com ([169.254.4.240]) with mapi id 14.03.0319.002; Thu, 13 Sep 2018 08:35:21 +0800 From: "Tian, Kevin" To: Jean-Philippe Brucker , Lu Baolu , Joerg Roedel , David Woodhouse , Alex Williamson , "Kirti Wankhede" CC: "Raj, Ashok" , "Bie, Tiwei" , "Kumar, Sanjay K" , "iommu@lists.linux-foundation.org" , "linux-kernel@vger.kernel.org" , "Sun, Yi Y" , "Pan, Jacob jun" , "kvm@vger.kernel.org" Subject: RE: [RFC PATCH v2 08/10] vfio/type1: Add domain at(de)taching group helpers Thread-Topic: [RFC PATCH v2 08/10] vfio/type1: Add domain at(de)taching group helpers Thread-Index: AQHUSsGwaQymE1k7kU+SruPVMmdMqqTtWXUg Date: Thu, 13 Sep 2018 00:35:21 +0000 Message-ID: References: <20180830040922.30426-1-baolu.lu@linux.intel.com> <20180830040922.30426-9-baolu.lu@linux.intel.com> <04f5dc9d-71b1-37ec-402b-fae5f9e08664@arm.com> In-Reply-To: <04f5dc9d-71b1-37ec-402b-fae5f9e08664@arm.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ctpclassification: CTP_NT x-titus-metadata-40: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiOGMwOTM5YzQtMzhkMC00MjdkLTlmNWItYjk4ZTQxOTZlZmUzIiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX05UIn1dfV19LCJTdWJqZWN0TGFiZWxzIjpbXSwiVE1DVmVyc2lvbiI6IjE3LjEwLjE4MDQuNDkiLCJUcnVzdGVkTGFiZWxIYXNoIjoiNWl4NllOOVVHbVRJK3Q4NkVudHJUZjEzT05aSG1hWWlmK1wvMEFNQ3VPbk5neHhYUGcyQ0Z3ZXBZeFdpVENYWTkifQ== dlp-product: dlpe-windows dlp-version: 11.0.400.15 dlp-reaction: no-action x-originating-ip: [10.239.127.40] Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 MIME-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org PiBGcm9tOiBKZWFuLVBoaWxpcHBlIEJydWNrZXIgW21haWx0bzpqZWFuLXBoaWxpcHBlLmJydWNr ZXJAYXJtLmNvbV0NCj4gU2VudDogVGh1cnNkYXksIFNlcHRlbWJlciAxMywgMjAxOCAxOjU0IEFN DQo+IA0KPiBPbiAxMi8wOS8yMDE4IDA2OjAyLCBMdSBCYW9sdSB3cm90ZToNCj4gPiBIaSwNCj4g Pg0KPiA+IE9uIDA5LzExLzIwMTggMTI6MjMgQU0sIEplYW4tUGhpbGlwcGUgQnJ1Y2tlciB3cm90 ZToNCj4gPj4gT24gMzAvMDgvMjAxOCAwNTowOSwgTHUgQmFvbHUgd3JvdGU6DQo+ID4+PiArc3Rh dGljIGludCB2ZmlvX2RldGFjaF9hdXhfZG9tYWluKHN0cnVjdCBkZXZpY2UgKmRldiwgdm9pZCAq ZGF0YSkNCj4gPj4+ICt7DQo+ID4+PiArCXN0cnVjdCBpb21tdV9kb21haW4gKmRvbWFpbiA9IGRh dGE7DQo+ID4+PiArDQo+ID4+PiArCXZmaW9fbWRldl9zZXRfYXV4X2RvbWFpbihkZXYsIE5VTEwp Ow0KPiA+Pj4gKwlpb21tdV9kZXRhY2hfZGV2aWNlKGRvbWFpbiwgZGV2LT5wYXJlbnQpOw0KPiA+ Pg0KPiA+PiBJIHRoaW5rIHRoYXQncyBvbmx5IGdvaW5nIHR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