From nobody Sun Feb 15 14:54:37 2026 X-Original-To: freebsd-virtualization@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4fDTTR21Rhz6RdZs for ; Sun, 15 Feb 2026 14:54:51 +0000 (UTC) (envelope-from osidorkin@gmail.com) Received: from mail-qt1-x830.google.com (mail-qt1-x830.google.com [IPv6:2607:f8b0:4864:20::830]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "WR4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4fDTTP6kDkz3bMQ for ; Sun, 15 Feb 2026 14:54:49 +0000 (UTC) (envelope-from osidorkin@gmail.com) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20230601 header.b=WzKMZ4I3; dmarc=pass (policy=none) header.from=gmail.com; arc=pass ("google.com:s=arc-20240605:i=1"); spf=pass (mx1.freebsd.org: domain of osidorkin@gmail.com designates 2607:f8b0:4864:20::830 as permitted sender) smtp.mailfrom=osidorkin@gmail.com Received: by mail-qt1-x830.google.com with SMTP id d75a77b69052e-5069b3e0c66so39992121cf.1 for ; Sun, 15 Feb 2026 06:54:49 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1771167288; cv=none; d=google.com; s=arc-20240605; b=f8jQA+FRoEy27y02aKwOjb1k+5FVdh8Pxp34ZyVdpd/oFdtRgLXCl9W0ujkH5xTr5J GbmFGtj1FeVeCG+BZzq/R2sSynUZ6nQOzQ/hxZy1gDAxGLnAfq1yl/1tut7ekY9LiChm NPvlyRohpcnAbZ9WVYv2aJ5ty9wQDs7iAvvNLV3Lk7uHhDuQHL3L7Bf6YZOkf3h5AwWV chYlMS+pwxwZBrYKd+R7HMK+wVhMiL2X5HiWEsED5vshyCjUeLt66FL3Q/2uSfoa3gzT +MoaK5jp6/Vl/N35ZPggzstIGkkJqR6Q8Rm8sYyoxAEsYteIihJmBrhEDg8rLeY0bB9I EBYA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=bkt7qwWDXSxJxQup5+as3KGSXg7k4bfJTS0++hQZnC0=; fh=IuaeVDyjhS3DTzfpnks+v4gqWaCo9P7NChp8q0eYoJg=; b=KRgXaCt8CxfXODsmhcMHQVpnkuw5tmvy0C33YlOrAR+PDiGRvoilOXitEpy2Y4BJpx qGH3uQZsXRYIwwQtfHtycld18hdwCZLX1jAjG1HaT/gTWXVHPKcBiqNtMo9fEJFcvEi2 pb4ByzgsyHk4AQWb7ZqpoUl3JcD33JnVUzYVYsw9yEhGO1pVPihOn7xVj0kymcNvf0wJ QP2TT2e+joq3pHj2w1AQkSPv7rLxT24nZLjNBv7jmaLjUDaY/QO6gyYd4zdygtXkzzzF 4bpcHZfB+0NfT56yTF/Jhj4YouBIHIL4iHeLp7iX9QuW2GFuSvkwbHP65CsTdvmVNYet wvGA==; darn=freebsd.org ARC-Authentication-Results: i=1; mx.google.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1771167288; x=1771772088; darn=freebsd.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=bkt7qwWDXSxJxQup5+as3KGSXg7k4bfJTS0++hQZnC0=; b=WzKMZ4I3+RZz3ajFKvzN4FMAEubHdPs+VcJuK4nyWBu4nFfb1IXqpCB+0Bdj58xDKi /7K9U3yACfsudJ4pUKu5xY+ECIrP2RXgxMJnZ0tDnSjSi/sekRTaKgqwUw2fkDsPsTcZ gtO7XTwgDaKHJ9f8n/678Pqgmc58xiEJK0CgplA6L48/GQRssbF9thq5/QN1um75SR/A n1E278Xwl/x9o2O9RwHBbVf7/ymQOovohpy+t5XZGsy34VcXMxMrPyctIyfw5hCXcVE4 q+oGnJ73UlcSVxtZ5B+gokjMKMbnVQ42GcZMNAaAwO0Uu9ujVEw/m2VoXgOMG0LL8jtQ /7zA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1771167288; x=1771772088; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=bkt7qwWDXSxJxQup5+as3KGSXg7k4bfJTS0++hQZnC0=; b=R843Ku0A6xRJNwV3ZeQpi0341VIxEFtMLIM3Agw0qVPR553CZ0VojSw9aGVz2o4TyN zJzpk5xmiak9g1GaUgd++ogcsYl+esp5JZAri1vDJ92C9tdkjZIZf25rPZxyEXmYDTSy KZE0mZPJswVDdg2UInxvOqmyCUtrKZZbJtZYtnOY5oh9H3i9KRDeYT02n6RcmUvtyCnj 93Nng1SfidkwV6DaGVXKUnBUJV5RcKENpMiAk/bt1PMjnN1ZcrBbi9g+10pGqAzH+5WT IS5Eka3nMaWze0EpjgJAw5hmwzMeUcdeygJhEqoJvflCz20zMsnDJWB1OAnQ7KVdoU7U xvqg== X-Forwarded-Encrypted: i=1; AJvYcCXYrnuY3Dv2xNK0NYw36V9m6eaOE+vyijudf1DGHI6kEsntQgKU1hDJWFrIyfsGtCZUUPHoUYYNao1FmWtnuUkSLPvVOzh1@freebsd.org X-Gm-Message-State: AOJu0YwofzribloP34pyl3TxhEBoz4Q2k75cGmVVLh256EVPkFmTAQF7 /hTbGzbsZ9IGA0V5rZBlMBrJV5dce9QYAtR5cgO7mZUcVTtgPITuUoCmG5933KZId8BXcyotPJZ ktyA3Ookk0tB0+mKF0Moqb9wWad7TC4I3VUSU X-Gm-Gg: AZuq6aLtyDzo1oZhdCirgNHzg7MkgijxyoMq+OgsLtlyPpAfE/CeLIYl09XJi2R5Vc3 Zegw6L+wYZCYkVmAMQTbBx+T9qlp9txP0jyxKTe0FVhPzz6+QLHJAZqi1i6uBCvZ3uiWj2HpcYm gEub/xgjqOeth8jaorlOC2jQ9METCK7rx0da5adO1q6L8g1VjBJBBuBXj9aHsjnj3eOJ2whmsfF M9RAkrw1GJcnvoo8pv2gkLdxSvoD2L+JiqieUZmuLcA6m3NmeLHpnu/26jrHGnE9CA3VSw4Wm/z rFtJHwSFpVE6X2pelMuBSoEhCZ6TtWckFwyFEqDybQu05nmtUqI8fXB2kMo+0nToFy+eFSv006c 1AF8Pz7tKUjvoS3acEJ/siuigZQ== X-Received: by 2002:a05:620a:2556:b0:8cb:df8:e86c with SMTP id af79cd13be357-8cb4ac6b8afmr755463285a.26.1771167288160; Sun, 15 Feb 2026 06:54:48 -0800 (PST) List-Id: Discussion List-Archive: https://lists.freebsd.org/archives/freebsd-virtualization List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: freebsd-virtualization@freebsd.org Sender: owner-freebsd-virtualization@FreeBSD.org MIME-Version: 1.0 References: In-Reply-To: From: Oleg Sidorkin Date: Sun, 15 Feb 2026 17:54:37 +0300 X-Gm-Features: AZwV_QiP5vFO4gTcP75Tr7P6svVUzic9yKzZuNROKrCx4DnhN2uIrgpfTEBV_s0 Message-ID: Subject: Re: RFC: Kernel virtiofs driver To: Mario Marietto Cc: Emil Tsalapatis , FreeBSD virtualization Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spamd-Result: default: False [-4.97 / 15.00]; ARC_ALLOW(-1.00)[google.com:s=arc-20240605:i=1]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_MEDIUM(-0.99)[-0.993]; NEURAL_HAM_SHORT(-0.97)[-0.974]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; R_SPF_ALLOW(-0.20)[+ip6:2607:f8b0:4000::/36]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20230601]; MIME_GOOD(-0.10)[text/plain]; DKIM_TRACE(0.00)[gmail.com:+]; TO_DN_ALL(0.00)[]; DWL_DNSWL_NONE(0.00)[gmail.com:dkim]; FREEMAIL_TO(0.00)[gmail.com]; RCVD_TLS_LAST(0.00)[]; MIME_TRACE(0.00)[0:+]; FREEMAIL_FROM(0.00)[gmail.com]; RCPT_COUNT_THREE(0.00)[3]; FROM_HAS_DN(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[2607:f8b0:4864:20::830:from]; PREVIOUSLY_DELIVERED(0.00)[freebsd-virtualization@freebsd.org]; TO_MATCH_ENVRCPT_SOME(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; MISSING_XM_UA(0.00)[]; MID_RHS_MATCH_FROMTLD(0.00)[]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; MLMMJ_DEST(0.00)[freebsd-virtualization@freebsd.org]; RCVD_COUNT_ONE(0.00)[1]; FREEMAIL_ENVFROM(0.00)[gmail.com] X-Rspamd-Queue-Id: 4fDTTP6kDkz3bMQ X-Spamd-Bar: ---- =D1=87=D1=82, 12 =D1=84=D0=B5=D0=B2=D1=80. 2026=E2=80=AF=D0=B3. =D0=B2 20:1= 5, Mario Marietto : > > --> Panics guest system in a few minutes (everything is ok when /obj is..= . > > FreeBSD 16 is working in progress ; virtiofs is work in progress...what d= o you expect ? p9fs has been in the base system since 15.0 AFAIK, and it doesn't receive many fixes. virtiofs (a.k.a. fuse over virtual socket) was created in linux world because plan9 abstractions didn't fit linux VFS layer well. Since Linux VFS and FreeBSD VFS both have to handle POSIX API, they have to be a little similar. So I expect less bugs. > > On Thu, Feb 12, 2026 at 3:01=E2=80=AFPM Oleg Sidorkin wrote: >> >> Hello. >> >> My favorite test to run in bhyve guest: >> >> root@:/usr/src # uname -a >> FreeBSD 16.0-CURRENT FreeBSD 16.0-CURRENT #1 >> main-n283712-16c902f05853: Sat Feb 7 02:10:47 MSK 2026 >> olsi@:/usr/obj/usr/src/amd64.amd64/sys/QUADKERNEL amd64 >> root@:/usr/src # mount >> /dev/vtbd0p2 on / (ufs, local, soft-updates, journaled soft-updates) >> devfs on /dev (devfs) >> obj on /usr/obj (p9fs, local) >> 192.168.2.1:/vms/freebsd-current/usr/home on /usr/home (nfs) >> 192.168.2.1:/vms/freebsd-current/usr/src on /usr/src (nfs) >> 192.168.2.1:/vms/freebsd-current/usr/lib/debug on /usr/lib/debug (nfs) >> 192.168.2.1:/usr/ports/distfiles on /usr/ports/distfiles (nfs) >> root@:/usr/src # make -j4 buildworld buildkernel >> >> Panics guest system in a few minutes (everything is ok when /obj is >> mounted over nfs): >> >> db> bt >> Tracing pid 2248 tid 100165 td 0xfffff80100eb8780 >> kdb_enter() at kdb_enter+0x33/frame 0xfffffe006833e560 >> panic() at panic+0x43/frame 0xfffffe006833e5c0 >> freevnode() at freevnode+0x2d5/frame 0xfffffe006833e620 >> vput_final() at vput_final+0x96/frame 0xfffffe006833e670 >> vfs_hash_insert() at vfs_hash_insert+0x226/frame 0xfffffe006833e6c0 >> p9fs_vget_common() at p9fs_vget_common+0x39b/frame 0xfffffe006833e770 >> p9fs_lookup() at p9fs_lookup+0x4ad/frame 0xfffffe006833e8c0 >> VOP_LOOKUP_APV() at VOP_LOOKUP_APV+0x57/frame 0xfffffe006833e8f0 >> vfs_lookup() at vfs_lookup+0x5aa/frame 0xfffffe006833e980 >> namei() at namei+0x35d/frame 0xfffffe006833e9e0 >> kern_execve() at kern_execve+0x2d1/frame 0xfffffe006833ed80 >> sys_execve() at sys_execve+0x54/frame 0xfffffe006833ee00 >> amd64_syscall() at amd64_syscall+0x169/frame 0xfffffe006833ef30 >> fast_syscall_common() at fast_syscall_common+0xf8/frame 0xfffffe006833ef= 30 >> --- syscall (59, FreeBSD ELF64, execve), rip =3D 0x2cc73682f46a, rsp =3D >> 0x2cc731eb2028, rbp =3D 0x2cc731eb2170 --- >> db> >> >> I'll be really happy to test virtiofs and I hope it will do better. >> >> Thanks >> >> =D0=B2=D1=82, 10 =D1=84=D0=B5=D0=B2=D1=80. 2026=E2=80=AF=D0=B3. =D0=B2 0= 9:57, Mario Marietto : >> > >> > Hello Emil, >> > >> > Inside a FreeBSD guest OS (15.0-RELEASE) I do : >> > >> > kldload virtio_p9fs >> > >> > kldload p9fs_load >> > >> > mount -t p9fs sharename /mnt/host >> > >> > This works for me,I can share files between FreeBSD 15.0 guest and Fre= eBSD 14.3 host os. So,what's missing in this case and which features you ad= ded ? >> > >> > Thanks. >> > >> > >> > >> > On Tue, Feb 10, 2026 at 4:05=E2=80=AFAM Emil Tsalapatis wrote: >> >> >> >> Hi everyone, >> >> >> >> I recently finished the virtiofs driver and it is now ready for r= eview. The device allows for sharing directories between a FreeBSD guest an= d a host. >> >> >> >> The driver really is two components: >> >> >> >> 1) The virtio device that sends FUSE tickets to and from the host: D4= 6295 >> >> 2) The file system that gets mounted in the guest: D46296. >> >> >> >> To test it you need a couple additional fixes/workarounds for FUSE-re= lated issues. You can grab a working tree here or apply diffs D55047 and D5= 5046. D55046 is a workaround, but still prevents an assertion failure relat= ed to FUSE caching until the underlying issue is properly fixed on HEAD. >> >> >> >> To use it, make sure you are creating virtiofs device on the host the= n from the FreeBSD guest run >> >> >> >> mount -t virtiofs >> >> >> >> where is the name tag you gave to the virtiofs device in the ho= st VMM. >> >> >> >> Reviews and testing welcome! >> >> >> >> Thanks, >> >> Emil >> >> >> >> >> > >> > >> > -- >> > Mario. >> >> >> >> -- >> Oleg Sidorkin > > > > -- > Mario. --=20 Oleg Sidorkin