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 lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 8E858D262A4 for ; Tue, 20 Jan 2026 21:50:55 +0000 (UTC) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1viJcW-0007uX-N5; Tue, 20 Jan 2026 16:50:40 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1viJcU-0007s1-Rf for qemu-devel@nongnu.org; Tue, 20 Jan 2026 16:50:39 -0500 Received: from k57.kb8c70eb.use4.send.mailgun.net ([204.220.184.57]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1viJcT-0002fW-2Y for qemu-devel@nongnu.org; Tue, 20 Jan 2026 16:50:38 -0500 X-Mailgun-Sid: WyI4ZDFlNiIsInFlbXUtZGV2ZWxAbm9uZ251Lm9yZyIsIjk3NjA3ZSJd Received: from mail.yodel.dev (mail.yodel.dev [35.209.39.246]) by 79c92e79cab5952484afcfc119b0dce6c1ba319179d2d854e8c62d838bdc2b98 with SMTP id 696ff8a4bd13819f1cf84f74; Tue, 20 Jan 2026 21:50:28 GMT X-Mailgun-Sending-Ip: 204.220.184.57 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yodel.dev; s=rsa2048; t=1768945827; bh=Cp8YJ2Wtzbl55PwaKrSnZ2YADqaiB5JhVBn1VQ0LeMI=; h=X-Mailgun-Dkim:From:To:Cc:Subject:Date:Message-ID:MIME-Version: Content-Type:Content-Transfer-Encoding:From:Reply-to:Subject:Date: Message-id:To:Cc:Mime-version:Content-type: Content-transfer-encoding:In-reply-to:References; b=NVX0GKP1rRv4eMHd7sOTyyDuUPOBNyY2LjTjU9h7Pmqd+lIJ739MB1MMGp6sc+2yQ B6qItTs4InWd67wv3j5olGGrsQMVV1OgBfAf1nVWQ8s/wgGyARZZwNoCsoAWhsbNVe N+QgOvk7HNpfdeeoSeUMXZAq7uC52IOcMfxOcPK9g/HxqT+/hzKRfSO76zPNcxLNge s0eJ8hrUyJHqh/2CKZxLzcwC5QyFLCVfTGrdrsUNB02XLixa3ygnL4GFFXbcMrLVWr pIGWUmpWC5B/6BojcbinvyFamNkK2iQ0WjyGOdsLzT422ATwtmwg9XZOyl56nUXG/F sffq4/pplhklg== X-Mailgun-Dkim: no X-Mailgun-Dkim: no From: Yodel Eldar To: qemu-devel@nongnu.org Cc: "Michael S. Tsirkin" , Stefano Garzarella , Paolo Bonzini , =?UTF-8?q?Marc-Andr=C3=A9=20Lureau?= , Thomas Huth , =?UTF-8?q?C=C3=A9dric=20Le=20Goater?= , Yodel Eldar Subject: [PATCH v3 0/3] vhost-user-bridge housekeeping and test Date: Tue, 20 Jan 2026 15:50:18 -0600 Message-ID: <20260120215021.30711-1-yodel.eldar@yodel.dev> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=204.220.184.57; envelope-from=bounce+0e9322.97607e-qemu-devel=nongnu.org@yodel.dev; helo=k57.kb8c70eb.use4.send.mailgun.net X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_VALIDITY_CERTIFIED_BLOCKED=0.001, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: qemu development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Sender: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org This series (1) moves vhost-user-bridge (vubr) from tests/ to contrib/vhost-user-bridge/, (2) introduces a basic functional test of vubr, and (3) adds UDP receive packet logging to vubr: Patch 1: Moving vhost-user-bridge --------------------------------- After the introduction of vhost-user-bridge and libvhost-user, new vhost-user backend daemons were placed in dedicated subdirectories of contrib/. An F: line under the vhost section in MAINTAINERS grants these daemons coverage; in tests/, however, vhost-user-bridge lacks coverage and appears orphaned there. So, let's give it a home with the rest of the vhost-user backend family. As part of the move, vhost-user-bridge also gains a section in the vhost-user-contrib document. More can be said about vubr there, like its client mode feature added in aef8486ede8b by Marc-André, but for now a short description and usage example will help folks interested in using the daemon to expand vhost-user support in QEMU. Lastly, Patch 1 makes the necessary changes to the meson build files in tests/ and root, and the new one in contrib/vhost-user-bridge/. Patch 2: Introducing a functional test -------------------------------------- This test was inspired by discussions with Cédric regarding build errors from recent glibc const changes and was the subject of the first RFC. The functional test introduced in the second patch starts vubr as a subprocess, then launches a single QEMU instance that provides a slirp stack and serves as the frontend of the vhost-user protocol, much like the testing setup described in vhost-user-bridge's initial commit in 3595e2eb0a23. For additional details about the test, please see Patch 2's commit message and/or the test's header; in short: the host serves a file to the guest via tftp, then the guest serves a file to the host via http. The guest's kernel image was built with Buildroot in a Containerfile that is based on a snapshot Debian container image, so that the kernel image remains bit-for-bit reproducible indefinitely. For the image and its build files, please see: https://github.com/yodel/vhost-user-bridge-test The repo will be placed in archive (read-only) mode if/when the series lands. Patch 3: Adding UDP RX logging ------------------------------ An existing transmit hexdump of UDP packets provides valuable data; adding a receive hexdump to complement TX doubles the fun (read: visibility). Like TX, the RX hexdump is gated behind a currently hardcoded-on macro. Another new debug print separates transmit blocks from receives. Changes since RFCv2: -------------------- - Promoted to PATCH - Collect R-b's (thanks to Marc-André and Thomas) - Add test to .../x86_64/meson.build thorough suite (Marc-André) - Add encoding= args to open() (Thomas) - Add pylint disable=unbalanced-tuple-unpacking on find_free_ports() - Minor commit message rewording Changes since RFCv1: -------------------- - Remove external host dependency (Marc-André) - Use user netdev tftp feature (Thomas) - Use check_http_download (Thomas) - Remove wget - Inherit from LinuxKernelTest instead of QemuSystemTest - Use hardcoded UUIDs in files on the guest and host for data transfer - Use a Popen context manager to terminate and wait on vubr - Add test to MAINTAINERS under the vhost section (Michael) - New patch to move from tests/ to contrib/vhost-user-bridge/ and add docs section - New patch to add RX debug logging in vhost-user-bridge.c Links ----- RFCv2: https://lore.kernel.org/qemu-devel/20260112230127.99125-1-yodel.eldar@yodel.dev/ RFCv1: https://lore.kernel.org/qemu-devel/20251230002604.113632-1-yodel.eldar@yodel.dev/ Yodel Eldar (3): tests/vhost-user-bridge: Move to contrib/vhost-user-bridge/ tests/functional/x86_64: Add vhost-user-bridge test contrib/vhost-user-bridge: Add UDP receive hexdump MAINTAINERS | 1 + contrib/vhost-user-bridge/meson.build | 4 + .../vhost-user-bridge}/vhost-user-bridge.c | 7 + .../devices/virtio/vhost-user-contrib.rst | 39 +++++ meson.build | 1 + tests/functional/x86_64/meson.build | 1 + .../x86_64/test_vhost_user_bridge.py | 147 ++++++++++++++++++ tests/meson.build | 6 - 8 files changed, 200 insertions(+), 6 deletions(-) create mode 100644 contrib/vhost-user-bridge/meson.build rename {tests => contrib/vhost-user-bridge}/vhost-user-bridge.c (98%) create mode 100755 tests/functional/x86_64/test_vhost_user_bridge.py -- 2.52.0