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 E41D3A00C2; Thu, 13 Oct 2022 08:42:56 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 8B77F42C94; Thu, 13 Oct 2022 08:42:56 +0200 (CEST) Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by mails.dpdk.org (Postfix) with ESMTP id C643442C27 for ; Thu, 13 Oct 2022 08:42:54 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1665643374; x=1697179374; h=from:to:cc:subject:date:message-id:in-reply-to: references; bh=TgZ1SexImuTEy8v41TOapwMEXrcRsoLkBkZUclt4d6o=; b=QTNba9+/nhjhSeq7JS/xvjO9Hyv4tqHxxf0kaEvjeZ7x48LmcB2fvy9l 8ERJ2FCicc0BalJec6oI53llsgjReAmkvzdf8PMMNoxHJ038s+pcdlAhu ukrBTqnyFPKhh7bvFTZXbyoY7MP8DlMVlRfZefOM+hNXLO/nwDp/jkmXw Pz5XlGL5JyV7XkxCF0Hy9a32gGRGdtXZqtw/ilrcaKrMQJi5RAUYAK7jw VC42rhO2y9j1WdYdY3H+pvu4D3v60Rg3AunbKjhBRw7Zy6t8cffNchWgO ZnrWPXg1KF/kEIcRjIP91MDpKaakg/6H680+0GqFQ15JNgkH3UOVg91P1 w==; X-IronPort-AV: E=McAfee;i="6500,9779,10498"; a="292319282" X-IronPort-AV: E=Sophos;i="5.95,180,1661842800"; d="scan'208";a="292319282" Received: from orsmga007.jf.intel.com ([10.7.209.58]) by orsmga101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 12 Oct 2022 23:42:53 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6500,9779,10498"; a="622044228" X-IronPort-AV: E=Sophos;i="5.95,180,1661842800"; d="scan'208";a="622044228" Received: from npg-dpdk-xuan-cbdma.sh.intel.com ([10.67.111.102]) by orsmga007.jf.intel.com with ESMTP; 12 Oct 2022 23:42:50 -0700 From: xuan.ding@intel.com To: maxime.coquelin@redhat.com, chenbo.xia@intel.com Cc: dev@dpdk.org, jiayu.hu@intel.com, xingguang.he@intel.com, yvonnex.yang@intel.com, cheng1.jiang@intel.com, yuanx.wang@intel.com, wenwux.ma@intel.com, Xuan Ding Subject: [PATCH v4 0/2] vhost: introduce DMA vchannel unconfiguration Date: Thu, 13 Oct 2022 06:40:38 +0000 Message-Id: <20221013064040.98489-1-xuan.ding@intel.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20220814140442.82525-1-xuan.ding@intel.com> References: <20220814140442.82525-1-xuan.ding@intel.com> 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 From: Xuan Ding This patchset introduces a new API rte_vhost_async_dma_unconfigure() to help user to manually free DMA vchannels finished to use. Note: this API should be called after async channel unregister. v4: * Rebase to 22.11 rc1. * Fix the usage of 'dma_ref_count' to make sure the specified DMA device is not used by any vhost ports before unconfiguration. v3: * Rebase to latest DPDK. * Refine some descriptions in the doc. * Fix one bug in the vhost example. v2: * Add spinlock protection. * Fix a memory leak issue. * Refine the doc. Xuan Ding (2): vhost: introduce DMA vchannel unconfiguration examples/vhost: unconfigure DMA vchannel doc/guides/prog_guide/vhost_lib.rst | 6 +++ doc/guides/rel_notes/release_22_11.rst | 4 ++ examples/vhost/main.c | 38 +++++++++----- lib/vhost/rte_vhost_async.h | 18 +++++++ lib/vhost/version.map | 3 ++ lib/vhost/vhost.c | 69 ++++++++++++++++++++++++-- 6 files changed, 120 insertions(+), 18 deletions(-) -- 2.17.1