virtiofsd: support per inode DAX
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v8 Latest3 patches 0 repliesNew
- v7 posting 2/26 patches 21 repliesApplied
- v7 posting 1/21 of 6 patches 0 repliesSuperseded
Earlier versions · 6
| Version | Posted | Patches | Replies | Status |
|---|---|---|---|---|
| v6 | 6 patches | 6 replies | Superseded | |
| v5 | 2 patches | 0 replies | Superseded | |
| v4 | 4 patches | 11 replies | Superseded | |
| v3 | 1 of 4 patches | 0 replies | Superseded | |
| v2 | 4 patches | 0 replies | Superseded | |
| v1 | 3 patches | 0 replies | Superseded |
Changes in v8 from the cover letter
- merge patches implementing various DAX policies into one patch (patch 2); merge patches introducing "dax=" option and negotiation among FUSE_INIT phase into one patch (patch 3)
- patch 1: restrict the newly introduced .ioctl() to only querying and setting FS_DAX_FL/FS_XFLAG_DAX flag (Vivek Goyal [1])
- patch 2: besides "inode" and "filesize" DAX policy, also add "none" and "always" policy (Vivek Goyal [2])
- patch3: return error if any operation fails when handling the fuse request, rather than fallback to "dax=none" behavior (Vivek Goyal [3])
- As disccussed in [2], a default threshold of 32KB in "filesize" policy is fine for now. We can add new option "--dax-filesize-threshold" if it's needed later.
[1] https://www.mail-archive.com/[email protected]/msg04460.html
[2] https://www.mail-archive.com/[email protected]/msg04461.html
[3] https://www.mail-archive.com/[email protected]/msg04462.html
Patches in v8 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/3 | virtiofsd: add .ioctl() supporttools/ tools/ | +122 | 0 replies | |
| 2/3 | virtiofsd: implement DAX policies for per inodex DAX modetools/ | +67 | 0 replies | |
| 3/3 | virtiofsd: add 'dax=' optiontools/ tools/ tools/ +1 more | +37 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v8 yet.
Cover letter [Virtio-fs] [PATCH v8 0/3] virtiofsd: support per inode DAX
This patchset aims for adding support for per-inode DAX for (C version) virtiofsd. Sorry it is has been a long time since the last version, and several developers have asked me how to test this feature. :( Sorry for the inconvenience.
Besids I know the C version virtiofsd has been marked as deprecated, while the mainline branch in qemu also has minimal support for DAX. Thus I'm not sure what the community thinks of this patchset.
It is worth mentioning that, this patchset is developed based on gitlab.com/virtio-fs/qemu.git virtio-fs-dev, whilst the following commits also need to be cherry-picked.
939513863f virtiofsd: Extend size of fuse_conn_info->capable and ->want fields 99401173dd virtiofsd: Parse extended "struct fuse_init_in" f1af2502ab virtiofsd: Fix breakage due to fuse_init_in size change 214617239b linux-headers: Update headers to v5.17-rc10f9c46c89b linux-headers: update to 5.16-rc1
It can ben tested on
https://github.com/lostjeffle/virtiofsd/commits/jingbo/dev-perfile-dax-v8
changes since v7:
- merge patches implementing various DAX policies into one patch (patch 2); merge patches introducing "dax=" option and negotiation among FUSE_INIT phase into one patch (patch 3)
- patch 1: restrict the newly introduced .ioctl() to only querying and setting FS_DAX_FL/FS_XFLAG_DAX flag (Vivek Goyal [1])
- patch 2: besides "inode" and "filesize" DAX policy, also add "none" and "always" policy (Vivek Goyal [2])
- patch3: return error if any operation fails when handling the fuse request, rather than fallback to "dax=none" behavior (Vivek Goyal [3])
- As disccussed in [2], a default threshold of 32KB in "filesize" policy is fine for now. We can add new option "--dax-filesize-threshold" if it's needed later.
[1] https://www.mail-archive.com/[email protected]/msg04460.html
[2] https://www.mail-archive.com/[email protected]/msg04461.html
[3] https://www.mail-archive.com/[email protected]/msg04462.html
Corresponding kernel patchset v8 (merged)
https://lore.kernel.org/all/[email protected]/T/
virtiofsd patchset v7
https://www.mail-archive.com/[email protected]/msg04349.html
Jeffle Xu (3):
virtiofsd: add .ioctl() support
virtiofsd: implement DAX policies for per inodex DAX mode
virtiofsd: add 'dax=' option
tools/virtiofsd/fuse_common.h | 5 + tools/virtiofsd/fuse_lowlevel.c | 6 + tools/virtiofsd/helper.c | 6 + tools/virtiofsd/passthrough_ll.c | 211 +++++++++++++++++++++++++- tools/virtiofsd/passthrough_seccomp.c | 1 + 5 files changed, 226 insertions(+), 3 deletions(-)
Signature · 1 line
2.27.0