Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp175856pxa; Tue, 4 Aug 2020 02:42:50 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxAfPQkoPHi82Llx6vqH6J0Z5nHZHl+lVeltWlFjwCTh4T2fxhtDDGXUk/MX6wLyKExu0MS X-Received: by 2002:aa7:d291:: with SMTP id w17mr2163094edq.257.1596534170211; Tue, 04 Aug 2020 02:42:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1596534170; cv=none; d=google.com; s=arc-20160816; b=XhWUWxnFdPVLjk2MWYF8qLYzrykp5HB2DkmIJ+2/qm/H/MG0mR55Jfmc4FxqkuZoNb /XKjXTHoTifGmlxrvqDD5cXU2H9RvhtlBLuyQyacJUGA4tc12axrY9aKG2+zHn4im4dy 3f6zV2tXl+RAtv5Nho8Ds3eCnauH3vGBtj8SnOHF5Zijl5wlCUsnBNzo4cCax5vdyt4M 8AdEUtNQYJJfJ+jEjyKnrRkP1eHqowz0YybNtVyh70BtlfBZcmg3zacc6kKnOrjSeBpS Hu3Ra0QmyDxP8gKQXm24F1C/vfAzqaxPew9CzwHYrPgYtPsv+oVs3Jj3swR7GUVyQ/hD 0iHw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=jW84deMk6p56y/ykUAk+F7yv3Eu/gTy0iAOseaqw0ns=; b=F6foFMr9/74zIkhixJosFLjBa6yznZrun7Lxt6kghpzx7SAPWdums5HmDulPkSgfzx 5uv/0PwZbygckQGpZtEbCm7I16W1n9d/Ejfwxw6dsyac8Ul4iSLJdSTARyoVkmjrm71N jhgiThCgd3yFuTpm2YgbWhLyCEz4qcrpjVpsLF/tecOEBIyX7Y7UQ7fes3NeMFgIKPyT SMyhCZjmOyBG3OR9Gh2ucDaGuaHdQM/huGLDjwepHfhnMil4f5BL2Lk0jMZRClLfdI+F 5rL0sSgS7KGaUrif4jOlUZ3hOT0YS20bOtqQ7e+OM5RLO2Qv+g+ZiRAKpnzg4kkjmnAX FbPg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=SOX8JKmr; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id p15si11704845ejx.297.2020.08.04.02.42.27; Tue, 04 Aug 2020 02:42:50 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=SOX8JKmr; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728170AbgHDJkI (ORCPT + 99 others); Tue, 4 Aug 2020 05:40:08 -0400 Received: from us-smtp-delivery-1.mimecast.com ([205.139.110.120]:32823 "EHLO us-smtp-1.mimecast.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1725832AbgHDJkI (ORCPT ); Tue, 4 Aug 2020 05:40:08 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1596534006; 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: in-reply-to:in-reply-to:references:references; bh=jW84deMk6p56y/ykUAk+F7yv3Eu/gTy0iAOseaqw0ns=; b=SOX8JKmrutm8zGqLdY4S8G42KB0ncGC+7QyK6WJYGhy9zLW7C58whcun2SikxJ7qo9zmVI Un0b2jYLXTw/W8lWeeyG8s4LWeuPmbb7RWX3B4ooVRAkcQfA/HNopSaaWNuetcqiXIhdAX zE1FJVDdFxghGlzGrD9ocy22Nr18fm8= Received: from mail-qv1-f72.google.com (mail-qv1-f72.google.com [209.85.219.72]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-58-Afh1rMU8OKKyd4q571qBBw-1; Tue, 04 Aug 2020 05:40:03 -0400 X-MC-Unique: Afh1rMU8OKKyd4q571qBBw-1 Received: by mail-qv1-f72.google.com with SMTP id r12so4109865qvx.20 for ; Tue, 04 Aug 2020 02:40:03 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=jW84deMk6p56y/ykUAk+F7yv3Eu/gTy0iAOseaqw0ns=; b=e/1pR3QlniwVoVYFQPwGOus1HuxaUvoEkBkqked80MeaGRqZ33Y8saYKJq2fVdT6xm Yn7gaR2hMuEDyI8U9tIdPoGOoN6IOgL07gzHpuOauelU/ISl25jYkkIS2yM9e0CneOWy omrxv4wh8sibXUQcV2ZpQdTcDOxieIC0OItQ+1g7lRc4mCmxLVqdL3tYtU6lvYXIQclv 9m54BOW6cWgUmx6wGni7nolYHbLlhcwogDcFi6g9UK3NQmyIEu0oQuB9mZVcocITL/MS DScGyPuyREpXcBsOz0mSZxE7q1c4Cw2YeJF3C5VahmeCSxVcbfizkGeISXjSi/Mn9J4Z nTOA== X-Gm-Message-State: AOAM531LHScqM6Ybb1LOh/bxrsJDBHkeLFmJZamcK6kiMHmJernjGLPQ xicKWv+2kFcFWY/FDvUB4QF2vVtDnUHyRlSYXBCbhGBIehEQXBjjOEWkKACYBR6yIxiOjKJ1yq3 W/XkjcRdWCpIwYlYt7TYxbnmA X-Received: by 2002:a05:620a:201a:: with SMTP id c26mr19770591qka.155.1596534003221; Tue, 04 Aug 2020 02:40:03 -0700 (PDT) X-Received: by 2002:a05:620a:201a:: with SMTP id c26mr19770573qka.155.1596534002957; Tue, 04 Aug 2020 02:40:02 -0700 (PDT) Received: from redhat.com (bzq-79-177-102-128.red.bezeqint.net. [79.177.102.128]) by smtp.gmail.com with ESMTPSA id m203sm21443199qke.114.2020.08.04.02.40.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 04 Aug 2020 02:40:02 -0700 (PDT) Date: Tue, 4 Aug 2020 05:39:58 -0400 From: "Michael S. Tsirkin" To: Eli Cohen Cc: jasowang@redhat.com, virtualization@lists.linux-foundation.org, linux-kernel@vger.kernel.org, shahafs@mellanox.com, saeedm@mellanox.com, parav@mellanox.com Subject: Re: [PATCH V3 vhost next 00/10] VDPA support for Mellanox ConnectX devices Message-ID: <20200804053922-mutt-send-email-mst@kernel.org> References: <20200728060539.4163-1-eli@mellanox.com> <20200803164756-mutt-send-email-mst@kernel.org> <20200804053432.GB58580@mtl-vdi-166.wap.labs.mlnx> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200804053432.GB58580@mtl-vdi-166.wap.labs.mlnx> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Aug 04, 2020 at 08:34:32AM +0300, Eli Cohen wrote: > On Mon, Aug 03, 2020 at 04:51:27PM -0400, Michael S. Tsirkin wrote: > > On Tue, Jul 28, 2020 at 09:05:29AM +0300, Eli Cohen wrote: > > > Hi Michael, > > > please note that this series depends on mlx5 core device driver patches > > > in mlx5-next branch in > > > git://git.kernel.org/pub/scm/linux/kernel/git/mellanox/linux.git. > > > git pull git://git.kernel.org/pub/scm/linux/kernel/git/mellanox/linux.git mlx5-next > > > > > > They also depend Jason Wang's patches submitted a couple of weeks ago. > > > > > > vdpa_sim: use the batching API > > > vhost-vdpa: support batch updating > > > > Hmm this makes merging them messy. I can ack merging them through > > the mellanox tree, but > > conflicts between Jason's patches and what's in my tree also exist. > > > > Let me see if this is something I can fix. > > > How big is the dependency? Can I pick it up with your ack? > > > > Also, mips build failures need to be dealt with. > > > Will look into it. Thanks! I'd like to have everything ready by end of week if possible, send pull next Monday/Tuesday. > > > > > > > > > The following series of patches provide VDPA support for Mellanox > > > devices. The supported devices are ConnectX6 DX and newer. > > > > > > Currently, only a network driver is implemented; future patches will > > > introduce a block device driver. iperf performance on a single queue is > > > around 12 Gbps. Future patches will introduce multi queue support. > > > > > > The files are organized in such a way that code that can be used by > > > different VDPA implementations will be placed in a common are resides in > > > drivers/vdpa/mlx5/core. > > > > > > Only virtual functions are currently supported. Also, certain firmware > > > capabilities must be set to enable the driver. Physical functions (PFs) > > > are skipped by the driver. > > > > > > To make use of the VDPA net driver, one must load mlx5_vdpa. In such > > > case, VFs will be operated by the VDPA driver. Although one can see a > > > regular instance of a network driver on the VF, the VDPA driver takes > > > precedence over the NIC driver, steering-wize. > > > > > > Currently, the device/interface infrastructure in mlx5_core is used to > > > probe drivers. Future patches will introduce virtbus as a means to > > > register devices and drivers and VDPA will be adapted to it. > > > > > > The mlx5 mode of operation required to support VDPA is switchdev mode. > > > Once can use Linux or OVS bridge to take care of layer 2 switching. > > > > > > In order to provide virtio networking to a guest, an updated version of > > > qemu is required. This version has been tested by the following quemu > > > version: > > > > > > url: https://github.com/jasowang/qemu.git > > > branch: vdpa > > > Commit ID: 6f4e59b807db > > > > > > > > > V2->V3 > > > Fix makefile to use include path relative to the root of the kernel > > > > > > Eli Cohen (7): > > > net/vdpa: Use struct for set/get vq state > > > vhost: Fix documentation > > > vdpa: Modify get_vq_state() to return error code > > > vdpa/mlx5: Add hardware descriptive header file > > > vdpa/mlx5: Add support library for mlx5 VDPA implementation > > > vdpa/mlx5: Add shared memory registration code > > > vdpa/mlx5: Add VDPA driver for supported mlx5 devices > > > > > > Jason Wang (2): > > > vhost-vdpa: support batch updating > > > vdpa_sim: use the batching API > > > > > > Max Gurtovoy (1): > > > vdpa: remove hard coded virtq num > > > > > > drivers/vdpa/Kconfig | 18 + > > > drivers/vdpa/Makefile | 1 + > > > drivers/vdpa/ifcvf/ifcvf_base.c | 4 +- > > > drivers/vdpa/ifcvf/ifcvf_base.h | 4 +- > > > drivers/vdpa/ifcvf/ifcvf_main.c | 13 +- > > > drivers/vdpa/mlx5/Makefile | 4 + > > > drivers/vdpa/mlx5/core/mlx5_vdpa.h | 91 ++ > > > drivers/vdpa/mlx5/core/mlx5_vdpa_ifc.h | 168 ++ > > > drivers/vdpa/mlx5/core/mr.c | 473 ++++++ > > > drivers/vdpa/mlx5/core/resources.c | 284 ++++ > > > drivers/vdpa/mlx5/net/main.c | 76 + > > > drivers/vdpa/mlx5/net/mlx5_vnet.c | 1950 ++++++++++++++++++++++++ > > > drivers/vdpa/mlx5/net/mlx5_vnet.h | 24 + > > > drivers/vdpa/vdpa.c | 3 + > > > drivers/vdpa/vdpa_sim/vdpa_sim.c | 35 +- > > > drivers/vhost/iotlb.c | 4 +- > > > drivers/vhost/vdpa.c | 46 +- > > > include/linux/vdpa.h | 24 +- > > > include/uapi/linux/vhost_types.h | 2 + > > > 19 files changed, 3165 insertions(+), 59 deletions(-) > > > create mode 100644 drivers/vdpa/mlx5/Makefile > > > create mode 100644 drivers/vdpa/mlx5/core/mlx5_vdpa.h > > > create mode 100644 drivers/vdpa/mlx5/core/mlx5_vdpa_ifc.h > > > create mode 100644 drivers/vdpa/mlx5/core/mr.c > > > create mode 100644 drivers/vdpa/mlx5/core/resources.c > > > create mode 100644 drivers/vdpa/mlx5/net/main.c > > > create mode 100644 drivers/vdpa/mlx5/net/mlx5_vnet.c > > > create mode 100644 drivers/vdpa/mlx5/net/mlx5_vnet.h > > > > > > -- > > > 2.26.0 > >