From 9177d3a3b7e8b8b30b4d7083b86332695c315d15 Mon Sep 17 00:00:00 2001 From: Jose Carlos Venegas Munoz Date: Mon, 29 Jun 2020 21:11:08 -0700 Subject: [PATCH] virtiofsd: Use cache=auto [ port from runtime commit 4645d3e6ef2e99dae1f2b3a7bfded6fc304d3023 ] Today for virtiofsd kata sets by default `cache=always`. This option is useful for performance but if the shared files are modified from the host changes are not updated in the guest as virtiofsd uses cached value all time. This patch changes to `cache=auto` to fix consistency issues. The option can still be set to always if it is wanted by the user. Signed-off-by: Jose Carlos Venegas Munoz Signed-off-by: Peng Tao --- src/runtime/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/runtime/Makefile b/src/runtime/Makefile index ecec0dc29..fbfa922dc 100644 --- a/src/runtime/Makefile +++ b/src/runtime/Makefile @@ -176,7 +176,7 @@ DEFSHAREDFS_QEMU_VIRTIOFS := virtio-fs DEFVIRTIOFSDAEMON := $(VIRTIOFSDBINDIR)/virtiofsd # Default DAX mapping cache size in MiB DEFVIRTIOFSCACHESIZE := 1024 -DEFVIRTIOFSCACHE ?= always +DEFVIRTIOFSCACHE ?= auto # Format example: # [\"-o\", \"arg1=xxx,arg2\", \"-o\", \"hello world\", \"--arg3=yyy\"] #