From 1dd539577c42b67da796e2e758e04171bb889779 Mon Sep 17 00:00:00 2001 From: Vivek Goyal Date: Wed, 19 Aug 2020 18:19:47 -0400 Subject: virtiofs: add a mount option to enable dax Add a mount option to allow using dax with virtio_fs. Signed-off-by: Vivek Goyal Signed-off-by: Miklos Szeredi --- fs/fuse/Kconfig | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'fs/fuse/Kconfig') diff --git a/fs/fuse/Kconfig b/fs/fuse/Kconfig index 0156dc8aa646..fddd40630077 100644 --- a/fs/fuse/Kconfig +++ b/fs/fuse/Kconfig @@ -38,3 +38,16 @@ config VIRTIO_FS If you want to share files between guests or with the host, answer Y or M. + +config FUSE_DAX + bool "Virtio Filesystem Direct Host Memory Access support" + default y + depends on VIRTIO_FS + depends on FS_DAX + depends on DAX_DRIVER + help + This allows bypassing guest page cache and allows mapping host page + cache directly in guest address space. + + If you want to allow mounting a Virtio Filesystem with the "dax" + option, answer Y. -- cgit v1.2.3