qemu-e2k/include
Haozhong Zhang 9837684316 hostmem-file: add "align" option
When mmap(2) the backend files, QEMU uses the host page size
(getpagesize(2)) by default as the alignment of mapping address.
However, some backends may require alignments different than the page
size. For example, mmap a device DAX (e.g., /dev/dax0.0) on Linux
kernel 4.13 to an address, which is 4K-aligned but not 2M-aligned,
fails with a kernel message like

[617494.969768] dax dax0.0: qemu-system-x86: dax_mmap: fail, unaligned vma (0x7fa37c579000 - 0x7fa43c579000, 0x1fffff)

Because there is no common approach to get such alignment requirement,
we add the 'align' option to 'memory-backend-file', so that users or
management utils, which have enough knowledge about the backend, can
specify a proper alignment via this option.

Signed-off-by: Haozhong Zhang <haozhong.zhang@intel.com>
Message-Id: <20171211072806.2812-2-haozhong.zhang@intel.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
[ehabkost: fixed typo, fixed error_setg() format string]
Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
2018-01-19 11:18:51 -02:00
..
block nbd: rename nbd_option and nbd_opt_reply 2018-01-10 12:11:23 -06:00
chardev chardev: introduce qemu_chr_timeout_add_ms() 2018-01-12 13:22:02 +01:00
crypto
disas target/xtensa: implement disassembler 2018-01-09 09:55:39 -08:00
exec hostmem-file: add "align" option 2018-01-19 11:18:51 -02:00
fpu
hw qdev: Check for the availability of a hotplug controller before adding a device 2018-01-19 11:18:51 -02:00
io
libdecnumber
migration migration: finalize current_migration object 2018-01-15 12:48:05 +01:00
monitor
net net: Remove the legacy "-net channel" parameter 2017-12-22 10:05:26 +08:00
qapi
qemu memfd: split qemu_memfd_alloc() 2018-01-19 11:18:51 -02:00
qom i386: hvf: add code base from Google's QEMU repository 2017-12-22 15:01:20 +01:00
scsi scsi: provide general-purpose functions to manage sense data 2017-12-21 09:30:32 +01:00
standard-headers
sysemu i386: hvf: implement vga dirty page tracking 2017-12-22 15:01:48 +01:00
ui sdl2: Ignore UI hotkeys after a focus change when GUI modifier is held 2018-01-12 15:51:18 +01:00
elf.h
glib-compat.h
qemu-common.h
qemu-io.h
trace-tcg.h