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 9A565A04AE; Tue, 8 Feb 2022 12:10:43 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 80F004111B; Tue, 8 Feb 2022 12:10:43 +0100 (CET) Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by mails.dpdk.org (Postfix) with ESMTP id 258E9410FC for ; Tue, 8 Feb 2022 12:10:42 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1644318641; 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=VR8lQfRfOta4A39nNKu1xU+rPGMSSXaoYJ78GMattus=; b=Lx/c45nIBXPhBf41b3dBppWXAhQrQ1u0hTc/gldLNONyx2NJ3CLBgON3CCXJ04cropsiNV OEximrODhZpm2XjKe5OpxEvju7dnnUQiLvbHNtWKQyC+mJCMV5uSEYjESd3vYJx4k59KKV rSHSTKrn8jUM1lUyJx//OoFoa8aghJk= 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-367-VafwfO6rNBythJcLcLiEyQ-1; Tue, 08 Feb 2022 06:10:38 -0500 X-MC-Unique: VafwfO6rNBythJcLcLiEyQ-1 Received: from smtp.corp.redhat.com (int-mx08.intmail.prod.int.phx2.redhat.com [10.5.11.23]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 1C4B4835B58; Tue, 8 Feb 2022 11:10:37 +0000 (UTC) Received: from [10.39.208.19] (unknown [10.39.208.19]) by smtp.corp.redhat.com (Postfix) with ESMTPS id AD67F2AA93; Tue, 8 Feb 2022 11:10:33 +0000 (UTC) Message-ID: <1a90cf08-5f9f-aa21-6aef-9529e94dfa7b@redhat.com> Date: Tue, 8 Feb 2022 12:10:31 +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.84 on 10.5.11.23 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 Applied to dpdk-next-virtio/main. Thanks, Maxime