NetBSD Problem Report #59211
From www@netbsd.org Tue Mar 25 02:31:55 2025
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 "mail.NetBSD.org CA" (not verified))
by mollari.NetBSD.org (Postfix) with ESMTPS id B9BDD1A9239
for <gnats-bugs@gnats.NetBSD.org>; Tue, 25 Mar 2025 02:31:54 +0000 (UTC)
Message-Id: <20250325023153.C1CC11A923D@mollari.NetBSD.org>
Date: Tue, 25 Mar 2025 02:31:53 +0000 (UTC)
From: campbell+netbsd@mumble.net
Reply-To: campbell+netbsd@mumble.net
To: gnats-bugs@NetBSD.org
Subject: vio9p(4): missing from various GENERICs and MAKEDEVs
X-Send-Pr-Version: www-1.0
>Number: 59211
>Category: kern
>Synopsis: vio9p(4): missing from various GENERICs and MAKEDEVs
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: kern-bug-people
>State: needs-pullups
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Tue Mar 25 02:35:00 +0000 2025
>Closed-Date:
>Last-Modified: Fri Mar 28 18:45:01 +0000 2025
>Originator: Taylor R Campbell
>Release: current
>Organization:
The Net9P Configuration
>Environment:
>Description:
The vio9p(4) device is handy in a VM guest for sharing file systems with a VM host such as qemu.
However, it is missing from various GENERIC kernels and MAKEDEV scripts.
It should be added to all the relevant kernel configurations and MAKEDEV scripts.
>How-To-Repeat:
try to use qemu 9p virtfs with a GENERIC guest
>Fix:
Yes, please!
While here, perhaps we should have a virtio.config file that can be included, like usbdevices.config, so we don't have to copy & paste the same block of virtio attachments in every kernel config.
>Release-Note:
>Audit-Trail:
From: "Taylor R Campbell" <riastradh@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc:
Subject: PR/59211 CVS commit: src/sys
Date: Thu, 27 Mar 2025 12:22:44 +0000
Module Name: src
Committed By: riastradh
Date: Thu Mar 27 12:22:44 UTC 2025
Modified Files:
src/sys/arch/alpha/conf: GENERIC.QEMU
src/sys/arch/amd64/conf: ALL GENERIC MICROVM
src/sys/arch/evbarm/conf: GENERIC GENERIC64
src/sys/arch/evbmips/conf: MIPSSIM
src/sys/arch/hppa/conf: GENERIC
src/sys/arch/i386/conf: ALL GENERIC MICROVM
src/sys/arch/riscv/conf: GENERIC.common
src/sys/arch/sparc64/conf: GENERIC
src/sys/arch/virt68k/conf: GENERIC
Added Files:
src/sys/dev/virtio: virtio.config
Log Message:
virtio(4): Consolidate kernel configs.
No functional change intended.
Leave `# XXX ?' comments where I don't know why the driver in
question is excluded. (Typical reason is that PAGE_SIZE is not 4096
but I didn't investigate -- if you do investigate, please either
update the comment if you determine a reason, or enable the driver if
you don't.)
PR kern/59211: vio9p(4): missing from various GENERICs and MAKEDEVs
To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 src/sys/arch/alpha/conf/GENERIC.QEMU
cvs rdiff -u -r1.190 -r1.191 src/sys/arch/amd64/conf/ALL
cvs rdiff -u -r1.614 -r1.615 src/sys/arch/amd64/conf/GENERIC
cvs rdiff -u -r1.1 -r1.2 src/sys/arch/amd64/conf/MICROVM
cvs rdiff -u -r1.121 -r1.122 src/sys/arch/evbarm/conf/GENERIC
cvs rdiff -u -r1.222 -r1.223 src/sys/arch/evbarm/conf/GENERIC64
cvs rdiff -u -r1.11 -r1.12 src/sys/arch/evbmips/conf/MIPSSIM
cvs rdiff -u -r1.48 -r1.49 src/sys/arch/hppa/conf/GENERIC
cvs rdiff -u -r1.521 -r1.522 src/sys/arch/i386/conf/ALL
cvs rdiff -u -r1.1258 -r1.1259 src/sys/arch/i386/conf/GENERIC
cvs rdiff -u -r1.1 -r1.2 src/sys/arch/i386/conf/MICROVM
cvs rdiff -u -r1.20 -r1.21 src/sys/arch/riscv/conf/GENERIC.common
cvs rdiff -u -r1.242 -r1.243 src/sys/arch/sparc64/conf/GENERIC
cvs rdiff -u -r1.9 -r1.10 src/sys/arch/virt68k/conf/GENERIC
cvs rdiff -u -r0 -r1.1 src/sys/dev/virtio/virtio.config
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
From: "Taylor R Campbell" <riastradh@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc:
Subject: PR/59211 CVS commit: src/sys/arch
Date: Thu, 27 Mar 2025 12:23:00 +0000
Module Name: src
Committed By: riastradh
Date: Thu Mar 27 12:23:00 UTC 2025
Modified Files:
src/sys/arch/amd64/conf: GENERIC
src/sys/arch/i386/conf: GENERIC
Log Message:
x86: Enable vio9p(4) out of the box.
PR kern/59211: vio9p(4): missing from various GENERICs and MAKEDEVs
To generate a diff of this commit:
cvs rdiff -u -r1.615 -r1.616 src/sys/arch/amd64/conf/GENERIC
cvs rdiff -u -r1.1259 -r1.1260 src/sys/arch/i386/conf/GENERIC
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
From: "Taylor R Campbell" <riastradh@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc:
Subject: PR/59211 CVS commit: src/sys/arch/evbarm/conf
Date: Thu, 27 Mar 2025 12:23:20 +0000
Module Name: src
Committed By: riastradh
Date: Thu Mar 27 12:23:19 UTC 2025
Modified Files:
src/sys/arch/evbarm/conf: GENERIC64
Log Message:
evbarm/GENERIC64: Enable vio9p(4).
Tested under qemu.
PR kern/59211: vio9p(4): missing from various GENERICs and MAKEDEVs
To generate a diff of this commit:
cvs rdiff -u -r1.223 -r1.224 src/sys/arch/evbarm/conf/GENERIC64
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
State-Changed-From-To: open->needs-pullups
State-Changed-By: riastradh@NetBSD.org
State-Changed-When: Thu, 27 Mar 2025 12:26:29 +0000
State-Changed-Why:
fixed in HEAD, pullup-10 would be nice, pullup-9 probably not worth it
From: "Taylor R Campbell" <riastradh@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc:
Subject: PR/59211 CVS commit: src/etc
Date: Fri, 28 Mar 2025 18:41:26 +0000
Module Name: src
Committed By: riastradh
Date: Fri Mar 28 18:41:26 UTC 2025
Modified Files:
src/etc: MAKEDEV.tmpl
src/etc/etc.aarch64: MAKEDEV.conf
src/etc/etc.alpha: MAKEDEV.conf
src/etc/etc.amd64: MAKEDEV.conf
src/etc/etc.evbarm: MAKEDEV.conf
src/etc/etc.evbmips: MAKEDEV.conf
src/etc/etc.evbppc: MAKEDEV.conf
src/etc/etc.hppa: MAKEDEV.conf
src/etc/etc.i386: MAKEDEV.conf
src/etc/etc.macppc: MAKEDEV.conf
Log Message:
MAKEDEV: New `virtio' target for all virtio-related devices.
We can use this to add more as they come up so we don't have to keep
tweaking every etc.${MACHINE}/MAKEDEV.conf every time. Currently
this makes nodes for viocon(4) and vio9p(4).
(Not all GENERIC kernels enable vio9p(4) but I suspect the ones that
don't really should; for those that are disabled because PAGE_SIZE !=
4096, I expect it's just a matter of some additional indexing to make
vio9p(4) work with other page sizes.)
PR kern/59211: vio9p(4): missing from various GENERICs and MAKEDEVs
To generate a diff of this commit:
cvs rdiff -u -r1.236 -r1.237 src/etc/MAKEDEV.tmpl
cvs rdiff -u -r1.10 -r1.11 src/etc/etc.aarch64/MAKEDEV.conf
cvs rdiff -u -r1.15 -r1.16 src/etc/etc.alpha/MAKEDEV.conf
cvs rdiff -u -r1.36 -r1.37 src/etc/etc.amd64/MAKEDEV.conf
cvs rdiff -u -r1.23 -r1.24 src/etc/etc.evbarm/MAKEDEV.conf
cvs rdiff -u -r1.12 -r1.13 src/etc/etc.evbmips/MAKEDEV.conf
cvs rdiff -u -r1.14 -r1.15 src/etc/etc.evbppc/MAKEDEV.conf
cvs rdiff -u -r1.3 -r1.4 src/etc/etc.hppa/MAKEDEV.conf
cvs rdiff -u -r1.36 -r1.37 src/etc/etc.i386/MAKEDEV.conf
cvs rdiff -u -r1.15 -r1.16 src/etc/etc.macppc/MAKEDEV.conf
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
>Unformatted:
(Contact us)
$NetBSD: query-full-pr,v 1.47 2022/09/11 19:34:41 kim Exp $
$NetBSD: gnats_config.sh,v 1.9 2014/08/02 14:16:04 spz Exp $
Copyright © 1994-2025
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.