From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id BDAAB23ED5E for ; Fri, 1 Aug 2025 11:00:40 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=170.10.129.124 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1754046042; cv=none; b=X42F7mc6pL4QC2OkxzwAe+TbAfr+vcqGGNgC2u8RyLf65kmHZ1RSm1C/GTBNADl14zwUBuSbtd9EQ+VKBYZVpcvBeXvNTgU9Qtjf5WhKgLoEXu5sz66sI3jiLgnZ3gjLnfKlwu0J3Wt2X3iwsw9S3Uyu28gqj5wNLFLyIByxwnA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1754046042; c=relaxed/simple; bh=PF+7KTgtJOQe91aaQ4AfOOIWpw1FJ41ZDPQHlUzDbyg=; h=Date:From:To:Cc:Subject:Message-ID:MIME-Version:Content-Type: Content-Disposition; b=ugrLtTJkqUJgbrvzWpoJimHiJXB2+34Vk9gaQbcG0uHv/ry6zdeGv5TeiGxLluUKRpr7xhMu2P/BFv+RDZdlZYZze9bPuAg3yKBbqKemyM3lchdRJL1r6Mz72FzrQis7S5ByfBJUM+FIEo9T7TA90FhgHXeJbZcbOQLafyjqy1I= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=redhat.com; spf=pass smtp.mailfrom=redhat.com; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b=JPCgRHxl; arc=none smtp.client-ip=170.10.129.124 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=redhat.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=redhat.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="JPCgRHxl" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1754046039; 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=Yy4oMG6QVFtodhwMcPtL7d4Z650yocP7F5ES6CSW5QU=; b=JPCgRHxl54/7kxCAEQeScfzGmgUNggvaPZx0sAvr5F4y1C3dQoY6hPcKIO/J6Ob9NXo4hq a/Z2UEgAVannEo+9xWNWT4MiYCAOQX6WFHi0OX6hYHLSlbp8bESAHv4XjLN/xbWntXbvT3 8ghgvTvVT8Cawa1cmx7Mz5DWc2AqiAQ= Received: from mail-wr1-f69.google.com (mail-wr1-f69.google.com [209.85.221.69]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-1-Sb7vnwCVNtSEe6gT_9GXkg-1; Fri, 01 Aug 2025 07:00:38 -0400 X-MC-Unique: Sb7vnwCVNtSEe6gT_9GXkg-1 X-Mimecast-MFC-AGG-ID: Sb7vnwCVNtSEe6gT_9GXkg_1754046037 Received: by mail-wr1-f69.google.com with SMTP id ffacd0b85a97d-3b785aee904so837957f8f.2 for ; Fri, 01 Aug 2025 04:00:37 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1754046037; x=1754650837; h=content-disposition:mime-version:message-id:subject:cc:to:from:date :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=Yy4oMG6QVFtodhwMcPtL7d4Z650yocP7F5ES6CSW5QU=; b=AVaERpl8lvEhWmfMulF+9OOC9RH1e7whRZw9L0RUO7zDxAQdv5ba4fYRf3tN1UBK7/ SZpg+7UROhDjErjQioUxSzUQqTqCqE+RtUmvhjeca0XLSIrhKLOvXhcU3xgqyEn7w4ah X7+uPcs5YN7d0d0pKYnBp8Cy87plQqsvt5f0apjsBH8xd93ju5tIwltGsVAM7jaAoF2h doGZ0DORJ7G43rBY6VTs0Nn4QhgwRooXmn9x66Z1GfIXJQ53IqosWsUGcRJb4G2d7eyY xoMvYUNXn+SF6LTqv5NboH64qXp7dnqgdIYtRrAVbAX5Hbwzl2jg8G6WIT/+uewCtMIk ZGug== X-Gm-Message-State: AOJu0Ywe5PbWnES2+halMB2ULlwt4+i5e8BsRB301JfFqwkAit/HKXh4 1qJ5VCELnT7unFx78yfxNbKGcyfI2UpmoIX5A8XB519QwZ1FvZAZBApbnH387tK86xpoTP8t4a9 uuPCgFdmHkKr5M38uSnPNM4prjfO+bFG2wesCnCrDvhNb2LidB7Uscg== X-Gm-Gg: ASbGncstaupUnAH1QFbAO3v81dIcaelgn7j83bsFmbWCKxlLT8V7Wby3ekZxlLpVNhL mkSf3Ke8WIQkg797NLn6fBu1kH/CDnrn9nmV3gPseZQrpzmt7XY0pgTznqc/uSD9j8JZgFUjwU1 AwuSNx89jWZkc7cr/rWOdLvNvBq61fyQN5UJQNEbfqy70EYT3awr7KUKzYzvo7Vlj/KIL3y47t1 iF3/Rz07Da7UVw6u20xL9mUYWjLWvAxySgJskNXAsqn0CFlGSfP6APbnbV0YSOHs5cgACJeJRLF 987lCZb9Qyvk9/AIx3AIpcD5fdNeh9kk X-Received: by 2002:adf:8b59:0:b0:3a6:d95e:f38c with SMTP id ffacd0b85a97d-3b79501e606mr6507420f8f.33.1754046036748; Fri, 01 Aug 2025 04:00:36 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHSUPIJPkabuEQDBcH7GMaJaxabiVWOJ9YCOFkgGy6BbYI6a1t93zsxBqYtzSj23fHn5sb9Uw== X-Received: by 2002:adf:8b59:0:b0:3a6:d95e:f38c with SMTP id ffacd0b85a97d-3b79501e606mr6507382f8f.33.1754046036194; Fri, 01 Aug 2025 04:00:36 -0700 (PDT) Received: from redhat.com ([2a0d:6fc0:1515:7300:62e6:253a:2a96:5e3]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-3b79c453ab0sm5624086f8f.44.2025.08.01.04.00.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 01 Aug 2025 04:00:35 -0700 (PDT) Date: Fri, 1 Aug 2025 07:00: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, acourbot@google.com, alok.a.tiwari@oracle.com, anders.roxell@linaro.org, dtatulea@nvidia.com, eperezma@redhat.com, eric.auger@redhat.com, gnurou@gmail.com, jasowang@redhat.com, jonah.palmer@oracle.com, kraxel@redhat.com, leiyang@redhat.com, linux@treblig.org, lulu@redhat.com, michael.christie@oracle.com, mst@redhat.com, parav@nvidia.com, si-wei.liu@oracle.com, stable@vger.kernel.org, viresh.kumar@linaro.org, wangyuli@uniontech.com, will@kernel.org, wquan@redhat.com, xiaopei01@kylinos.cn Subject: [GIT PULL] virtio, vhost: features, fixes Message-ID: <20250801070032-mutt-send-email-mst@kernel.org> Precedence: bulk X-Mailing-List: kvm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-Mutt-Fcc: =sent The following changes since commit 347e9f5043c89695b01e66b3ed111755afcf1911: Linux 6.16-rc6 (2025-07-13 14:25:58 -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 c7991b44d7b44f9270dec63acd0b2965d29aab43: vsock/virtio: Allocate nonlinear SKBs for handling large transmit buffers (2025-07-17 08:33:09 -0400) ---------------------------------------------------------------- virtio, vhost: features, fixes vhost can now support legacy threading if enabled in Kconfig vsock memory allocation strategies for large buffers have been improved, reducing pressure on kmalloc vhost now supports the in-order feature guest bits missed the merge window fixes, cleanups all over the place Signed-off-by: Michael S. Tsirkin ---------------------------------------------------------------- Alexandre Courbot (1): media: add virtio-media driver Alok Tiwari (4): virtio: Fix typo in register_virtio_device() doc comment vhost-scsi: Fix typos and formatting in comments and logs vhost: Fix typos vhost-scsi: Fix check for inline_sg_cnt exceeding preallocated limit Anders Roxell (1): vdpa: Fix IDR memory leak in VDUSE module exit Cindy Lu (1): vhost: Reintroduce kthread API and add mode selection Dr. David Alan Gilbert (2): vhost: vringh: Remove unused iotlb functions vhost: vringh: Remove unused functions Dragos Tatulea (2): vdpa/mlx5: Fix needs_teardown flag calculation vdpa/mlx5: Fix release of uninitialized resources on error path Gerd Hoffmann (1): drm/virtio: implement virtio_gpu_shutdown Jason Wang (3): vhost: fail early when __vhost_add_used() fails vhost: basic in order support vhost_net: basic in_order support Michael S. Tsirkin (6): virtio: document ENOSPC pci: report surprise removal event virtio: fix comments, readability virtio: pack config changed flags virtio: allow transports to suppress config change virtio: support device disconnect Mike Christie (1): vhost-scsi: Fix log flooding with target does not exist errors Pei Xiao (1): vhost: Use ERR_CAST inlined function instead of ERR_PTR(PTR_ERR(...)) Viresh Kumar (2): virtio-mmio: Remove virtqueue list from mmio device virtio-vdpa: Remove virtqueue list WangYuli (1): virtio: virtio_dma_buf: fix missing parameter documentation Will Deacon (9): vhost/vsock: Avoid allocating arbitrarily-sized SKBs vsock/virtio: Validate length in packet header before skb_put() vsock/virtio: Move length check to callers of virtio_vsock_skb_rx_put() vsock/virtio: Resize receive buffers so that each SKB fits in a 4K page vsock/virtio: Rename virtio_vsock_alloc_skb() vsock/virtio: Move SKB allocation lower-bound check to callers vhost/vsock: Allocate nonlinear SKBs for handling large receive buffers vsock/virtio: Rename virtio_vsock_skb_rx_put() vsock/virtio: Allocate nonlinear SKBs for handling large transmit buffers MAINTAINERS | 6 + drivers/gpu/drm/virtio/virtgpu_drv.c | 8 +- drivers/media/Kconfig | 13 + drivers/media/Makefile | 2 + drivers/media/virtio/Makefile | 9 + drivers/media/virtio/protocol.h | 288 ++++++ drivers/media/virtio/scatterlist_builder.c | 563 ++++++++++++ drivers/media/virtio/scatterlist_builder.h | 111 +++ drivers/media/virtio/session.h | 109 +++ drivers/media/virtio/virtio_media.h | 93 ++ drivers/media/virtio/virtio_media_driver.c | 959 ++++++++++++++++++++ drivers/media/virtio/virtio_media_ioctls.c | 1297 ++++++++++++++++++++++++++++ drivers/pci/pci.h | 6 + drivers/vdpa/mlx5/core/mr.c | 3 + drivers/vdpa/mlx5/net/mlx5_vnet.c | 12 +- drivers/vdpa/vdpa_user/vduse_dev.c | 1 + drivers/vhost/Kconfig | 18 + drivers/vhost/net.c | 88 +- drivers/vhost/scsi.c | 24 +- drivers/vhost/vhost.c | 377 +++++++- drivers/vhost/vhost.h | 30 +- drivers/vhost/vringh.c | 118 --- drivers/vhost/vsock.c | 15 +- drivers/virtio/virtio.c | 25 +- drivers/virtio/virtio_dma_buf.c | 2 + drivers/virtio/virtio_mmio.c | 52 +- drivers/virtio/virtio_pci_common.c | 45 + drivers/virtio/virtio_pci_common.h | 3 + drivers/virtio/virtio_pci_legacy.c | 2 + drivers/virtio/virtio_pci_modern.c | 2 + drivers/virtio/virtio_ring.c | 4 + drivers/virtio/virtio_vdpa.c | 44 +- include/linux/pci.h | 45 + include/linux/virtio.h | 13 +- include/linux/virtio_config.h | 32 + include/linux/virtio_vsock.h | 46 +- include/linux/vringh.h | 12 - include/uapi/linux/vhost.h | 29 + include/uapi/linux/virtio_ids.h | 1 + kernel/vhost_task.c | 2 +- net/vmw_vsock/virtio_transport.c | 20 +- net/vmw_vsock/virtio_transport_common.c | 3 +- 42 files changed, 4186 insertions(+), 346 deletions(-) create mode 100644 drivers/media/virtio/Makefile create mode 100644 drivers/media/virtio/protocol.h create mode 100644 drivers/media/virtio/scatterlist_builder.c create mode 100644 drivers/media/virtio/scatterlist_builder.h create mode 100644 drivers/media/virtio/session.h create mode 100644 drivers/media/virtio/virtio_media.h create mode 100644 drivers/media/virtio/virtio_media_driver.c create mode 100644 drivers/media/virtio/virtio_media_ioctls.c