From patchwork Mon Jul 15 20:28:56 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jin Yu X-Patchwork-Id: 56443 Return-Path: X-Original-To: patchwork@dpdk.org Delivered-To: patchwork@dpdk.org Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 631643256; Mon, 15 Jul 2019 14:42:24 +0200 (CEST) Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) by dpdk.org (Postfix) with ESMTP id 018832BF4 for ; Mon, 15 Jul 2019 14:42:21 +0200 (CEST) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga001.jf.intel.com ([10.7.209.18]) by fmsmga105.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 15 Jul 2019 05:42:20 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.63,493,1557212400"; d="scan'208";a="250820868" Received: from storage36.sh.intel.com ([10.67.110.166]) by orsmga001.jf.intel.com with ESMTP; 15 Jul 2019 05:42:18 -0700 From: JinYu To: dev@dpdk.org Cc: changpeng.liu@intel.com, maxime.coquelin@redhat.com, tiwei.bie@intel.com, zhihong.wang@intel.com, JinYu Date: Tue, 16 Jul 2019 04:28:56 +0800 Message-Id: <20190715202858.49624-1-jin.yu@intel.com> X-Mailer: git-send-email 2.17.2 In-Reply-To: <20190710104356.6580> References: <20190710104356.6580> Subject: [dpdk-dev] [PATCH v3 0/2] support inflight share memory protocol feature in vhost 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" This patch introduces two new messages VHOST_USER_GET_INFLIGHT_FD and VHOST_USER_SET_INFLIGHT_FD to support transferring a shared buffer between qemu and backend. And the example code shows how these APIs work. JinYu (2): vhost: support inflight share memory protocol feature vhost: Add vhost-user-blk example which support inflight examples/vhost_blk/Makefile | 67 +++ examples/vhost_blk/blk.c | 117 +++++ examples/vhost_blk/blk_spec.h | 95 ++++ examples/vhost_blk/meson.build | 20 + examples/vhost_blk/vhost_blk.c | 589 +++++++++++++++++++++++++ examples/vhost_blk/vhost_blk.h | 96 ++++ examples/vhost_blk/vhost_blk_compat.c | 193 ++++++++ lib/librte_vhost/rte_vhost.h | 89 ++++ lib/librte_vhost/rte_vhost_version.map | 4 + lib/librte_vhost/vhost.c | 163 ++++++- lib/librte_vhost/vhost.h | 32 ++ lib/librte_vhost/vhost_user.c | 316 +++++++++++++ lib/librte_vhost/vhost_user.h | 13 +- 13 files changed, 1792 insertions(+), 2 deletions(-) create mode 100644 examples/vhost_blk/Makefile create mode 100644 examples/vhost_blk/blk.c create mode 100644 examples/vhost_blk/blk_spec.h create mode 100644 examples/vhost_blk/meson.build create mode 100644 examples/vhost_blk/vhost_blk.c create mode 100644 examples/vhost_blk/vhost_blk.h create mode 100644 examples/vhost_blk/vhost_blk_compat.c