diff options
author | Junyan He <junyan.he@intel.com> | 2018-07-18 15:47:58 +0800 |
---|---|---|
committer | Michael S. Tsirkin <mst@redhat.com> | 2018-08-10 13:29:39 +0300 |
commit | cbfc01710362f3de6fca3010a17b0e1c866fc181 (patch) | |
tree | fc4e502451bbfebfc9439f9924f59e6cdb623255 /numa.c | |
parent | b0e5de93811077254a536c23b713b49e12efb742 (diff) | |
download | qemu-cbfc01710362f3de6fca3010a17b0e1c866fc181.zip qemu-cbfc01710362f3de6fca3010a17b0e1c866fc181.tar.gz qemu-cbfc01710362f3de6fca3010a17b0e1c866fc181.tar.bz2 |
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>
Diffstat (limited to 'numa.c')
-rw-r--r-- | numa.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -479,7 +479,7 @@ static void allocate_system_memory_nonnuma(MemoryRegion *mr, Object *owner, if (mem_path) { #ifdef __linux__ Error *err = NULL; - memory_region_init_ram_from_file(mr, owner, name, ram_size, 0, false, + memory_region_init_ram_from_file(mr, owner, name, ram_size, 0, 0, mem_path, &err); if (err) { error_report_err(err); |