Re: RFC: Kernel virtiofs driver

From: Pete Wright <pete_at_nomadlogic.org>
Date: Tue, 10 Feb 2026 17:45:06 UTC

On 2/9/26 10:57 PM, Mario Marietto wrote:
> |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 ?|
> 


i had a similar question since i've been happy with p9fs.  the virtiofs 
faq states (https://virtio-fs.gitlab.io/):

"Existing solutions to this problem, such as virtio-9p, are based on 
existing network protocols that are not optimized for virtualization use 
cases. As a result they do not perform as well as local file systems and 
do not provide the semantics that some applications rely on.

Virtiofs takes advantage of the virtual machine’s co-location with the 
hypervisor to avoid overheads associated with network file systems."


that seems super reasonable to me.  i also think there is windows 
support for virtiofs which is probably another benefit.

-pete

-- 
Pete Wright
pete@nomadlogic.org