From patchwork Wed Nov 3 20:43:32 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: 12601579 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 90EDEC433F5 for ; Wed, 3 Nov 2021 20:43:44 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 783CB6103B for ; Wed, 3 Nov 2021 20:43:44 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229697AbhKCUqT (ORCPT ); Wed, 3 Nov 2021 16:46:19 -0400 Received: from us-smtp-delivery-124.mimecast.com ([170.10.133.124]:30448 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230172AbhKCUqT (ORCPT ); Wed, 3 Nov 2021 16:46:19 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1635972222; 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=ycJtGdUUCpH0aUUTnC/bRRS7vczLyB6170Uz115xpB0=; b=HVjglvIEB3P/432ebdGv18Bn7j4PcJJZbb8l0Ygxhah7kT1ri8T20h4Gj63LAw8T4bAe4s AWXgKG/KqJeb/J7XpfrgdkBH2CMYNqEQZh5OA06Bgvfk2z26KvI8QMZWX/PJkXOF5xMG+0 Uwt/rHTK0B677QSQEYzCQwnz7ezACkM= Received: from mail-wr1-f71.google.com (mail-wr1-f71.google.com [209.85.221.71]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-66-RlHbO_I8NZqONcBe4XYPnQ-1; Wed, 03 Nov 2021 16:43:39 -0400 X-MC-Unique: RlHbO_I8NZqONcBe4XYPnQ-1 Received: by mail-wr1-f71.google.com with SMTP id v18-20020a5d5912000000b001815910d2c0so626190wrd.1 for ; Wed, 03 Nov 2021 13:43:38 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:mime-version :content-disposition; bh=ycJtGdUUCpH0aUUTnC/bRRS7vczLyB6170Uz115xpB0=; b=oyBxr0jLGk+tW0oLJkQ7jkyJgWRaGBUiQDQdiXdGKPDDHvx4FnVAzdddW9r9IWEWDA zM9viquLHbO4XSoAEKe+jxB/kplFEkTiR70gFRCMwpSsPiqV29Hm/n64Lsd2DDwPZlnI TlSofnEfp7+sxHA8QCeraXSvWvacJUQhNCiYRLW1jLNC08ceXJsESDnlk321YMAilpar n4VgIsEeszImT6CWcrnSQ/mycnr76A6r8Ln1Vj6j8uIYcFhsNvP+IBqk609k1i4KopCz zHLo214xvxBODI0DxmXhHxOrgo9TdTu+ZRKI2L/0Q3vZCpJULpGss0RR2n0PVriSs9kh qCFQ== X-Gm-Message-State: AOAM532+k1ZwWl3txY3vm8iWQS10fYjdSEaFtpF2qqrP0iRS/ao25Iz1 Jo6pn7zxJ6F0XrZrfeGCSbc+CIc/DrG76TDMaHl4L4ADjYNqCHwiqU7nN0ZT/cjdzVdZVSA8Dow ha4p6xg9MzTbHUTl1 X-Received: by 2002:a7b:c8d5:: with SMTP id f21mr16301046wml.146.1635972217920; Wed, 03 Nov 2021 13:43:37 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyAOxXMQNUWbZpukHMPxGSMFHowFfE8y2JMN+RYHabViAVvjlT9WYHd7lkudlHiVcf5NGesSg== X-Received: by 2002:a7b:c8d5:: with SMTP id f21mr16300998wml.146.1635972217669; Wed, 03 Nov 2021 13:43:37 -0700 (PDT) Received: from redhat.com ([2.55.17.31]) by smtp.gmail.com with ESMTPSA id z11sm2978466wrt.58.2021.11.03.13.43.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 03 Nov 2021 13:43:37 -0700 (PDT) Date: Wed, 3 Nov 2021 16:43:32 -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, amit@kernel.org, arnd@arndb.de, boqun.feng@gmail.com, colin.i.king@gmail.com, colin.i.king@googlemail.com, corentin.noel@collabora.com, elic@nvidia.com, gustavoars@kernel.org, jasowang@redhat.com, jie.deng@intel.com, lkp@intel.com, lvivier@redhat.com, mgurtovoy@nvidia.com, mst@redhat.com, pankaj.gupta@ionos.com, pankaj.gupta.linux@gmail.com, parav@nvidia.com, paulmck@kernel.org, pbonzini@redhat.com, peterz@infradead.org, sgarzare@redhat.com, stefanha@redhat.com, tglx@linutronix.de, viresh.kumar@linaro.org, wuzongyong@linux.alibaba.com, xuanzhuo@linux.alibaba.com, ye.guojin@zte.com.cn, zealci@zte.com.cn Subject: [GIT PULL] vhost,virtio,vhost: fixes,features Message-ID: <20211103164332-mutt-send-email-mst@kernel.org> MIME-Version: 1.0 Content-Disposition: inline X-Mutt-Fcc: =sent Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org The following changes since commit 8bb7eca972ad531c9b149c0a51ab43a417385813: Linux 5.15 (2021-10-31 13:53:10 -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 540061ac79f0302ae91e44e6cd216cbaa3af1757: vdpa/mlx5: Forward only packets with allowed MAC address (2021-11-01 05:26:49 -0400) ---------------------------------------------------------------- vhost,virtio,vhost: fixes,features Hardening work by Jason vdpa driver for Alibaba ENI Performance tweaks for virtio blk virtio rng rework using an internal buffer mac/mtu programming for mlx5 vdpa Misc fixes, cleanups Signed-off-by: Michael S. Tsirkin ---------------------------------------------------------------- Colin Ian King (1): virtio_blk: Fix spelling mistake: "advertisted" -> "advertised" Eli Cohen (5): vdpa/mlx5: Remove mtu field from vdpa net device vdpa/mlx5: Rename control VQ workqueue to vdpa wq vdpa/mlx5: Propagate link status from device to vdpa driver vdpa/mlx5: Support configuration of MAC vdpa/mlx5: Forward only packets with allowed MAC address Gustavo A. R. Silva (1): ALSA: virtio: Replace zero-length array with flexible-array member Jason Wang (10): virtio-blk: validate num_queues during probe virtio_console: validate max_nr_ports before trying to use it virtio_config: introduce a new .enable_cbs method virtio_pci: harden MSI-X interrupts virtio-pci: harden INTX interrupts virtio_ring: fix typos in vring_desc_extra virtio_ring: validate used buffer length virtio-net: don't let virtio core to validate used length virtio-blk: don't let virtio core to validate used length virtio-scsi: don't let virtio core to validate used buffer length Laurent Vivier (4): hwrng: virtio - add an internal buffer hwrng: virtio - don't wait on cleanup hwrng: virtio - don't waste entropy hwrng: virtio - always add a pending request Max Gurtovoy (2): virtio-blk: avoid preallocating big SGL for data virtio-blk: add num_request_queues module parameter Michael S. Tsirkin (3): virtio_net: clarify tailroom logic virtio_blk: allow 0 as num_request_queues virtio_blk: correct types for status handling Pankaj Gupta (1): virtio-pmem: add myself as virtio-pmem maintainer Parav Pandit (6): vdpa: Introduce and use vdpa device get, set config helpers vdpa: Introduce query of device config layout vdpa: Use kernel coding style for structure comments vdpa: Enable user to set mac and mtu of vdpa device vdpa_sim_net: Enable user to set mac address and mtu vdpa/mlx5: Fix clearing of VIRTIO_NET_F_MAC feature bit Viresh Kumar (1): i2c: virtio: Add support for zero-length requests Wu Zongyong (8): virtio-pci: introduce legacy device module vdpa: fix typo vp_vdpa: add vq irq offloading support vdpa: add new callback get_vq_num_min in vdpa_config_ops vdpa: min vq num of vdpa device cannot be greater than max vq num virtio_vdpa: setup correct vq size with callbacks get_vq_num_{max,min} vdpa: add new attribute VDPA_ATTR_DEV_MIN_VQ_SIZE eni_vdpa: add vDPA driver for Alibaba ENI Xuan Zhuo (2): virtio_ring: make virtqueue_add_indirect_packed prettier virtio_ring: check desc == NULL when using indirect with packed Ye Guojin (1): virtio-blk: fixup coccinelle warnings MAINTAINERS | 7 + drivers/block/Kconfig | 1 + drivers/block/virtio_blk.c | 178 +++++++---- drivers/char/hw_random/virtio-rng.c | 84 +++-- drivers/char/virtio_console.c | 9 + drivers/i2c/busses/i2c-virtio.c | 56 ++-- drivers/net/virtio_net.c | 4 +- drivers/scsi/virtio_scsi.c | 1 + drivers/vdpa/Kconfig | 8 + drivers/vdpa/Makefile | 1 + drivers/vdpa/alibaba/Makefile | 3 + drivers/vdpa/alibaba/eni_vdpa.c | 553 +++++++++++++++++++++++++++++++++ drivers/vdpa/ifcvf/ifcvf_main.c | 3 +- drivers/vdpa/mlx5/core/mlx5_vdpa.h | 2 +- drivers/vdpa/mlx5/net/mlx5_vnet.c | 202 ++++++++++-- drivers/vdpa/vdpa.c | 261 +++++++++++++++- drivers/vdpa/vdpa_sim/vdpa_sim_blk.c | 3 +- drivers/vdpa/vdpa_sim/vdpa_sim_net.c | 38 ++- drivers/vdpa/vdpa_user/vduse_dev.c | 3 +- drivers/vdpa/virtio_pci/vp_vdpa.c | 12 + drivers/vhost/vdpa.c | 3 +- drivers/virtio/Kconfig | 10 + drivers/virtio/Makefile | 1 + drivers/virtio/virtio_pci_common.c | 58 +++- drivers/virtio/virtio_pci_common.h | 16 +- drivers/virtio/virtio_pci_legacy.c | 106 ++----- drivers/virtio/virtio_pci_legacy_dev.c | 220 +++++++++++++ drivers/virtio/virtio_pci_modern.c | 6 +- drivers/virtio/virtio_ring.c | 90 +++++- drivers/virtio/virtio_vdpa.c | 19 +- include/linux/vdpa.h | 53 ++-- include/linux/virtio.h | 2 + include/linux/virtio_config.h | 6 + include/linux/virtio_pci_legacy.h | 42 +++ include/uapi/linux/vdpa.h | 7 + include/uapi/linux/virtio_i2c.h | 6 + sound/virtio/virtio_pcm_msg.c | 5 +- 37 files changed, 1781 insertions(+), 298 deletions(-) create mode 100644 drivers/vdpa/alibaba/Makefile create mode 100644 drivers/vdpa/alibaba/eni_vdpa.c create mode 100644 drivers/virtio/virtio_pci_legacy_dev.c create mode 100644 include/linux/virtio_pci_legacy.h