From nobody Tue Feb 10 06:57:02 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 4f9C794L7qz6RZy4 for ; Tue, 10 Feb 2026 06:57:41 +0000 (UTC) (envelope-from marietto2008@gmail.com) Received: from mail-pl1-x631.google.com (mail-pl1-x631.google.com [IPv6:2607:f8b0:4864:20::631]) (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 4f9C792BxXz3qNs for ; Tue, 10 Feb 2026 06:57:41 +0000 (UTC) (envelope-from marietto2008@gmail.com) Authentication-Results: mx1.freebsd.org; none Received: by mail-pl1-x631.google.com with SMTP id d9443c01a7336-2a9057b2ec3so2287565ad.2 for ; Mon, 09 Feb 2026 22:57:41 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1770706659; cv=none; d=google.com; s=arc-20240605; b=f/XJIRkOZi1c9FBKYc84zEre01pD2EIzMKFZ70G8mguyFbAIVrK5pBNONJTQ7OiCIf /m5fwT+8aLKWuAnYb469Z13IvxW1STf/IJX1GOdm9Xb/amzGdin/uRrzvQAGKdaMX7bE h0Tn4O7W1YZ0jDzQOMo4tj/x06Kj3tSD4Gq4hKBETQT5Oup8jiEYcEFyUWVJFap5Cs72 BpYRBjhKLye7hVdfSZJ7sPatFloBtHsuVpBzLI8/gqvSxN1lKeGi2xK6cvWFhm+bg7xJ nQcwR8y7uysqnM5zbiQxHmsPsAVg8kzD3gqHU4uDKgM/4rCgexiAh/VPzbv6dgDLTwbg LSVA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=bnSjjoa7tmxHNm0h1HxD1F+/65gHjCfjswPsFogjomY=; fh=aiGYrR7nGqVb0iEMHnckOin5OEHWKAZoQQhzOtWeB5I=; b=WYoTW3iVADA5ctGeMFeoOJJ3OksWcmNYJjZVhpAkg6irCDnaEorArmZPpOIKiJPFEu ajyDDqHyJhMuiOMDSY3+ZI6vussi6XIZO0XH+HEjgmrXcvap9KUUhTYjai1LDvFUmUTg 7ovmOOmEQFqO4y6hmUSOR8u/m6Nho/LUKgArSmLVBVBhSS9faLF8xZIcuVc32ruh8P31 fOTFvZEF9xBL2qbZrk0uazP7NsSdJukgbGl30BPxyGoR6sjuQKixexEKRJKngS4mvGGL xEPQfmDyH9vRwdnaPLtvHeOKA21SxFniye6hEBHDSYVGe1CE8XlEzVkCdW4q94ys6CO6 DpUw==; 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=1770706659; x=1771311459; darn=freebsd.org; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :from:to:cc:subject:date:message-id:reply-to; bh=bnSjjoa7tmxHNm0h1HxD1F+/65gHjCfjswPsFogjomY=; b=H6xEF8wcHqNJf/dvdLAc848eBC0BjVrDHO/xCqrMim3oOyMpqHNW16j7seSYDVcoDC hNpzV6vgfU8utERZXlJ6rooREqt1YXMRl0eCcm/6cZ0w9j265vx1t40fXvcv6ZH5MlMs sNpdiv1q0UGIaqyQU3YYCpmFgvdl+dOg7hazjFiATDqpntouCBxozYRT6dqVD+K+mN2A rsdSpnAXTJdj4PTr9t6hWChriMGjkPkNn5nE4wMlbSi+poFx9UoJyRfC8w+ZBYfVhEOw tc8Yz0rvMtWqBSR49f0zARO+w6ARlc7PEorpwtQqN7CqukHKA6bxSEbBSXCiUz175VIl vE5w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1770706659; x=1771311459; h=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=bnSjjoa7tmxHNm0h1HxD1F+/65gHjCfjswPsFogjomY=; b=tlKtHZYcgDnXkZyajhbDawTeq0I88+9DMIObl6wg+sxU80iRReaorbmt2GZNBrjWCN 2/KL/dNH+Lx63wEMs0Kul6grmbdN3Fp2eYO5W9duh8uNQLr6qip5II8u8g3RESDaTn8S BKdRv+GIqialMtnaf38P9l1a1k2YUAuvABRhvDTaXc/drGt+m9MxepE1Z5C12TLmd1Vl sKHza2wkWnHyxexNM9KZxCFUf6ZUvFY20KwOZgmib/nPMEipyS5frDRqAmql9knFYmqd qpuwnXr7zDLyx06t9sAV4Etcwu44saZFr9O3Mu4ir6M/dOqE+8pFyR5iJXZyjVNJxMha CaPA== X-Forwarded-Encrypted: i=1; AJvYcCU2BIYDfrfw3nc/mnyhPIhLGEAeGN7ym5nqO4UsKgxJ80iXYC2NaYEiPrzx4cjnb+za+puhqCa1rxWgTok10L5SmbTMXgOF@freebsd.org X-Gm-Message-State: AOJu0YyYuZAHNHOJUhhKEQ+Kl0i/e3Y8DxCH+cjvxcQo74gWcB+7mR9U gEkxGtgFKdI5ag9lH80rYcxg5eBofsAlejI7vwu8OKXD7KsWyQQ/+XvcmrZvrHn2J6ydaKxgS// 8BbfFxx0uqilSYDnPYmOd92pvs8g7uNQ= X-Gm-Gg: AZuq6aLQ99bQELKUYhTKG86KbKV/bsNPngX6kS+bQtgr/BduT+EnKyRlW0TPBNXRH5t Ym6A45tsd0RY4c7mDiXSbJLLJSVjfYRJPIr7FxFuyNBm7nVPY3puJ0++JEugUBWg3hjk6a080Qn CY85eTbgfavEi7x1muTXzzBcW/rVFZrzIEEl5xT9Sz+c4FiqSgjh3RNiJXjKNG6EDPMdpsICati Nv/zZTrpPI1RBDvjwZ+CHnCAFbrxlUEII7gwq6Qc+uBehrDgAqIxCymRgwBfE/yDQmoG6NaFudf P/4v2BSy2m/ge3yCmWLrfzKb0y6d1qsiFE7sjlZOmBPms6l2mIdbnHlEMhOgyQgx/R+8RqJCFEd naP9ctaiMTfIsGB5K2nhE3P2PUdxCRmH+N/P1h4ZBT9vkILOpv457Olxhahed9A1I4lROKWEgAz nPLks1pZLh1g1f9D4hEJeyDhXsFxEzZ+5Q/Pi9wf2u4McasCaaI9DdDfbAeX2UgFPyi/IFaNgAG 3hgBBZ6T/W4tQ7URGfJtuMidFVZy/Ym+4dnX8d7N/RhFF3PUy2TzjdRNIUIvNKmWO9ZRrNp4Cgb jEMHo3MAmqsTV9SBual3ry96eTGO5iddTgUD78gC86BPR8CaYZHWg9FYCw== X-Received: by 2002:a17:903:40ca:b0:2aa:d316:f30e with SMTP id d9443c01a7336-2aad316f696mr76045035ad.28.1770706658787; Mon, 09 Feb 2026 22:57:38 -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: Mario Marietto Date: Tue, 10 Feb 2026 07:57:02 +0100 X-Gm-Features: AZwV_QgQrX2zithyyUBYCeKPL2mWXUkEBPcQIE1MOeEzsH0LiSMg9R7sII9aFf8 Message-ID: Subject: Re: RFC: Kernel virtiofs driver To: Emil Tsalapatis , FreeBSD virtualization Content-Type: multipart/alternative; boundary="0000000000006606c9064a72c51f" X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US] X-Rspamd-Queue-Id: 4f9C792BxXz3qNs X-Spamd-Bar: ---- --0000000000006606c9064a72c51f Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable 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 FreeBSD 14.3 host os. So,what's missing in this case and which features you added ? 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 > review. The device allows for sharing directories between a FreeBSD guest > and a host. > > The driver really is two components: > > 1) The virtio device that sends FUSE tickets to and from the host: D46295 > > 2) The file system that gets mounted in the guest: D46296 > . > > To test it you need a couple additional fixes/workarounds for FUSE-relate= d > issues. You can grab a working tree here > or apply diffs D5504= 7 > and D55046 > . D55046 is a workaround, but still > prevents an assertion failure related to FUSE caching until the underlyin= g > issue is properly fixed on HEAD. > > To use it, make sure you are creating virtiofs device on the host then > from the FreeBSD guest run > > mount -t virtiofs > > where is the name tag you gave to the virtiofs device in the host > VMM. > > Reviews and testing welcome! > > Thanks, > Emil > > > --=20 Mario. --0000000000006606c9064a72c51f Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable

Hello Emil,

Inside a FreeBSD guest OS (15.0-RELEASE) I do :

kldload virtio_p9fs=C2=A0

kldload=C2=A0<= /span>p9fs_load

mount -t p9fs sharename /mnt/host

=

This works for me,= I can share files between FreeBSD 15.0 guest and FreeBSD 14.3 host os. So,w= hat's missing in this case and which features you added ?=

Thanks.



On Tue, Feb 10, 20= 26 at 4:05=E2=80=AFAM Emil Tsalapatis <emil@etsalapatis.com> wrote:
Hi everyo= ne,

=C2=A0 =C2=A0 I recently finished the virtiofs driver and it is = now ready for review. The device allows for sharing directories between a F= reeBSD guest and a host.

The driver really is two components:=

1) The virtio device that sends FUSE tickets to and from the h= ost: D4629= 5
2) The file system that gets mounted in the guest: D46296.
=

To test it you need a couple additional fixe= s/workarounds for FUSE-related issues. You can grab a working tree h= ere or apply diffs D55047 and D55046. D55046 is a workaro= und, but=20 still prevents an assertion failure related to FUSE caching until the under= lying issue is properly fixed on HEAD.=C2=A0

To us= e it, make sure you are creating virtiofs device on the host then from the = FreeBSD guest run

mount -t virtiofs <tag> &l= t;mountpoint>

where <tag> is the name tag= you gave to the virtiofs device in the host VMM.

= Reviews and testing welcome!

Thanks,
Emi= l




--
Ma= rio.
--0000000000006606c9064a72c51f--