[v3,0/2] vhost: introduce DMA vchannel unconfiguration
Message ID | 20220929013243.15889-1-xuan.ding@intel.com (mailing list archive) |
---|---|
Headers |
Return-Path: <dev-bounces@dpdk.org> X-Original-To: patchwork@inbox.dpdk.org Delivered-To: patchwork@inbox.dpdk.org Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 4D83DA00C4; Thu, 29 Sep 2022 03:33:40 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 285FE42847; Thu, 29 Sep 2022 03:33:25 +0200 (CEST) Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by mails.dpdk.org (Postfix) with ESMTP id 0B89A4280C for <dev@dpdk.org>; Thu, 29 Sep 2022 03:33:21 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1664415202; x=1695951202; h=from:to:cc:subject:date:message-id:in-reply-to: references; bh=uVZ6KJMl9NhS4GTI+2sSBQ2z80WMsYhfqcI6dygY7ns=; b=lc7GNw30z7HkIhQWVrsX8DMvTtZphGtlTBMVR9Gj9LvS5zVa1VEgwdR0 KrBcStiiZ9IGyZhHxYRSmcd26rSU9mqz/r9ohrQzxyQkyEiswpIVPS/hC lFdYwQ856+swsHudUB6792dChVgC1RVpL99FWKPj7L3RpWe+A6oXubcqT roxg9US1+9JyL4ueN2w4L0gEMEp53/iDjCBljRWoUbKJaptGOlzz05u2U T+SjejkdafZY60u2ZjTbYFBgvhU3p96ycT4YWr9kaZHo9lwGpYM7q0D9o x3oakT1dwAwxDSu6vvHWc89ChvoaVbr651vm21MqYklNAZ1VmnzE1tByC g==; X-IronPort-AV: E=McAfee;i="6500,9779,10484"; a="328135465" X-IronPort-AV: E=Sophos;i="5.93,353,1654585200"; d="scan'208";a="328135465" Received: from orsmga004.jf.intel.com ([10.7.209.38]) by fmsmga101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 28 Sep 2022 18:33:14 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6500,9779,10484"; a="747638158" X-IronPort-AV: E=Sophos;i="5.93,353,1654585200"; d="scan'208";a="747638158" Received: from npg-dpdk-xuan-cbdma.sh.intel.com ([10.67.111.102]) by orsmga004.jf.intel.com with ESMTP; 28 Sep 2022 18:33:11 -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 <xuan.ding@intel.com> Subject: [PATCH v3 0/2] vhost: introduce DMA vchannel unconfiguration Date: Thu, 29 Sep 2022 01:32:41 +0000 Message-Id: <20220929013243.15889-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 <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 |
Message
Ding, Xuan
Sept. 29, 2022, 1:32 a.m. UTC
From: Xuan Ding <xuan.ding@intel.com>
This patchset introduces a new API rte_vhost_async_dma_unconfigure()
to help user to manually free the DMA vchannel finished to use.
Note: this API should be called after async channel unregister.
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 | 3 ++
examples/vhost/main.c | 45 ++++++++++++-----
examples/vhost/main.h | 1 +
lib/vhost/rte_vhost_async.h | 18 +++++++
lib/vhost/version.map | 3 ++
lib/vhost/vhost.c | 69 ++++++++++++++++++++++++--
7 files changed, 127 insertions(+), 18 deletions(-)