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 7142AA0C4B; Thu, 21 Oct 2021 14:33:38 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 624DB41205; Thu, 21 Oct 2021 14:33:38 +0200 (CEST) Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [216.205.24.124]) by mails.dpdk.org (Postfix) with ESMTP id 80A1B411FE for ; Thu, 21 Oct 2021 14:33:36 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1634819616; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=jW6HhHwgcxP3O9EkGFlTGHsbfgX/SEiQ88mRU4TqY40=; b=YU6Ff38RtgN7jEdhwGhq2HhLR0GIcv5+qyeQAJbDSrXh61O1YIpgN51h4CMVPAqBq5uHEY 3Wd5YSBLHe+A4jMY2GrZjDHf7Dj8VV8qV63eEGvqrSl0VWX0qD8WGZl/fwrzwXQmoHTQwA 6I7528a66pbRMuKXlGaHjefcm0/oITA= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-499-gWbnOFsLOmuFyuwe_JJCAA-1; Thu, 21 Oct 2021 08:33:32 -0400 X-MC-Unique: gWbnOFsLOmuFyuwe_JJCAA-1 Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.phx2.redhat.com [10.5.11.14]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 05C8A362F8; Thu, 21 Oct 2021 12:33:31 +0000 (UTC) Received: from [10.39.208.27] (unknown [10.39.208.27]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 0D8691835B; Thu, 21 Oct 2021 12:33:27 +0000 (UTC) Message-ID: <5e267da7-ff00-dd29-2edc-405e52e54cca@redhat.com> Date: Thu, 21 Oct 2021 14:33:26 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.1.0 To: Xuan Ding , dev@dpdk.org, anatoly.burakov@intel.com, chenbo.xia@intel.com Cc: jiayu.hu@intel.com, cheng1.jiang@intel.com, bruce.richardson@intel.com, sunil.pai.g@intel.com, yinan.wang@intel.com, yvonnex.yang@intel.com References: <20210901053044.109901-1-xuan.ding@intel.com> <20211011075942.38180-1-xuan.ding@intel.com> From: Maxime Coquelin In-Reply-To: <20211011075942.38180-1-xuan.ding@intel.com> X-Scanned-By: MIMEDefang 2.79 on 10.5.11.14 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=maxime.coquelin@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Language: en-US Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [dpdk-dev] [PATCH v7 0/2] Support IOMMU for DMA device 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" On 10/11/21 09:59, Xuan Ding wrote: > This series supports DMA device to use vfio in async vhost. > > The first patch extends the capability of current vfio dma mapping > API to allow partial unmapping for adjacent memory if the platform > does not support partial unmapping. The second patch involves the > IOMMU programming for guest memory in async vhost. > > v7: > * Fix an operator error. > > v6: > * Fix a potential memory leak. > > v5: > * Fix issue of a pointer be freed early. > > v4: > * Fix a format issue. > > v3: > * Move the async_map_status flag to virtio_net structure to avoid > ABI breaking. > > v2: > * Add rte_errno filtering for some devices bound in the kernel driver. > * Add a flag to check the status of region mapping. > * Fix one typo. > > Xuan Ding (2): > vfio: allow partially unmapping adjacent memory > vhost: enable IOMMU for async vhost > > lib/eal/linux/eal_vfio.c | 338 ++++++++++++++++++++++++++------------- > lib/vhost/vhost.h | 4 + > lib/vhost/vhost_user.c | 116 +++++++++++++- > 3 files changed, 346 insertions(+), 112 deletions(-) > Applied to dpdk-next-virtio/main. Thanks, Maxime