From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id D73A9A0524; Wed, 2 Jun 2021 06:42:51 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 7DFFB410E1; Wed, 2 Jun 2021 06:42:47 +0200 (CEST) Received: from mga17.intel.com (mga17.intel.com [192.55.52.151]) by mails.dpdk.org (Postfix) with ESMTP id 6318840689 for ; Wed, 2 Jun 2021 06:42:45 +0200 (CEST) IronPort-SDR: jBtQ5gGhfzu/FTFwhM4LwgxyeeaG4/VlSv8UZo3Ix0jyOOsTR6Yz59U2TCJBhpevDUy4hT1fcH 2NsBI2nBQEVA== X-IronPort-AV: E=McAfee;i="6200,9189,10002"; a="184067229" X-IronPort-AV: E=Sophos;i="5.83,241,1616482800"; d="scan'208";a="184067229" Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by fmsmga107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 01 Jun 2021 21:42:41 -0700 IronPort-SDR: etFFBbblokP0X6mhBH3uYyVmyhsOOfyRGhrP8U1ui7ec6b2OO+qsBGw+Jmat5ImfItKBuQyeio XnjTKCRtatwg== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.83,241,1616482800"; d="scan'208";a="482851390" Received: from dpdk_jiangcheng.sh.intel.com ([10.67.119.149]) by fmsmga002.fm.intel.com with ESMTP; 01 Jun 2021 21:42:38 -0700 From: Cheng Jiang To: maxime.coquelin@redhat.com, Chenbo.Xia@intel.com Cc: dev@dpdk.org, jiayu.hu@intel.com, yvonnex.yang@intel.com, Cheng Jiang Date: Wed, 2 Jun 2021 04:28:00 +0000 Message-Id: <20210602042802.31943-1-cheng1.jiang@intel.com> X-Mailer: git-send-email 2.29.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [dpdk-dev] [PATCH 0/2] 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 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" 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. Cheng Jiang (1): vhost: add unsafe API to drain pkts in 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