From patchwork Wed Nov 25 15:21:18 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Maxime Coquelin X-Patchwork-Id: 84549 Return-Path: X-Original-To: patchwork@inbox.dpdk.org Delivered-To: patchwork@inbox.dpdk.org Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id E2579A0545; Wed, 25 Nov 2020 16:22:06 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 956F6C960; Wed, 25 Nov 2020 16:21:48 +0100 (CET) Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [216.205.24.124]) by dpdk.org (Postfix) with ESMTP id 2137CC954 for ; Wed, 25 Nov 2020 16:21:44 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1606317702; 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; bh=rPSOR+F0lqUY3lqRXJVNiNDg9EwbM8e7CcqMX6cgNg0=; b=ibRoEl+6K3OsvUzTURAKk/Hf1kruNMp+Be/gr3UtAqJrR09kYnj94JAaxV5G8InXpfnNTU mx/Sb1X4SN3d2qbQVwqNr+TW/s0jdNNEQBBWw8ZoXQ7olB3swysCHyy/xU9grxrNzr7/tL ZGTRdCKds/AGFBXaLPK2UFyIgsBtZco= 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-465-0F3UdbsbPRK_WqxxfkD-tQ-1; Wed, 25 Nov 2020 10:21:34 -0500 X-MC-Unique: 0F3UdbsbPRK_WqxxfkD-tQ-1 Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.phx2.redhat.com [10.5.11.15]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 9B53F8AADFC; Wed, 25 Nov 2020 15:21:24 +0000 (UTC) Received: from localhost.localdomain (unknown [10.36.110.64]) by smtp.corp.redhat.com (Postfix) with ESMTP id 2BCB25D6AC; Wed, 25 Nov 2020 15:21:22 +0000 (UTC) From: Maxime Coquelin To: dev@dpdk.org, chenbo.xia@intel.com, amorenoz@redhat.com, jasowang@redhat.com, david.marchand@redhat.com Cc: Maxime Coquelin Date: Wed, 25 Nov 2020 16:21:18 +0100 Message-Id: <20201125152120.183691-1-maxime.coquelin@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.15 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 Subject: [dpdk-dev] [PATCH 21.02 v2 0/2] Vhost-vDPA fixes X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 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" Vhost-vDPA support in Virtio-user PMD was lacking backend features negotiation and IOTLB batching support, causing intialization issues with Mellanox vDPA device managed by Kernel vDPA framework. Changes in v1: ============= - Add backend features negotiation (David, Jason) - Ensure Kernel supports IOTLB MSG v2 Maxime Coquelin (2): net/virtio: fix missing backend features negotiation net/virtio: fix memory init with vDPA backend drivers/net/virtio/virtio_user/vhost.h | 8 ++ drivers/net/virtio/virtio_user/vhost_vdpa.c | 120 +++++++++++++++++- .../net/virtio/virtio_user/virtio_user_dev.c | 15 ++- 3 files changed, 134 insertions(+), 9 deletions(-)