From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by dpdk.space (Postfix) with ESMTP id 90843A00E6 for ; Fri, 22 Mar 2019 12:53:56 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 18A3F1B5C3; Fri, 22 Mar 2019 12:53:52 +0100 (CET) Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by dpdk.org (Postfix) with ESMTP id 99E471B5BD for ; Fri, 22 Mar 2019 12:53:49 +0100 (CET) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga002.jf.intel.com ([10.7.209.21]) by fmsmga101.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 22 Mar 2019 04:53:48 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.60,256,1549958400"; d="scan'208";a="144290605" Received: from irsmsx152.ger.corp.intel.com ([163.33.192.66]) by orsmga002.jf.intel.com with ESMTP; 22 Mar 2019 04:53:47 -0700 Received: from irsmsx105.ger.corp.intel.com ([169.254.7.210]) by IRSMSX152.ger.corp.intel.com ([169.254.6.139]) with mapi id 14.03.0415.000; Fri, 22 Mar 2019 11:53:46 +0000 From: "Ananyev, Konstantin" To: Maxime Coquelin , "Hajkowski, MarcinX" , "Hunt, David" CC: "dev@dpdk.org" Thread-Topic: [dpdk-dev] [PATCH v3 2/4] power: extend guest channel api for reading Thread-Index: AQHU4J6GjaIxqhYE5EajYFjfN4Fm+aYXh5jg Date: Fri, 22 Mar 2019 11:53:46 +0000 Message-ID: <2601191342CEEE43887BDE71AB977258013655EB61@irsmsx105.ger.corp.intel.com> References: <20190321105506.6656-1-marcinx.hajkowski@intel.com> <20190321105506.6656-3-marcinx.hajkowski@intel.com> <2b064351-9ac0-ce14-4719-1eb72a7fa338@redhat.com> In-Reply-To: <2b064351-9ac0-ce14-4719-1eb72a7fa338@redhat.com> Accept-Language: en-IE, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-titus-metadata-40: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiNWI0ZTNmZTMtM2VhMy00YzIyLWExMjktMWZkYmI0ZWJiODVjIiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX05UIn1dfV19LCJTdWJqZWN0TGFiZWxzIjpbXSwiVE1DVmVyc2lvbiI6IjE3LjEwLjE4MDQuNDkiLCJUcnVzdGVkTGFiZWxIYXNoIjoiWEpFN0xWZjZKN0dXbTAzSG9xMHMxb2lrU1wvRksxdTIrbjh2UW9uUzk0NzlUN1NwdVBBc3lFNGVNeDNIMzRSb0IifQ== x-ctpclassification: CTP_NT dlp-product: dlpe-windows dlp-version: 11.0.400.15 dlp-reaction: no-action x-originating-ip: [163.33.239.181] Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: base64 MIME-Version: 1.0 Subject: Re: [dpdk-dev] [PATCH v3 2/4] power: extend guest channel api for reading X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 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" Message-ID: <20190322115346.3AcnznwSBT_mbeiFkWoVBvL-CgLE5Yc8GddJNU_vpyE@z> DQoNCj4gLS0tLS1PcmlnaW5hbCBNZXNzYWdlLS0tLS0NCj4gRnJvbTogZGV2IFttYWlsdG86ZGV2 LWJvdW5jZXNAZHBkay5vcmddIE9uIEJlaGFsZiBPZiBNYXhpbWUgQ29xdWVsaW4NCj4gU2VudDog RnJpZGF5LCBNYXJjaCAyMiwgMjAxOSAxMTowMCBBTQ0KPiBUbzogSGFqa293c2tpLCBNYXJjaW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