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 EE0E3A0353; Mon, 31 Jan 2022 09:41:36 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 828FE41161; Mon, 31 Jan 2022 09:41:36 +0100 (CET) Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by mails.dpdk.org (Postfix) with ESMTP id 6440440E25 for ; Mon, 31 Jan 2022 09:41:35 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1643618494; 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=43r5/vxqNSH21QAo30IOfsDIxW2LxcUWvc9L/UHctpw=; b=adqULTcvLsp80FWvVjaTSL3eAZDrK2uwRIgu2vciAfgq+iUJwP89582RtXo1s+f9JDQyX8 uhO/MZDJn3NPPVIZigHTMLCHptHAWEI50H9i09vdUHK+NeOKbqu0b39PjXCngG4HuveSvV hACa5MbKs6X+N3rzXVnjdxVuNDMhMmI= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-648-zuzNG0OeNwCYmDRw4PgVpw-1; Mon, 31 Jan 2022 03:41:31 -0500 X-MC-Unique: zuzNG0OeNwCYmDRw4PgVpw-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 C782C760C6; Mon, 31 Jan 2022 08:41:29 +0000 (UTC) Received: from [10.39.208.24] (unknown [10.39.208.24]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 707CA5F909; Mon, 31 Jan 2022 08:41:28 +0000 (UTC) Message-ID: <70ccecb1-06b6-aa67-a1a1-7c944b80f38b@redhat.com> Date: Mon, 31 Jan 2022 09:41:26 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.5.0 Subject: Re: [PATCH] doc: update recommended IOVA mode for async vhost To: Xuan Ding , chenbo.xia@intel.com Cc: dev@dpdk.org, jiayu.hu@intel.com, yinan.wang@intel.com, xingguang.he@intel.com References: <20211122084948.39382-1-xuan.ding@intel.com> From: Maxime Coquelin In-Reply-To: <20211122084948.39382-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 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 On 11/22/21 09:49, Xuan Ding wrote: > DPDK 21.11 adds vfio support for DMA device in vhost. This patch > updates recommended IOVA mode in async datapath. > > Signed-off-by: Xuan Ding > --- > doc/guides/prog_guide/vhost_lib.rst | 9 +++++++++ > 1 file changed, 9 insertions(+) > > diff --git a/doc/guides/prog_guide/vhost_lib.rst b/doc/guides/prog_guide/vhost_lib.rst > index 76f5d303c9..f72ce75909 100644 > --- a/doc/guides/prog_guide/vhost_lib.rst > +++ b/doc/guides/prog_guide/vhost_lib.rst > @@ -442,3 +442,12 @@ Finally, a set of device ops is defined for device specific operations: > * ``get_notify_area`` > > Called to get the notify area info of the queue. > + > +Recommended IOVA mode in async datapath > +--------------------------------------- > + > +When DMA devices are bound to vfio driver, VA mode is recommended. > +For PA mode, page by page mapping may exceed IOMMU's max capability, > +better to use 1G guest hugepage. > + > +For uio driver, any vfio related error message can be ignored. > \ No newline at end of file Reviewed-by: Maxime Coquelin Thanks, Maxime