From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (xvm-189-124.dc0.ghst.net [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 77857A09FF; Wed, 6 Jan 2021 08:42:02 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 1D8FD160838; Wed, 6 Jan 2021 08:42:02 +0100 (CET) Received: from mga06.intel.com (mga06.intel.com [134.134.136.31]) by mails.dpdk.org (Postfix) with ESMTP id AE787160770 for ; Wed, 6 Jan 2021 08:42:00 +0100 (CET) IronPort-SDR: 3kFwb0veAAkWmoDmtlG3KYXDQS6jDU1sVU0AuwWn7CJTOqG5ifsDP0lg+QIU0pqQnAsGXIORzL YsCZx4JBi6jg== X-IronPort-AV: E=McAfee;i="6000,8403,9855"; a="238793077" X-IronPort-AV: E=Sophos;i="5.78,479,1599548400"; d="scan'208";a="238793077" Received: from orsmga005.jf.intel.com ([10.7.209.41]) by orsmga104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 05 Jan 2021 23:41:59 -0800 IronPort-SDR: yBHCPjvzr0VzJPGtafvHUBUM/ClyGhHU0rikEHOysjSmAsWkUANjuPrZa0xKN+opsqFB06jOs/ 6w485okhfjEQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.78,479,1599548400"; d="scan'208";a="565726592" Received: from fmsmsx605.amr.corp.intel.com ([10.18.126.85]) by orsmga005.jf.intel.com with ESMTP; 05 Jan 2021 23:41:59 -0800 Received: from fmsmsx609.amr.corp.intel.com (10.18.126.89) by fmsmsx605.amr.corp.intel.com (10.18.126.85) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1713.5; Tue, 5 Jan 2021 23:41:59 -0800 Received: from fmsmsx611.amr.corp.intel.com (10.18.126.91) by fmsmsx609.amr.corp.intel.com (10.18.126.89) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1713.5; Tue, 5 Jan 2021 23:41:58 -0800 Received: from FMSEDG603.ED.cps.intel.com (10.1.192.133) by fmsmsx611.amr.corp.intel.com (10.18.126.91) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1713.5 via Frontend Transport; Tue, 5 Jan 2021 23:41:58 -0800 Received: from NAM04-SN1-obe.outbound.protection.outlook.com (104.47.44.55) by edgegateway.intel.com (192.55.55.68) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.1713.5; Tue, 5 Jan 2021 23:41:58 -0800 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=fkRf6cH/k0hEZIp8d4IW5CoQ5Cmzm5Fv2jVSphs9LVbH0lzW/pEIp6YcjBKhjM0CMYsOzfs9BT+NAJlWxxMQEfKphT5WXeHKbsyOmjnJL+PueQDfUBTDreyrNq7DTJqwFtNj+KtUNKJ7xX0VVJpt3G9ieOumNeeB+XQ9Pe+fl5gUTmcX/136rXxEedyA51zRGGhFdiShs8m/2BS8hp+ipykbeY0VqioxvFZ/2fjj3LAr/2H41lbvvGTMxfVdMJMOgw1/LFZkqIs2C54LRUP1eLy8qEQ9vz2MsfSZ2S84tU6rUDRZ9W77UxkimaCUmhq52oxKHB9EzIfr87fSKGmLHA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=wqP1ATyUhuCkQQFvyviF9029JZKTPVTTZG40+XNRfzc=; b=Dk44jhTufrkf3bQrsEgGHPAlDQJPlsuoLH+mvSjAzhPvD92P5f+PiULpz1USf9sHHJyJPmgiR0/URu2kBhL6N9/Mh2uJy8oA1wOtuqgo28wwJHu2Qi0AB/9BD1hhZdSk9o0xS528d7k1sqQ+0caJp+06B2UemxQl4lJfkoW/9wvNzt2TM65BR9GAxwc8YQm+iiEz4GzT4kGj3hpe9v338GdiTOw4YWXldCD7+Z/3q+wUqc04Es53I3dhJd2DpKHsPe4fLmWSaYvs3PpmqoEKMEZEta/LAGNzd0FpvJy8Fifjq884dmEH+ac8TbXdvrgYzWqOQFrfFcCpbFCRLMs6/A== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=intel.com; dmarc=pass action=none header.from=intel.com; dkim=pass header.d=intel.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=intel.onmicrosoft.com; s=selector2-intel-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=wqP1ATyUhuCkQQFvyviF9029JZKTPVTTZG40+XNRfzc=; b=fwXaKsmjXOvUdvNLaV19pnN+F+2YscX9EAwOSKRdC6DjjpgBxVoVp2NFYx66PgngLg01QV1XJ3bO/+urz92CztVQtFv3rSbpVEc/jsZ5vjkqtPfbN4AnsB+dQ/YWMKVBDLjNa5fruSXVVk+G8Iy2en1x6rykXksOqUIRcN1QG48= Received: from MN2PR11MB4063.namprd11.prod.outlook.com (2603:10b6:208:13f::22) by MN2PR11MB3808.namprd11.prod.outlook.com (2603:10b6:208:f8::27) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3721.20; Wed, 6 Jan 2021 07:41:57 +0000 Received: from MN2PR11MB4063.namprd11.prod.outlook.com ([fe80::74f2:ba7f:cb22:5272]) by MN2PR11MB4063.namprd11.prod.outlook.com ([fe80::74f2:ba7f:cb22:5272%7]) with mapi id 15.20.3721.024; Wed, 6 Jan 2021 07:41:57 +0000 From: "Xia, Chenbo" To: "Wu, Jingjing" , "dev@dpdk.org" , "thomas@monjalon.net" , "david.marchand@redhat.com" CC: "stephen@networkplumber.org" , "Liang, Cunming" , "Lu, Xiuchun" , "Li, Miao" Thread-Topic: [PATCH v2 4/8] emu/iavf: add vfio-user device register and unregister Thread-Index: AQHW42iKUpznamW5XkmLMbqdk4fefaoaN9bQ Date: Wed, 6 Jan 2021 07:41:57 +0000 Message-ID: References: <20201218074736.93999-1-chenbo.xia@intel.com> <20201219062806.56477-1-chenbo.xia@intel.com> <20201219062806.56477-5-chenbo.xia@intel.com> In-Reply-To: Accept-Language: en-US, zh-CN Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: intel.com; dkim=none (message not signed) header.d=none;intel.com; dmarc=none action=none header.from=intel.com; x-originating-ip: [192.55.46.36] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 0ee3e5ec-8f93-487b-c4f6-08d8b2168b88 x-ms-traffictypediagnostic: MN2PR11MB3808: x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:8273; x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: PB2H5/LOXYKVCkCOoo/Ib1X/k12Eue9LJfl+E5Qu1P47iuvLO2uGZgMzhcBOWPU0FE1zqb62Bw6ECrmaMcUNWIFTn2u9TX4duKmNqR3WehkAgS+9eMoUHEeCkTKKnw7LMpEby+jEbjZGHtQngVUIfhZe4r4vdo1h6WVEu1P29IJ3BJLgCNehQMfvEi/0v+8yKJZGuympNjG3kT+nh/usxBqYyEduee67lLDsyxxargWNYUqwENV6sIfazk2BQDWnTy68/F1J2zLPx2JEuS2fHMslIEegIuUWTyoTiMrfLeZmRKhTycZJEtaQft4MQfvyFKeXgnwq8Vt2Z+xvPAYfafH4bxAK8pKOBbHk5oHqUcmy/L56//McUe1SpRZub34ufbv48M3i813LX/RAfeXTWQ== x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:MN2PR11MB4063.namprd11.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(136003)(366004)(396003)(39860400002)(346002)(376002)(52536014)(107886003)(6506007)(83380400001)(8936002)(33656002)(71200400001)(316002)(2906002)(53546011)(186003)(66476007)(64756008)(66946007)(9686003)(5660300002)(26005)(478600001)(8676002)(66556008)(7696005)(86362001)(54906003)(55016002)(110136005)(66446008)(4326008)(76116006); DIR:OUT; SFP:1102; x-ms-exchange-antispam-messagedata: =?utf-8?B?ai9JcmVncjdSZHVaWm81WU5KajNrdFh4Y2IxUzJiSWt6ZjBxbXBlVTVvZkk4?= =?utf-8?B?MzNYd1RVR29BUTZHRkhiZCtqSTFtQVkxNDh5dDhvS29DSnRZK1JFWlozeW5F?= =?utf-8?B?enBOT1BxTEYwWVRrbHFneVExQmVTUDJZdFFEaHJhemM1T25QV3pkdlBFbnMx?= =?utf-8?B?dFducmU0T3Q5U0VFYzZtbUp6YkM4T1J2VDhzSVp4M2laTU53eG1yUWx3Zmlq?= =?utf-8?B?dmdBd2hQcTdOZnhOaVVsUGNtSk80aTZxSW0xM2IwaGxYcEIvYmRZWStZTEwx?= =?utf-8?B?LzhENTZZWFRVOTFZUi9PWDBqbW96a0lEaSs1Tng4SFF4ODlFK3JoQ3N5MmFQ?= =?utf-8?B?TWxWaFUySmtodmhWdlhWQjk2dlBRakoyYzhra0J4dlNqWlNCaGpLUDdzUk16?= =?utf-8?B?WFc2NDZldmZZVDE4d1B3dmc3ODk4SzRCRldXT0lwM1lCQXZ6UzNlZWx0QTli?= =?utf-8?B?NHlRSmt3QWt1VFJNNXh4S2MxT1h0aWJ4aWhBQkhKdG9zdkJrQmROdTlyN1RC?= =?utf-8?B?RjIrL291UGxUMDBVRkZJaW5ISmkydHM0cFozeWlWb0g0a1Z5SllGWTJKWW8z?= =?utf-8?B?NzZ6REpuWjI1dlYvL1BmTTl3WkpHNnRDdzZvL2dHNzRHTFV2eFg5OHFxYmgx?= =?utf-8?B?dlliYzJPalFnb0ZOY0ZqSHZQa1ZSdDVyWERNNDVqYTJxZ2ZDQS9qTmxNTmtp?= =?utf-8?B?Q2FBZyswL3UvUFpmN1hqOE1ZTTFRb2tJNFhYNzRwc1dyWDVaNktMTVVZeDVS?= =?utf-8?B?Mkx2YUxrYjVIOFFyckpOVStVTzU3WWo0Nm9OclNUeWVMUW5TR0RsVjRlQXlx?= =?utf-8?B?V0loRmRGeWVoaTVIdHBpYTB3Z2FLR3FVRUZ3MDZLaVpJRWZTUm5IemtTbWNW?= =?utf-8?B?L0Q1L1BzbC9ndWZ4djJscTFHNFpHWDFnZ2dVUXFoc3hYR2JyTzYwUUhmc1BG?= =?utf-8?B?ZEpBc0dlQU0rZC9OblJxeDgxTk5aMVRvSWlOWkswc0xjYkN3Rkd4ZVgrbVN1?= =?utf-8?B?T1ZhYXJOelpuc2NiVHFnYUtUZ1lDaHRrd29zNXcweHhCc3kvajJXWmNDWHla?= =?utf-8?B?YlJQNjQzNHIwaXdVdmIybHZPM2k0bzM3MmxPVGVJdmszcnpPZ0RMczVoZVR5?= =?utf-8?B?NlRwZGcraXVaSUI0QnJqQ3I3UnNJaGExU1k3NnFjeUQrcGFJK0pFOXl1V256?= =?utf-8?B?aXRablhWVGE5eHo5cVhVMGpRWEpRaVhoMWsvRk9qOHEwc0FwdEF4bHR5WWFs?= =?utf-8?B?dzNTeHIwUnF3ZUdFNktaQXE4R3c2K0NHOGIwVW5VL0tmbTMzOWdsbDQyMHFP?= =?utf-8?Q?Zv8KAZYDlXzuI=3D?= Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: MN2PR11MB4063.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 0ee3e5ec-8f93-487b-c4f6-08d8b2168b88 X-MS-Exchange-CrossTenant-originalarrivaltime: 06 Jan 2021 07:41:57.0907 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 46c98d88-e344-4ed4-8496-4ed7712e255d X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: v/GCC7RXPOQ9F7WyibGUPH1PCsW3vb3PzssabZ9abl+jRN/IJdi61otDvxDAuKLR72+ngfR7zRHtMLD+Si2Ueg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: MN2PR11MB3808 X-OriginatorOrg: intel.com Subject: Re: [dpdk-dev] [PATCH v2 4/8] emu/iavf: add vfio-user device register and unregister X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" SGkgSmluZ2ppbmcsDQoNCj4gLS0tLS1PcmlnaW5hbCBNZXNzYWdlLS0tLS0NCj4gRnJvbTogV3Us IEppbmdqaW5nIDxqaW5namluZy53dUBpbnRlbC5jb20+DQo+IFNlbnQ6IFR1ZXNkYXksIEphbnVh cnkgNSwgMjAyMSA5OjQyIFBNDQo+IFRvOiBYaWEsIENoZW5ibyA8Y2hlbmJvLnhpYUBpbnRlbC5j b20+OyBkZXZAZHBkay5vcmc7IHRob21hc0Btb25qYWxvbi5uZXQ7DQo+IGRhdmlkLm1hcmNoYW5k QHJlZGhhdC5jb20NCj4gQ2M6IHN0ZXBoZW5AbmV0d29ya3BsdW1iZXIub3JnOyBMaWFuZywgQ3Vu bWluZyA8Y3VubWluZy5saWFuZ0BpbnRlbC5jb20+OyBMdSwNCj4gWGl1Y2h1biA8eGl1Y2h1bi5s dUBpbnRlbC5jb20+OyBMaSwgTWlhbyA8bWlhby5saUBpbnRlbC5jb20+DQo+IFN1YmplY3Q6IFJF OiBbUEFUQ0ggdjIgNC84XSBlbXUvaWF2ZjogYWRkIHZmaW8tdXNlciBkZXZpY2UgcmVnaXN0ZXIg YW5kDQo+IHVucmVnaXN0ZXINCj4gDQo+ID4gK3N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