Date: Mon, 9 Feb 2026 22:04:51 -0500 From: Emil Tsalapatis <emil@etsalapatis.com> To: Virtualisation on FreeBSD <freebsd-virtualization@freebsd.org> Subject: RFC: Kernel virtiofs driver Message-ID: <CABFh=a5HoDOHthe%2BavAAxpb3YN4W3FAGqCysdbyrBbr4Rw7rMg@mail.gmail.com>
index | next in thread | raw e-mail
[-- Attachment #1 --]
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
<https://reviews.freebsd.org/D46295>
2) The file system that gets mounted in the guest: D46296
<https://reviews.freebsd.org/D46296>.
To test it you need a couple additional fixes/workarounds for FUSE-related
issues. You can grab a working tree here
<https://github.com/etsal/freebsd-src/tree/virtiofs> or apply diffs D55047
<https://reviews.freebsd.org/D55047> and D55046
<https://reviews.freebsd.org/D55046>. D55046 is a workaround, but still
prevents an assertion failure related 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 then from
the FreeBSD guest run
mount -t virtiofs <tag> <mountpoint>
where <tag> is the name tag you gave to the virtiofs device in the host VMM.
Reviews and testing welcome!
Thanks,
Emil
[-- Attachment #2 --]
<div dir="ltr"><div dir="ltr"><div>Hi everyone,<br><br> 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.</div><br><div>The driver really is two components:<br><br><div>1) The virtio device that sends FUSE tickets to and from the host: <a href="https://reviews.freebsd.org/D46295" target="_blank">D46295</a></div><div>2) The file system that gets mounted in the guest: <a href="https://reviews.freebsd.org/D46296" target="_blank">D46296</a>.</div></div><div><br></div><div><div>To test it you need a couple additional fixes/workarounds for FUSE-related issues. You can grab a working tree <a href="https://github.com/etsal/freebsd-src/tree/virtiofs" target="_blank">here</a> or apply diffs <a href="https://reviews.freebsd.org/D55047" target="_blank"><span>D55047</span></a><span> and </span><a href="https://reviews.freebsd.org/D55046" target="_blank">D55046</a>. D55046 is a workaround, but
still prevents an assertion failure related to FUSE caching until the underlying issue is properly fixed on HEAD. </div><div><br></div><div>To use it, make sure you are creating virtiofs device on the host then from the FreeBSD guest run</div><div><br></div><div>mount -t virtiofs <tag> <mountpoint></div><div><br></div><div>where <tag> is the name tag you gave to the virtiofs device in the host VMM.</div><div><br></div><div>Reviews and testing welcome!</div><div><br></div><div>Thanks,</div><div>Emil</div><div><br></div><br></div></div>
</div>
home |
help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CABFh=a5HoDOHthe%2BavAAxpb3YN4W3FAGqCysdbyrBbr4Rw7rMg>
