From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=170.10.133.124 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796053818; b=vdHDtYidl76puRcNWq57ADUTHcTdwLXbfwFItGI3usI8cnQ/qZY/hFQzSH8iGyGq5QMP j6VzHrrBoFAnsKEzScuFpsq1IHYCgQvHftujGggLwZecUT5kI9RFUoF72ZLAV5k2QCiag TMqQdbIikhHI2GdZFjcio6llxMju/Hmrxrh2X/QsSb0AipNAmMfjX2WJSnDXe9d1N28gU vUMs2rFe5ois/tnFegfEuCoulS0pezgYGdzQuGE3FrlgVKNUbTR3QTfwDL5PjQlY0SPS6 KgTLxCXb7ovGZxAIbHQ1yq5fbPMzxaE+WeGVJrNHiZ5tP7O1K60Lg5O5OeS/wC3XgMg== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796053818; h=DMARC-Filter:DKIM-Signature:Received:X-MC-Unique: X-Mimecast-MFC-AGG-ID:Received: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: X-Mutt-Fcc:X-Mimecast-Spam-Score:X-Mimecast-MFC-PROC-ID: X-Mimecast-Originator:Content-Type:Content-Disposition: Content-Transfer-Encoding; bh=dqrqCGk5v+VnyxqainEEu6RtDylvWONsesJs1tTV5WE=; b=IAjooLrfDuppRiQVKKTLsoFl7lTlsUH8HFNMOREya05dVa56wl21dyNHh2k7xJ0vslfj oy5GjByskGcuV1S5ygqeVTJEUcjhLpOiY1UqbQeR4TynkWUs+/efwPlEjqjF5tBSHyeEd MB1O0aM3Ls7uP7Oq5ywBnsvP1dFCnbFWhOp9qvu19p3K+h1H6sffSUG3OJwropFlXEiZn 85Kw8UzG6NoSRsFbvIrfrEY8901nLBPqLEoAF8hY5LeVZo+QtB6n7zPsBOFY3lMKg7fXF ouNc2ziq+vGvbHNOQ3RhF3O72Iqdtw3nejGNI9EgbfW/tkOGZhl4LnyCEzURCIqZSvg== 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=P3q1PI+z; arc=none smtp.remote-ip=170.10.133.124 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.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 859E7606A329 for ; Mon, 30 Nov 2026 15:50:17 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 859E7606A329 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=P3q1PI+z DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1796053816; 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=P3q1PI+zyls1nW3id8DcM5ZT0n/7dPS1dFkZVEEUszA1s2rwViNu8+bYTYPyXH0UTZ1dZN YBWVwWuLDq87rPjvO/DWTzKXnb06unn2AD/bJrqkCpPidfiqENJ6lf9MKDicvXpyNuEkO8 rFbhm/poK2h2vglkQ2X/zweuMsZZx9g= Received: from mail-wr1-f70.google.com (mail-wr1-f70.google.com [209.85.221.70]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-686-f5vASCQEMMCrMCDPIcjAMQ-1; Mon, 30 Nov 2026 15:50:14 +0000 X-MC-Unique: f5vASCQEMMCrMCDPIcjAMQ-1 X-Mimecast-MFC-AGG-ID: f5vASCQEMMCrMCDPIcjAMQ_1796053813 Received: by mail-wr1-f70.google.com with SMTP id ffacd0b85a97d-4bbc86e1eb0so4196514f8f.0 for ; Mon, 30 Nov 2026 07:50:13 -0800 (PST) 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=XBC76iC/bX9NLzL299uaM80SpM9ekp+nuxYh3i9QqbXtMGMe2tDB8hZFQ3nvu0ZLgt geVfhvxWmUD94gel9kKfMJEt+pdZHmiCF7bb272JxDcYg3LrDCmsG4plGr0O7HjbFUuI ZWkjpC9/x0ld+aA+klG1yzebnVZ4wtbDy6dmrbZLB+jZgn83AjbRBHcOZp0i75WzZnU5 zzWWg2bpOHMDIcwvArr+HtbmGGwTnNaeTPm21Jei3Wjhb1aqN/uBHZXiiVgnzb2oeKzE Gqdm/d8W2bEt3SnYN9DnfPlgbH0aq/X8ZQ/CEII5qcFtGBKG3ngdXtB36IKp5gpdENp/ /ssA== X-Forwarded-Encrypted: i=1; AL+hErFf2N+zUjsfusuVDwZb109imGNRsYX7gfcopR+P61AaI7GszP4idKfasOMx06wkLfaMfuuLVS86vHPfHFWciw==@lists.linux.dev X-Gm-Message-State: APuU4Z8Y1KUJStUqY00kwxK6ZjIuNs9t3PqfMthU8GoB7LjMYewpzpwk MNBu3Tu3x0aPnoCcL0f/P+gahkd4Y/ioehZKpwiRqcCpEHD/cd1loW3HhqPs3S4bB2m7npvrZ72 UwNNZNxbx9YdN4j4GdES8wc/0IddUMpMpieHjCCS0zNqjhMW4hDBf0z7ctiWyuc2yDE6p X-Gm-Gg: AZFdTZeUeKUSfWugEDdxtpKVVusgaiz4caHqkq2qa1A1gpCN6fYwlXBeIVXsiLK3e0r NW1Fz6WEmhvENoL3TZ488shW0Q5vheaQCJoXuKnwbkFUSiog/UdFsJIaoIj/JcJdDWXDqpo9C3a rfbnCab1RiJLcd56GLQ/363ywuBazHhFOHDyErftsW8uNIEi59Cu6si5VBSnlAKzODJUaZ+DXjy MrSy/UCGVzd3Y9gdCnFzhz9u4J2p2tE3XFK7hKXTsbFuPOCenQ5HUUjkG7OA1ybbs9dQp3u1Cbg Ov1cRTTnFqJ10Md+4Otw1hKSCNoTE+dYsPHSL9FfyjxIXiviYd2Kl1lLWLG2imzSJl3vKu+H/sh 7RtzwiBUa7tuEMwhN2RbN2PwOn9EG9Ee5Xh9gC4sNRxM= X-Received: by 2002:a05:600c:4e16:b0:4bb:6f77:1e35 with SMTP id 5b1f17b1804b1-4bb88810991mr721179615e9.21.1796053812637; 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: virtualization@lists.linux.dev List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 X-Mutt-Fcc: =sent X-Mimecast-Spam-Score: 0 X-Mimecast-MFC-PROC-ID: tNcKJnwWzqLtdc8sczvaH-04geUtO_M8hncwokxZbMI_1796053813 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit 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