From patchwork Wed May 5 20:11:35 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Michael S. Tsirkin" X-Patchwork-Id: 12240949 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-26.4 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_CR_TRAILER,INCLUDES_PATCH,INCLUDES_PULL_REQUEST,MAILING_LIST_MULTI, MENTIONS_GIT_HOSTING,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 0B17CC433B4 for ; Wed, 5 May 2021 20:11:44 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id CE99C61006 for ; Wed, 5 May 2021 20:11:43 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233891AbhEEUMj (ORCPT ); Wed, 5 May 2021 16:12:39 -0400 Received: from us-smtp-delivery-124.mimecast.com ([216.205.24.124]:21891 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233852AbhEEUMi (ORCPT ); Wed, 5 May 2021 16:12:38 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1620245501; 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; bh=trH/NfkKL9hdKsJ9LaR25jQCqSBLEA1C4zT+z7TQZuM=; b=c4vI6jhfDfjM342yyr+Z0P0gJxEilvydX/61teLkdkeZ8kyFJXTtp/NRkJD7dewnm+YZtf XNXdQ1kocmkGwMKnWh1Fzl42RCrCfts0RwmDNzZhC0dyKGnd5P3WG1uvrCDcWGNrEX2nD0 uBXpUe3sZSwOtzQOmFMnniatLRAHXaQ= Received: from mail-wm1-f71.google.com (mail-wm1-f71.google.com [209.85.128.71]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-447-IU2rogHhP9Sp7VUdGu7Mfw-1; Wed, 05 May 2021 16:11:39 -0400 X-MC-Unique: IU2rogHhP9Sp7VUdGu7Mfw-1 Received: by mail-wm1-f71.google.com with SMTP id h128-20020a1cb7860000b0290148da43c895so715623wmf.4 for ; Wed, 05 May 2021 13:11:39 -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:mime-version :content-disposition; bh=trH/NfkKL9hdKsJ9LaR25jQCqSBLEA1C4zT+z7TQZuM=; b=BJhnoIXwAsLWe0PP/0ikf6P53Rf7loHq0mGZg8vIqtIA/RM6j1ytbtaaD7aF/r+e2Y jl2Cv9B1+0Sf0GhrP8snm9VjDgTvAmFoDujEjNsBLfhTFBUnF59ibhAqwfU01c8tGJY4 1nBYDMgAwVt8BzfksV6UJze55W7l0Wtmr4nrDkSpW1jpzqlIQseBfawN/trUO0FpVE9I GksDmozGA56RsBO3hsaWvUuLBG33tUGD3kLEiquX5IPFHV72j7bP0cTq9bHGJ00qXn1W LK/m+L4dcX6N5xUutOQ4CdjKhCoUWreA61rbugOUmyxdwAklQKBTVFMtjhGNH4ugBvEg IZ+A== X-Gm-Message-State: AOAM531EG9skW8cOBE2gmIfBTtH6GcPOhdFwuGErYboaKYJdZZbccPl8 J7Z7f845TCWGXV2kHncxjlcT4f1mHyJx/yjdex2Kz8X9Im3OztoBDOoMytXjbPtYgvlJkRcI09P fTqJth5sDO/pa X-Received: by 2002:a05:600c:190c:: with SMTP id j12mr11647203wmq.41.1620245498492; Wed, 05 May 2021 13:11:38 -0700 (PDT) X-Google-Smtp-Source: ABdhPJztjSMo+WrOGeWsi0rPU8vWa/2MQe6CfpFZS59vZKcAjfy+3i8GW0D8k1kGMxQrBXfQFIf4Ug== X-Received: by 2002:a05:600c:190c:: with SMTP id j12mr11647184wmq.41.1620245498339; Wed, 05 May 2021 13:11:38 -0700 (PDT) Received: from redhat.com ([2a10:800c:8fce:0:8e1b:40f0:6a74:513b]) by smtp.gmail.com with ESMTPSA id m6sm533139wrp.29.2021.05.05.13.11.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 05 May 2021 13:11:38 -0700 (PDT) Date: Wed, 5 May 2021 16:11:35 -0400 From: "Michael S. Tsirkin" To: Linus Torvalds Cc: kvm@vger.kernel.org, virtualization@lists.linux-foundation.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, elic@nvidia.com, jasowang@redhat.com, lingshan.zhu@intel.com, liu.xiang@zlingsmart.com, lkp@intel.com, mgurtovoy@nvidia.com, mst@redhat.com, parav@nvidia.com, sgarzare@redhat.com, stable@vger.kernel.org, xieyongji@bytedance.com Subject: [GIT PULL] virtio,vhost,vdpa: features, fixes Message-ID: <20210505161135-mutt-send-email-mst@kernel.org> MIME-Version: 1.0 Content-Disposition: inline X-Mutt-Fcc: =sent Precedence: bulk List-ID: X-Mailing-List: kvm@vger.kernel.org The following changes since commit 9f4ad9e425a1d3b6a34617b8ea226d56a119a717: Linux 5.12 (2021-04-25 13:49:08 -0700) are available in the Git repository at: https://git.kernel.org/pub/scm/linux/kernel/git/mst/vhost.git tags/for_linus for you to fetch changes up to d7bce85aa7b92b5de8f69b3bcedfe51d7b1aabe1: virtio_pci_modern: correct sparse tags for notify (2021-05-04 04:19:59 -0400) ---------------------------------------------------------------- virtio,vhost,vdpa: features, fixes A bunch of new drivers including vdpa support for block and virtio-vdpa. Beginning of vq kick (aka doorbell) mapping support. Misc fixes. Signed-off-by: Michael S. Tsirkin ---------------------------------------------------------------- Eli Cohen (1): vdpa/mlx5: Enable user to add/delete vdpa device Jason Wang (9): vdpa: introduce virtio pci driver virtio_pci_modern: introduce helper to map vq notify area virtio-pci library: switch to use vp_modern_map_vq_notify() vp_vdpa: switch to use vp_modern_map_vq_notify() virtio_pci_modern: hide vp_modern_get_queue_notify_off() virito_pci libray: hide vp_modern_map_capability() virtio-pci library: report resource address vp_vdpa: report doorbell address vhost-vdpa: fix vm_flags for virtqueue doorbell mapping Liu Xiang (1): virtio-balloon: fix a typo in comment of virtballoon_migratepage() Max Gurtovoy (2): virtio-net: don't allocate control_buf if not supported vdpa: add vdpa simulator for block device Michael S. Tsirkin (2): virtio_pci_modern: __force cast the notify mapping virtio_pci_modern: correct sparse tags for notify Parav Pandit (2): vdpa: Follow kdoc comment style vdpa: Follow kdoc comment style Stefano Garzarella (12): vdpa_sim: use iova module to allocate IOVA addresses vringh: add 'iotlb_lock' to synchronize iotlb accesses vringh: reset kiov 'consumed' field in __vringh_iov() vringh: explain more about cleaning riov and wiov vringh: implement vringh_kiov_advance() vringh: add vringh_kiov_length() helper vdpa_sim: cleanup kiovs in vdpasim_free() vdpa: add get_config_size callback in vdpa_config_ops vhost/vdpa: use get_config_size callback in vhost_vdpa_config_validate() vdpa_sim_blk: implement ramdisk behaviour vdpa_sim_blk: handle VIRTIO_BLK_T_GET_ID vdpa_sim_blk: add support for vdpa management tool Xie Yongji (1): vhost/vdpa: Remove the restriction that only supports virtio-net devices Zhu Lingshan (10): vDPA/ifcvf: get_vendor_id returns a device specific vendor id vDPA/ifcvf: enable Intel C5000X-PL virtio-net for vDPA vDPA/ifcvf: rename original IFCVF dev ids to N3000 ids vDPA/ifcvf: remove the version number string vDPA/ifcvf: fetch device feature bits when probe vDPA/ifcvf: verify mandatory feature bits for vDPA vDPA/ifcvf: deduce VIRTIO device ID from pdev ids vDPA/ifcvf: deduce VIRTIO device ID when probe vDPA/ifcvf: enable Intel C5000X-PL virtio-block for vDPA vDPA/ifcvf: get_config_size should return dev specific config size drivers/Makefile | 1 + drivers/net/virtio_net.c | 10 +- drivers/vdpa/Kconfig | 15 + drivers/vdpa/Makefile | 1 + drivers/vdpa/ifcvf/ifcvf_base.c | 24 +- drivers/vdpa/ifcvf/ifcvf_base.h | 26 +- drivers/vdpa/ifcvf/ifcvf_main.c | 86 +++++- drivers/vdpa/mlx5/net/mlx5_vnet.c | 85 +++++- drivers/vdpa/vdpa.c | 12 +- drivers/vdpa/vdpa_sim/Makefile | 1 + drivers/vdpa/vdpa_sim/vdpa_sim.c | 127 ++++++--- drivers/vdpa/vdpa_sim/vdpa_sim.h | 2 + drivers/vdpa/vdpa_sim/vdpa_sim_blk.c | 338 +++++++++++++++++++++++ drivers/vdpa/virtio_pci/Makefile | 2 + drivers/vdpa/virtio_pci/vp_vdpa.c | 484 +++++++++++++++++++++++++++++++++ drivers/vhost/vdpa.c | 16 +- drivers/vhost/vringh.c | 69 +++-- drivers/virtio/virtio_balloon.c | 2 +- drivers/virtio/virtio_pci_modern.c | 27 +- drivers/virtio/virtio_pci_modern_dev.c | 67 ++++- include/linux/vdpa.h | 42 +-- include/linux/virtio_pci_modern.h | 11 +- include/linux/vringh.h | 19 +- 23 files changed, 1295 insertions(+), 172 deletions(-) create mode 100644 drivers/vdpa/vdpa_sim/vdpa_sim_blk.c create mode 100644 drivers/vdpa/virtio_pci/Makefile create mode 100644 drivers/vdpa/virtio_pci/vp_vdpa.c