fetch the alignment of device dax
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v3 Latest3 patches 0 repliesNew
- v23 patches 6 repliesSuperseded
- v11 patch 19 repliesSuperseded
Changes in v3 from the cover letter
- Per Joao's suggestion, require libdaxctl version 57 or up.
- Per Joao's suggestion, suggest to query the @align with daxctl tool in docs/nvdimm.txt.
Patches in v3 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/3 | exec: fetch the alignment of Linux devdax pmem character device nodesexec.c | +53 | 0 replies | |
| 2/3 | docs/nvdimm: add description of alignment requirement of device daxdocs/ | +10 | 0 replies | |
| 3/3 | configure: add libdaxctl supportconfigure | +29 | 0 replies |
Reviews trailers per patch
All 3 patches have a Reviewed-by or Acked-by.
| Patch | Joao Martins |
|---|---|
| 1/3 | R-b |
| 2/3 | R-b |
| 3/3 | R-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH v3 0/3] fetch the alignment of device dax
This series adds libdaxctl support and fetchs the alignment of device dax through libdaxctl [1] APIs.
QEMU uses mmap(2) to maps vNVDIMM backends and aligns the mapping address to the page size (getpagesize(2)) by default. However, some types of backends may require an alignment different than the page size. The 'align' option is provided to memory-backend-file to allow users to specify the proper alignment.
For device dax (e.g., /dev/dax0.0), the 'align' option needs to match the alignment requirement of the device dax, which can be fetched through the APIs of libdaxctl version 57 or up.
[1] Libdaxctl is a part of ndctl project.
The project's repository is: https://github.com/pmem/ndctl
Changelog:
v3:
- Per Joao's suggestion, require libdaxctl version 57 or up.
- Per Joao's suggestion, suggest to query the @align with daxctl tool in docs/nvdimm.txt.
v2:
- Per Paolo and Dan's suggestions, fetch the alignment of device dax through libdaxctl APIs.
v1:
- The initial version.
Fetch the alignment through "/sys/dev/char/%d:%d/device/align".
Jingqi Liu (3):
exec: fetch the alignment of Linux devdax pmem character device nodes docs/nvdimm: add description of alignment requirement of device dax
configure: add libdaxctl support
configure | 29 ++++++++++++++++++++++++++ docs/nvdimm.txt | 10 +++++++++ exec.c | 54 ++++++++++++++++++++++++++++++++++++++++++++++++- 3 files changed, 92 insertions(+), 1 deletion(-)
Signature · 1 line
2.17.1