On 07/18/2018 12:47 AM, junyan...@gmx.com wrote: > From: Junyan He <junyan...@intel.com> > > 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...@intel.com> > Signed-off-by: Haozhong Zhang <haozhong.zh...@intel.com> > Reviewed-by: Stefan Hajnoczi <stefa...@redhat.com> > Reviewed-by: Igor Mammedov <imamm...@redhat.com> > --- > backends/hostmem-file.c | 3 ++- > exec.c | 10 +++++----- > include/exec/memory.h | 7 +++++-- > include/exec/ram_addr.h | 25 +++++++++++++++++++++++-- > memory.c | 8 +++++--- > numa.c | 2 +- > 6 files changed, 41 insertions(+), 14 deletions(-)
Reviewed-by: Richard Henderson <richard.hender...@linaro.org> r~