From patchwork Mon Jul 8 18:39:57 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jin Yu X-Patchwork-Id: 56225 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 36A684C8D; Mon, 8 Jul 2019 12:53:53 +0200 (CEST) Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) by dpdk.org (Postfix) with ESMTP id D6870325F for ; Mon, 8 Jul 2019 12:53:50 +0200 (CEST) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by orsmga103.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 08 Jul 2019 03:53:49 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.63,466,1557212400"; d="scan'208";a="185659187" Received: from storage36.sh.intel.com ([10.67.110.166]) by fmsmga001.fm.intel.com with ESMTP; 08 Jul 2019 03:53:48 -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, 9 Jul 2019 02:39:57 +0800 Message-Id: <20190708183959.50293-1-jin.yu@intel.com> X-Mailer: git-send-email 2.17.2 Subject: [dpdk-dev] [PATCH 0/2] support inflight share memory protocol feature 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 patches series 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. This shared buffer is used to process inflight I/O when backend reconnect. The example show how these new APIs work. JinYu (2): [1/2]vhost: support inflight share memory protocol feature [2/2]vhost: Add vhost-user-blk example which support inflight examples/vhost_blk/Makefile | 67 +++ examples/vhost_blk/blk.c | 116 +++++ examples/vhost_blk/blk_spec.h | 95 ++++ examples/vhost_blk/meson.build | 20 + examples/vhost_blk/vhost_blk.c | 590 +++++++++++++++++++++++++ examples/vhost_blk/vhost_blk.h | 95 ++++ examples/vhost_blk/vhost_blk_compat.c | 196 ++++++++ lib/librte_vhost/rte_vhost.h | 105 +++++ lib/librte_vhost/rte_vhost_version.map | 4 + lib/librte_vhost/vhost.c | 158 ++++++- lib/librte_vhost/vhost.h | 16 + lib/librte_vhost/vhost_user.c | 313 +++++++++++++ lib/librte_vhost/vhost_user.h | 13 +- 13 files changed, 1786 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