From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <dev-bounces@dpdk.org>
Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124])
	by inbox.dpdk.org (Postfix) with ESMTP id 096D0A0C44;
	Tue, 15 Jun 2021 16:31:30 +0200 (CEST)
Received: from [217.70.189.124] (localhost [127.0.0.1])
	by mails.dpdk.org (Postfix) with ESMTP id 7B8CA4067A;
	Tue, 15 Jun 2021 16:31:29 +0200 (CEST)
Received: from mga01.intel.com (mga01.intel.com [192.55.52.88])
 by mails.dpdk.org (Postfix) with ESMTP id 0E68040140
 for <dev@dpdk.org>; Tue, 15 Jun 2021 16:31:27 +0200 (CEST)
IronPort-SDR: lqeMx3nbFRHwKrcKH6C/kqZpI4TlSH2GFAtDyn+TPIMBGmhQPSgH4uMnKee13JkWvF5cO363r5
 gNqSuNuWD7mA==
X-IronPort-AV: E=McAfee;i="6200,9189,10015"; a="227472936"
X-IronPort-AV: E=Sophos;i="5.83,275,1616482800"; d="scan'208";a="227472936"
Received: from orsmga001.jf.intel.com ([10.7.209.18])
 by fmsmga101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;
 15 Jun 2021 07:31:26 -0700
IronPort-SDR: Wy7tT7OKnV++KKVmohUpntArwXSbmieYGamShKAnq0eKZ1pXucYSUHUy7vKj+E1DJ2LwVdWtjb
 dMs7+pGA0m6Q==
X-ExtLoop1: 1
X-IronPort-AV: E=Sophos;i="5.83,275,1616482800"; d="scan'208";a="484488264"
Received: from dpdk_jiangcheng.sh.intel.com ([10.67.119.149])
 by orsmga001.jf.intel.com with ESMTP; 15 Jun 2021 07:31:24 -0700
From: Cheng Jiang <cheng1.jiang@intel.com>
To: maxime.coquelin@redhat.com,
	Chenbo.Xia@intel.com
Cc: dev@dpdk.org, jiayu.hu@intel.com, yvonnex.yang@intel.com,
 Cheng Jiang <cheng1.jiang@intel.com>
Date: Tue, 15 Jun 2021 14:15:10 +0000
Message-Id: <20210615141513.16163-1-cheng1.jiang@intel.com>
X-Mailer: git-send-email 2.29.2
In-Reply-To: <20210602042802.31943-1-cheng1.jiang@intel.com>
References: <20210602042802.31943-1-cheng1.jiang@intel.com>
MIME-Version: 1.0
Content-Transfer-Encoding: 8bit
Subject: [dpdk-dev] [PATCH v2 0/3] vhost: handle memory hotplug for async
 vhost
X-BeenThere: dev@dpdk.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: DPDK patches and discussions <dev.dpdk.org>
List-Unsubscribe: <https://mails.dpdk.org/options/dev>,
 <mailto:dev-request@dpdk.org?subject=unsubscribe>
List-Archive: <http://mails.dpdk.org/archives/dev/>
List-Post: <mailto:dev@dpdk.org>
List-Help: <mailto:dev-request@dpdk.org?subject=help>
List-Subscribe: <https://mails.dpdk.org/listinfo/dev>,
 <mailto:dev-request@dpdk.org?subject=subscribe>
Errors-To: dev-bounces@dpdk.org
Sender: "dev" <dev-bounces@dpdk.org>

When the guest memory is hotplugged, the vhost application which
enables DMA acceleration must stop DMA transfers before the vhost
re-maps the guest memory.

This patch set is to provide an unsafe API to drain in-flight pkts
which are submitted to DMA engine in vhost async data path, and
notify the vhost application of stopping DMA transfers. And enable it
in vhost example.

v2:
 * changed the patch structure

Cheng Jiang (2):
  vhost: add unsafe API to drain pkts in async vhost
  examples/vhost: handle memory hotplug for async vhost

Jiayu Hu (1):
  vhost: handle memory hotplug for async vhost

 examples/vhost/main.c       | 48 +++++++++++++++++++-
 examples/vhost/main.h       |  1 +
 lib/vhost/rte_vhost_async.h | 22 +++++++++
 lib/vhost/version.map       |  3 ++
 lib/vhost/vhost_user.c      |  9 ++++
 lib/vhost/virtio_net.c      | 90 +++++++++++++++++++++++++++----------
 6 files changed, 148 insertions(+), 25 deletions(-)

--
2.29.2