Received: by 2002:a25:c205:0:0:0:0:0 with SMTP id s5csp6594293ybf; Fri, 6 Mar 2020 00:34:24 -0800 (PST) X-Google-Smtp-Source: ADFU+vsIvibk5QMG/Av0OI21QYfYDt/XSyM2ECN4s9j9USjzcRqjcYbr4Dgpul7HBgKJq4XA6xv4 X-Received: by 2002:a05:6830:10d7:: with SMTP id z23mr1637463oto.114.1583483664024; Fri, 06 Mar 2020 00:34:24 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1583483664; cv=none; d=google.com; s=arc-20160816; b=CjdegYgx0l8qniCixwQrbtR0B7aZo0juJG/490p082pCNJD/oixY31+b0cqNu/lapG 6WcKqI+bxCzpUVfG04q/0m+Eobt4D+oiwJMW7qWmoZhgAgmbTbkk69Xjk23jIu5iODwV vSvQDxbFpVguROymBS4Htr4/M/f3DzTOh5bb4+cyWzK6t3vWjm2XLCP7tLLsDGeznY8W zdtJSuJfosLhkwFegwb555nXLpTQMO5Y8QCgOrtWSQlDqN4c90gHWOYxaL5MEe72jByC hxbbJ5GrRrLJU19tc0D3ZB+lb7pidwemX0tRWe81vdAwzjBUAWhgbHItELafSx0e+NcP s1Tg== 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=xW4ztCxyt0awZphrXUr+nLncr+M2WHMzb7y2KPJ+Si4=; b=GW7uuUaAXWeCfzKZ9Kap6E8n+td+18YCQjXfOHy6lt16f3qrPmeUXiM8Nz4fN/FOfI 1b2FRPipx8NyOgAKMrI+pdFcA1WAWKspgZQ8X8TgC98UuC/RPSUTXzzyvZsd3pTi07nK 3XscUDlWhm3T67mA/XkAtNBEpdaSAOQU8P+KXK8nvd2wOx1oKHIah/gU0B/u2C4EffdC HfEEcxClrHAvUff+11ziaMGjW2DhSJPNgk5v6wB/ryYBE711owhARQMFAtrr8hAc1uGp 1CVrtPfTdnT/dsJJpthWdPI1HQZgTPti+2aifQsW5q5uE8GzRx4LHbZja30ttW4E5reM o6zg== 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 104si908040otj.252.2020.03.06.00.34.11; Fri, 06 Mar 2020 00:34:24 -0800 (PST) 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 S1726237AbgCFIco (ORCPT + 99 others); Fri, 6 Mar 2020 03:32:44 -0500 Received: from mga04.intel.com ([192.55.52.120]:48287 "EHLO mga04.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725855AbgCFIco (ORCPT ); Fri, 6 Mar 2020 03:32:44 -0500 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by fmsmga104.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 06 Mar 2020 00:32:43 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.70,521,1574150400"; d="scan'208";a="287915959" Received: from fmsmsx107.amr.corp.intel.com ([10.18.124.205]) by FMSMGA003.fm.intel.com with ESMTP; 06 Mar 2020 00:32:43 -0800 Received: from fmsmsx157.amr.corp.intel.com (10.18.116.73) by fmsmsx107.amr.corp.intel.com (10.18.124.205) with Microsoft SMTP Server (TLS) id 14.3.439.0; Fri, 6 Mar 2020 00:32:43 -0800 Received: from shsmsx153.ccr.corp.intel.com (10.239.6.53) by FMSMSX157.amr.corp.intel.com (10.18.116.73) with Microsoft SMTP Server (TLS) id 14.3.439.0; Fri, 6 Mar 2020 00:32:42 -0800 Received: from shsmsx104.ccr.corp.intel.com ([169.254.5.206]) by SHSMSX153.ccr.corp.intel.com ([169.254.12.96]) with mapi id 14.03.0439.000; Fri, 6 Mar 2020 16:32:40 +0800 From: "Tian, Kevin" To: Alex Williamson CC: "kvm@vger.kernel.org" , "linux-pci@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "dev@dpdk.org" , "mtosatti@redhat.com" , "thomas@monjalon.net" , "bluca@debian.org" , "jerinjacobk@gmail.com" , "Richardson, Bruce" , "cohuck@redhat.com" Subject: RE: [PATCH v2 3/7] vfio/pci: Introduce VF token Thread-Topic: [PATCH v2 3/7] vfio/pci: Introduce VF token Thread-Index: AQHV51YI52su8gffRkOPjcjW9Q2JM6grPNwAgA6jCgCAAW544A== Date: Fri, 6 Mar 2020 08:32:40 +0000 Message-ID: References: <158213716959.17090.8399427017403507114.stgit@gimli.home> <158213845243.17090.15563257812711358228.stgit@gimli.home> <20200305111734.4025ce2f@w520.home> In-Reply-To: <20200305111734.4025ce2f@w520.home> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ctpclassification: CTP_NT x-titus-metadata-40: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiOWExYmJlODUtZWE1Ni00MjM1LTlhZjktZmZjOGYwMDM4NGM5IiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX05UIn1dfV19LCJTdWJqZWN0TGFiZWxzIjpbXSwiVE1DVmVyc2lvbiI6IjE3LjEwLjE4MDQuNDkiLCJUcnVzdGVkTGFiZWxIYXNoIjoiZ3FoUjE4bWo3NXd2MUFqdk1rK3EyeEhMdlwvMlpWNTZPZXczQkpNb29PRnVXaE9Id0NSRFV0TkhIY2FUOFRMV2sifQ== dlp-product: dlpe-windows dlp-version: 11.2.0.6 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 PiBGcm9tOiBBbGV4IFdpbGxpYW1zb24gPGFsZXgud2lsbGlhbXNvbkByZWRoYXQuY29tPg0KPiBT ZW50OiBGcmlkYXksIE1hcmNoIDYsIDIwMjAgMjoxOCBBTQ0KPiANCj4gT24gVHVlLCAyNSBGZWIg MjAyMCAwMjo1OTozNyArMDAwMA0KPiAiVGlhbiwgS2V2aW4iIDxrZXZpbi50aWFuQGludGVsLmNv bT4gd3JvdGU6DQo+IA0KPiA+ID4gRnJvbTogQWxleCBXaWxsaWFtc29uDQo+ID4gPiBTZW50OiBU aHVyc2RheSwgRmVicnVhcnkgMjAsIDIwMjAgMjo1NCBBTQ0KPiA+ID4NCj4gPiA+IElmIHdlIGVu YWJsZSBTUi1JT1Ygb24gYSB2ZmlvLXBjaSBvd25lZCBQRiwgdGhlIHJlc3VsdGluZyBWRnMgYXJl IG5vdA0KPiA+ID4gZnVsbHkgaXNvbGF0ZWQgZnJvbSB0aGUgUEYuICBUaGUgUEYgY2FuIGFsd2F5 cyBjYXVzZSBhIGRlbmlhbCBvZiBzZXJ2aWNlDQo+ID4gPiB0byB0aGUgVkYsIGV2ZW4gaWYgYnkg c2ltcGx5IHJlc2V0dGluZyBpdHNlbGYuICBUaGUgZGVncmVlIHRvIHdoaWNoIGEgUEYNCj4gPiA+ IGNhbiBhY2Nlc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