NetBSD Problem Report #59976

From www@netbsd.org  Sun Feb  8 01:08:51 2026
Return-Path: <www@netbsd.org>
Received: from mail.netbsd.org (mail.netbsd.org [199.233.217.200])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
	 key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256
	 client-signature RSA-PSS (2048 bits) client-digest SHA256)
	(Client CN "mail.netbsd.org", Issuer "R13" (verified OK))
	by mollari.NetBSD.org (Postfix) with ESMTPS id 444471A923D
	for <gnats-bugs@gnats.NetBSD.org>; Sun,  8 Feb 2026 01:08:51 +0000 (UTC)
Message-Id: <20260208010850.093881A923E@mollari.NetBSD.org>
Date: Sun,  8 Feb 2026 01:08:49 +0000 (UTC)
From: campbell+netbsd@mumble.net
Reply-To: campbell+netbsd@mumble.net
To: gnats-bugs@NetBSD.org
Subject: xen pv channels appear to be unusable
X-Send-Pr-Version: www-1.0
X-From4GNATS: "campbell+netbsd@mumble.net via gnats" <gnats-admin@NetBSD.org>

>Number:         59976
>Category:       port-xen
>Synopsis:       xen pv channels appear to be unusable
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    port-xen-maintainer
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Feb 08 01:10:00 +0000 2026
>Last-Modified:  Tue Jul 21 15:55:46 +0000 2026
>Originator:     Taylor R Campbell
>Release:        current, 11, 10, 9, ...
>Organization:
>Environment:
>Description:
Xen provides a mechanism called pv channels for the dom0 to transmit data directly to and from the domU: https://xenbits.xen.org/docs/unstable/man/xen-pv-channel.7.html

This is configured by, e.g., the following xl.cfg(5) fragment:

channel = [ 'connection=socket, name=com.example.mumblefrotz, path=/var/run/mumblefrotz.sock ']

The dom0 can then connect to the local socket /var/run/mumblefrotz.sock, and the domU can use the same tty interface as is used for the console.

...Except apparently a NetBSD/xen guest just ignores all such devices advertised by the host, except for /devices/console/0 which is configured specially as the console:

528		/*
529		 * console is configured through xen_start_info when
530		 * xencons is attaching to hypervisor, so avoid console
531		 * probing when configuring xenbus devices
532		 */
533		if (strcmp(dir[i], "console") == 0)
534			continue;

https://nxr.netbsd.org/xref/src/sys/arch/xen/xenbus/xenbus_probe.c?r=1.62#527
>How-To-Repeat:
try to use xen pv channels with a NetBSD guest
>Fix:
Yes, please!

>Release-Note:

>Audit-Trail:

>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.51 2026/08/10 02:28:17 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.