]> git.proxmox.com Git - mirror_qemu.git/commit - memory.c
memory, exec: switch file ram allocation functions to 'flags' parameters
authorJunyan He <junyan.he@intel.com>
Wed, 18 Jul 2018 07:47:58 +0000 (15:47 +0800)
committerMichael S. Tsirkin <mst@redhat.com>
Fri, 10 Aug 2018 10:29:39 +0000 (13:29 +0300)
commitcbfc01710362f3de6fca3010a17b0e1c866fc181
treefc4e502451bbfebfc9439f9924f59e6cdb623255
parentb0e5de93811077254a536c23b713b49e12efb742
memory, exec: switch file ram allocation functions to 'flags' parameters

As more flag parameters besides the existing 'share' are going to be
added to following functions
memory_region_init_ram_from_file
qemu_ram_alloc_from_fd
qemu_ram_alloc_from_file
let's switch them to use the 'flags' parameters so as to ease future
flag additions.

The existing 'share' flag is converted to the RAM_SHARED bit in ram_flags,
and other flag bits are ignored by above functions right now.

Signed-off-by: Junyan He <junyan.he@intel.com>
Signed-off-by: Haozhong Zhang <haozhong.zhang@intel.com>
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
Reviewed-by: Igor Mammedov <imammedo@redhat.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
backends/hostmem-file.c
exec.c
include/exec/memory.h
include/exec/ram_addr.h
memory.c
numa.c