virtio-fs is a new shared file system giving access to a directory that both the host and guests can access. Traditionally shared file systems have been used to make data available to the guest during installation, boot a guest from a directory tree on the host, or to develop code on the host and test it in-place without copying files into the guest. New use cases including container VMs and File-System-as-a-Service have introduced new requirements that virtio-fs is designed to meet.
Previous attempts at shared file systems have included virtio-9p or simply used network file systems. virtio-fs is unique because it is possible to access files directly from the host page cache. This eliminates data copies and communication, resulting in lower memory footprint and higher performance for many workloads.
This presentation explains how to use virtio-fs and covers its architecture. It includes performance benchmarks showing how various features perform and a comparison with virtio-9p.