From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=170.10.129.124 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796053817; b=t+0/0pQClD0sgf7dW4sEUSP3ndsUTAAZwrZ9JGKp+FS9rXXc0uSNGfYzWuXIKIGU8s5t AkqB7j10TyaZ45tLQE8UWvYvquiTljBbS4vKfZOEw0WfK2VHKNdJHf71ePpEcbdkVLkPj Tpc1j42U1CPTm7kte1v12BF20g2NJeNCw9Merzn4NWXPru6aC+res6OndgN4phjcl8U0U 50fT0gmhwWqEQVaty95i9Ftloc6Oj1HIzYt3Yhgs5zKaNqJdkhpfboYGcplazdu9Zxqf2 AhQcVqU8RXXUOTIhuhtrT+wLuC2l7Nq3cA9L/e6MDO8tvyPhdDOYZLEcAagDW9sSb8w== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796053817; h=DMARC-Filter:DKIM-Signature:Received:X-MC-Unique: X-Mimecast-MFC-AGG-ID:Received:DKIM-Signature:X-Google-DKIM-Signature: X-Forwarded-Encrypted:X-Gm-Message-State:X-Gm-Gg:X-Received: X-Received:Received:Date:From:To:Cc:Subject:Message-ID:MIME-Version: Content-Type:Content-Disposition:Content-Transfer-Encoding: X-Mutt-Fcc; bh=dqrqCGk5v+VnyxqainEEu6RtDylvWONsesJs1tTV5WE=; b=LIZnE1VoR1z7M4omOEYOD2XUEzF0MLoeu1pRzxBvEF/6RlkcAriRa4C9XmbOrKq1Evsa 0mdx7xjcgX8UQUTWGq8h6/oqUudDx4SbYEfa0QblcIIV+QABVcnsrsr4Mo9PxtnxkD1b+ sKSL8MJO6/h3OXga5jjBCt8g4bXSiABh5u1lWjhO1mwY8VacOKMIDoFmLLewvB2BB/y9v RxLFt0CR3wFSVbLOY3xJIA23hIII6UZ/HXlAUs/oKPeIcBgx85MnIBWNK7iP9UfKtdvCS NVaANiQrX7N/jyJZIWpcjzBtK4C95zRpVNFI0nmBO/ZxTt7oUL6EBFA3OwcwUl1NO1A== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=redhat.com; spf=pass smtp.mailfrom=redhat.com; dkim=pass header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256 header.s=mimecast20190719 header.b=ed8GdmtN; dkim=pass header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256 header.s=google header.b="d7/F+J+t"; arc=none smtp.remote-ip=170.10.129.124 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 9F49D606A31C for ; Mon, 30 Nov 2026 15:50:16 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 9F49D606A31C 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.a=rsa-sha256 header.s=mimecast20190719 header.b=ed8GdmtN; dkim=pass (2048-bit key) header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256 header.s=google header.b=d7/F+J+t DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1796053815; 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=dqrqCGk5v+VnyxqainEEu6RtDylvWONsesJs1tTV5WE=; b=ed8GdmtN8z9HLfA6Sz+HtRHCA+8KHP+bhewNnHZmclGaRc55HL/Oq6AVbGUrNfF5ausrqn FhuSn43EQ9b3X+J0lnnJiknX3ZHFsdD5+j7GFeLSUApsWlL0koBx+opC2PfYgQGlZ3YlGp /Z5ZSGNXLNwoop9oHiNdf3Jt1HmcIg8= Received: from mail-wm1-f72.google.com (mail-wm1-f72.google.com [209.85.128.72]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-695-KcDSD4YlPoKIgtZHV-dYOQ-1; Mon, 30 Nov 2026 15:50:14 +0000 X-MC-Unique: KcDSD4YlPoKIgtZHV-dYOQ-1 X-Mimecast-MFC-AGG-ID: KcDSD4YlPoKIgtZHV-dYOQ_1796053813 Received: by mail-wm1-f72.google.com with SMTP id 5b1f17b1804b1-4a16dc2323cso66756965e9.3 for ; Mon, 30 Nov 2026 07:50:13 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=google; t=1796053813; x=1796658613; darn=vger.kernel.org; h=content-transfer-encoding:content-disposition:content-type :mime-version:message-id:subject:cc:to:from:date:from:to:cc:subject :date:message-id:reply-to:content-type; bh=dqrqCGk5v+VnyxqainEEu6RtDylvWONsesJs1tTV5WE=; b=d7/F+J+tLjPQWJEOg4NNCudjTMzE+DCxVpiwOlLUk9n6oJPNhtrGLsE9LKfsYdeaob fS4UjtGebOo5PN6ynCeeGLc6/fFRdZLDO8lpYgiJYMhEoMMhiXn7NPk+HFT7Z+T74c+W NuzQhPPuzFvO3Rb4+f7NCXiX4LMQ7ppPo6BQaofH9EOGVVEjS3ru3FGl0TSPvClzs5+R RYkUIUeljRegvBYh31OK/s+fPBbpULDiMfJYPoUQ0y63RXRXUGYzaFpp38uFS/3Tl2IO jqc+Fip6sn0RsfyUbH4xbUe2XX2aTteC7zoX78kpxfVWkFErLOZYsIKL208ByjdAwzKR eQog== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1796053813; x=1796658613; h=content-transfer-encoding:content-disposition:content-type :mime-version:message-id:subject:cc:to:from:date:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :content-type; bh=dqrqCGk5v+VnyxqainEEu6RtDylvWONsesJs1tTV5WE=; b=VxqXebIrvvYEMcajhyjYfy/tPnND7IywiTZzjsfTY1aukY8S6/8qu7+Tao+4TCVi1x 08ygditkp6kZa+LUvMKg2GB8wGTRzUDR723wq+9VB73sfDwolFvZQAaAfAr7qP5XQsXg ZDyf9GFNX0HIG2FL1nybWTE6XU1IK1ttcw/NaYfcjsXw4kVEsdr98hucOZXLOBF8lkPt RI3XAEwjgOFqthVaxxoLddn6tAksbR79v1wNxXJtS8A0vdB7O16bQgoaW6NHK4D5dOS9 NcGE3Tl7MVTyDu3AOyi5rCDslkxmpR4U3JpLQK/m1/Oxac2sNQxOogOVfgl/Ve3fWh/S hPNw== X-Forwarded-Encrypted: i=1; AL+hErFlr3ZmWSA0+1uIPbzRMeHjjGSjhXQrvglmwm8KNEEc6Glxn0IkDgWg7ApsxsmEyH909RifQmk=@vger.kernel.org X-Gm-Message-State: APuU4Z+cSBB8Zrqr0HI4s5zl3XNSmmfl+6MPNWqJK6wjszXteZpu93dy VSPwFSijzysEyDpGu2lIxyJZsmy+A/rYlmRqJlAva/5QEgaBMhx4sV6x2XXcVzyGCn9+SHcq39o l66zd1yZPR7Rlynl4Q6VSMtc9rKiDHAr8g4xHZ/DqbsgdNd+DtGy02Z8dAg== X-Gm-Gg: AZFdTZf6n3RmVYe/Drn9BHcjHbdB/iFUvwpQOpnfn9WS4RaVpyza0S2iZf9y6zO/nQ4 x5f2zyzZ8RgOAtv2EE4qnAujqsqtOvFASjcsUvdW/wEiCnk3N2FfRYYOYdtlk5dELV+oMmPUfBe MkbPArQIBaWqQhhHbzZl6AxNdN03tzCdeYEvLjJObU1dR6UFzCJY+dH9C1HaYtFJk3DhDDHvQAW vfUSBK0OA7RMnmj68ucj/SRQlmCocOETGvn9fvgXufvv15HUdt+FSLA5eaYmfISTSd0Srj4Lw9I j88qSM9QFC8Wm9NQ3NcgbgsjRKFUthmgRDUIBg4ljexP9me+uDb8BdyhO7b5t9FfUyulfkj05oj 9M+iQEH/gYJzm/b1Qm2bKE/ja/7BJObdyuVvQ+Mnf/Q8= X-Received: by 2002:a05:600c:4e16:b0:4bb:6f77:1e35 with SMTP id 5b1f17b1804b1-4bb88810991mr721179915e9.21.1796053812684; Mon, 30 Nov 2026 07:50:12 -0800 (PST) X-Received: by 2002:a05:600c:4e16:b0:4bb:6f77:1e35 with SMTP id 5b1f17b1804b1-4bb88810991mr721178925e9.21.1796053811930; Mon, 30 Nov 2026 07:50:11 -0800 (PST) Received: from redhat.com ([2a0d:6fc0:1529:2e00:86ec:bef7:c309:ba1f]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-4bb905f1489sm642178935e9.0.2026.11.30.07.50.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 30 Nov 2026 07:50:11 -0800 (PST) Date: Mon, 30 Nov 2026 10:50:08 -0500 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, david@kernel.org, elb12345@hotmail.co.uk, eperezma@redhat.com, francesco@valla.it, gubin@cmss.chinamobile.com, jasowangio@gmail.com, jhubbard@nvidia.com, karthiproffesional@gmail.com, michael.christie@oracle.com, mst@redhat.com, oss.patchbox@gmail.com, sashiko-bot@kernel.org, shakeel.butt@linux.dev, shunsheng1218@gmail.com, stjepan.poljak@gmail.com, syzbot+0f659760bac1ecb01812@syzkaller.appspotmail.com, u.kleine-koenig@baylibre.com, virtualization@lists.linux.dev, yigejiang86@gmail.com, zhaimingbing@cmss.chinamobile.com, zhaoguohan@kylinos.cn Subject: [GIT PULL] vhost,virtio: fixes, tests Message-ID: <20261130105008-mutt-send-email-mst@kernel.org> X-Mailing-List: netdev@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit X-Mutt-Fcc: =sent Sadly, a bunch of issues still left. Working on testing and merging. Notably vduse is still borken, and v3 of a fix just landed in my inbox today (/facepalm). Doesn't seem prudent to rush it in, though. The following changes since commit 5570a998b884c988dbe105430d7e2d8e9411e37e: vhost: split out-of-order used ring batches at every wrap (2026-11-12 07:44:36 -0500) 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 b31ad78b6fc87209556621f615020fc02390f005: virtio: Release the OF node when unregistering the device (2026-11-30 10:39:43 -0500) ---------------------------------------------------------------- vhost,virtio: fixes, tests Just a bunch of small fixes all over the place. Nothing stands out much. A new test in tools - given we had a bunch of issues around logging discovered recently, seems prudent to just include it. Signed-off-by: Michael S. Tsirkin ---------------------------------------------------------------- Aamir Ahmed (1): vhost: Run TIF_NOTIFY_RESUME work in the vhost_task loop Gu Bin (2): tools/virtio/virtio-trace: fix swapped read/write label in path error tools/virtio/virtio_test: advance next_reset by reset_n, not completed Karthikeyan KS (1): vhost-scsi: use FOLL_PIN for DMA page pinning Khan Zhao (1): tools/virtio: add a vhost dirty log test Michael S. Tsirkin (1): vhost: set dirty log bits without pinning pages on x86 Mingbing Zhai (1): virtio_balloon: drain update works on probe error paths Stjepan Poljak (3): virtio_ring: return an error pointer from vring_create_virtqueue() virtio_ring: reject a split ring size that is not a power of two again tools/virtio: vringh_test: check that a split ring must be a power of two Uwe Kleine-König (The Capable Hub) (1): virtio-pci: Drop inclusion of Yaohan Li (2): virtio_console: defer HVC polling out of the virtqueue callback vhost: synchronize worker freeing on vhost-net teardown Yige Jiang (1): virtio: Release the OF node when unregistering the device Yuho Choi (2): virtio-mem: only mark the device ready in kdump mode with vmcore support vdpa/mlx5: Don't free QP buffers if destroying the QP fails arch/um/drivers/virtio_uml.c | 4 +- arch/x86/include/asm/uaccess.h | 23 ++ drivers/char/virtio_console.c | 9 +- drivers/s390/virtio/virtio_ccw.c | 5 +- drivers/vdpa/mlx5/net/mlx5_vnet.c | 10 +- drivers/vhost/net.c | 4 +- drivers/vhost/scsi.c | 50 ++-- drivers/vhost/vhost.c | 7 + drivers/virtio/virtio.c | 4 +- drivers/virtio/virtio_balloon.c | 22 +- drivers/virtio/virtio_mem.c | 2 +- drivers/virtio/virtio_mmio.c | 4 +- drivers/virtio/virtio_pci_legacy.c | 4 +- drivers/virtio/virtio_pci_modern.c | 4 +- drivers/virtio/virtio_ring.c | 19 +- drivers/virtio/virtio_vdpa.c | 4 +- include/linux/virtio_pci_legacy.h | 2 +- include/linux/virtio_ring.h | 6 +- kernel/vhost_task.c | 9 + tools/virtio/.gitignore | 1 + tools/virtio/Makefile | 7 +- tools/virtio/vhost_log_test.c | 432 ++++++++++++++++++++++++++++++++ tools/virtio/vhost_log_test.rst | 61 +++++ tools/virtio/virtio-trace/trace-agent.c | 2 +- tools/virtio/virtio_test.c | 2 +- tools/virtio/vringh_test.c | 11 + 26 files changed, 657 insertions(+), 51 deletions(-) create mode 100644 tools/virtio/vhost_log_test.c create mode 100644 tools/virtio/vhost_log_test.rst