qemu-e2k/tools/virtiofsd
Jiachen Zhang e12a0edafe virtiofsd: Add -o allow_direct_io|no_allow_direct_io options
Due to the commit 65da453980, the O_DIRECT
open flag of guest applications will be discarded by virtiofsd. While
this behavior makes it consistent with the virtio-9p scheme when guest
applications use direct I/O, we no longer have any chance to bypass the
host page cache.

Therefore, we add a flag 'allow_direct_io' to lo_data. If '-o
 no_allow_direct_io' option is added, or none of '-o allow_direct_io' or
 '-o no_allow_direct_io' is added, the 'allow_direct_io' will be set to
 0, and virtiofsd discards O_DIRECT as before. If '-o allow_direct_io'
is added to the starting command-line, 'allow_direct_io' will be set to
1, so that the O_DIRECT flags will be retained and host page cache can
be bypassed.

Signed-off-by: Jiachen Zhang <zhangjiachen.jaycee@bytedance.com>
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
Message-Id: <20200824105957.61265-1-zhangjiachen.jaycee@bytedance.com>
Signed-off-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
2020-09-25 12:45:58 +01:00
..
50-qemu-virtiofsd.json.in
buffer.c
fuse_common.h
fuse_i.h
fuse_log.c
fuse_log.h
fuse_lowlevel.c
fuse_lowlevel.h
fuse_misc.h
fuse_opt.c
fuse_opt.h
fuse_signals.c
fuse_virtio.c virtiofsd: Used glib "shared" thread pool 2020-09-25 12:45:58 +01:00
fuse_virtio.h
helper.c virtiofsd: Add -o allow_direct_io|no_allow_direct_io options 2020-09-25 12:45:58 +01:00
meson.build meson: use meson datadir instead of qemu_datadir 2020-09-01 08:51:33 -04:00
passthrough_helpers.h
passthrough_ll.c virtiofsd: Add -o allow_direct_io|no_allow_direct_io options 2020-09-25 12:45:58 +01:00
passthrough_seccomp.c virtiofsd: Used glib "shared" thread pool 2020-09-25 12:45:58 +01:00
passthrough_seccomp.h tools/virtiofsd: convert to Meson 2020-08-21 06:30:09 -04:00