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 F417CA00E6 for ; Thu, 21 Mar 2019 11:58:02 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id DF45C5F14; Thu, 21 Mar 2019 11:58:01 +0100 (CET) Received: from mga12.intel.com (mga12.intel.com [192.55.52.136]) by dpdk.org (Postfix) with ESMTP id 585015F14 for ; Thu, 21 Mar 2019 11:58:00 +0100 (CET) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by fmsmga106.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 21 Mar 2019 03:57:59 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.60,252,1549958400"; d="scan'208";a="153780804" Received: from mhajkowx-mobl.ger.corp.intel.com ([10.104.14.169]) by fmsmga002.fm.intel.com with ESMTP; 21 Mar 2019 03:57:58 -0700 From: Hajkowski To: david.hunt@intel.com Cc: dev@dpdk.org, Marcin Hajkowski Date: Thu, 21 Mar 2019 11:55:02 +0100 Message-Id: <20190321105506.6656-1-marcinx.hajkowski@intel.com> X-Mailer: git-send-email 2.20.1.windows.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [dpdk-dev] [PATCH v3 0/4] bidirect guest channel 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" Content-Type: text/plain; charset="UTF-8" Message-ID: <20190321105502.D-BOb8AZO116RVMLyJj9VOSvzdf7mc1cepYumaWLmYU@z> From: Marcin Hajkowski Extend guest channel API to allow bidirectional communication. Modify power manager host and guest side to communicate in both directions. v3: * fix global_fds[lcore_id] comparison to invalid value * check 0 to verify if read function actually read some data * define _NACK cmd instead of _NAK * simplify rte_power_guest_channel_receive_msg func logic v2: * send ack only if power operation return positive value * log diffent error for unexpected incoming command and error during ack/nak cmd sending Marcin Hajkowski (4): power: fix invalid socket indicator value power: extend guest channel api for reading power: process incoming confirmation cmds power: send confirmation cmd to vm guest examples/vm_power_manager/channel_monitor.c | 67 ++++++++++++++-- examples/vm_power_manager/guest_cli/Makefile | 1 + .../guest_cli/vm_power_cli_guest.c | 65 +++++++++++++--- lib/librte_power/channel_commands.h | 5 ++ lib/librte_power/guest_channel.c | 77 +++++++++++++++++-- lib/librte_power/guest_channel.h | 35 +++++++++ lib/librte_power/rte_power_version.map | 1 + 7 files changed, 227 insertions(+), 24 deletions(-) -- 2.17.2