All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2 0/3] fetch the alignment of device dax
@ 2020-04-15  3:35 Jingqi Liu
  2020-04-15  3:35 ` [PATCH v2 1/3] exec: fetch the alignment of Linux devdax pmem character device nodes Jingqi Liu
                   ` (3 more replies)
  0 siblings, 4 replies; 10+ messages in thread
From: Jingqi Liu @ 2020-04-15  3:35 UTC (permalink / raw)
  To: Paolo Bonzini, Richard Henderson, Xiao Guangrong, Dan Williams
  Cc: Jingqi Liu, qemu-devel

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 libdaxctl APIs.

[1] Libdaxctl is a part of ndctl project.
The project's repository is: https://github.com/pmem/ndctl

Changelog:
  v2: Per Paolo and Dan 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       | 30 +++++++++++++++++++++++++++
 docs/nvdimm.txt |  9 +++++++++
 exec.c          | 54 ++++++++++++++++++++++++++++++++++++++++++++++++-
 3 files changed, 92 insertions(+), 1 deletion(-)

-- 
2.17.1



^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2020-04-29  7:06 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-04-15  3:35 [PATCH v2 0/3] fetch the alignment of device dax Jingqi Liu
2020-04-15  3:35 ` [PATCH v2 1/3] exec: fetch the alignment of Linux devdax pmem character device nodes Jingqi Liu
2020-04-28 16:22   ` Joao Martins
2020-04-15  3:35 ` [PATCH v2 2/3] docs/nvdimm: add description of alignment requirement of device dax Jingqi Liu
2020-04-28 16:22   ` Joao Martins
2020-04-29  6:11     ` Liu, Jingqi
2020-04-15  3:35 ` [PATCH v2 3/3] configure: add libdaxctl support Jingqi Liu
2020-04-28 16:23   ` Joao Martins
2020-04-29  7:03     ` Liu, Jingqi
2020-04-19 13:48 ` [PATCH v2 0/3] fetch the alignment of device dax Liu, Jingqi

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.