memory: Have memory_region_init_ram_flags_nomigrate() return a boolean
commitcbbc4340232107a85809a7abc37435bead937597
authorPhilippe Mathieu-Daudé <philmd@linaro.org>
Mon, 20 Nov 2023 10:24:45 +0000 (20 11:24 +0100)
committerPhilippe Mathieu-Daudé <philmd@linaro.org>
Fri, 5 Jan 2024 15:20:15 +0000 (5 16:20 +0100)
treed928180dd554791495d03d7a5b3edcb5bf3d0e13
parent1eb64c39d093a20f773e87fd4d0509a33476c707
memory: Have memory_region_init_ram_flags_nomigrate() return a boolean

Following the example documented since commit e3fe3988d7 ("error:
Document Error API usage rules"), have memory_region_init_ram_nomigrate
return a boolean indicating whether an error is set or not.

Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Manos Pitsidianakis <manos.pitsidianakis@linaro.org>
Reviewed-by: Peter Xu <peterx@redhat.com>
Reviewed-by: Gavin Shan <gshan@redhat.com>
Message-Id: <20231120213301.24349-2-philmd@linaro.org>
include/exec/memory.h
system/memory.c