]> git.ipfire.org Git - thirdparty/qemu.git/commit
memory: Factor out common ram region initialization
authorBALATON Zoltan <balaton@eik.bme.hu>
Sat, 7 Mar 2026 23:06:06 +0000 (00:06 +0100)
committerPeter Xu <peterx@redhat.com>
Mon, 9 Mar 2026 18:05:55 +0000 (14:05 -0400)
commit2fb627ef2f486bce4d9f87da573948a33e1ffbd8
treea0f581ac8305541b3552db58c945822ca8ddbc21
parentf0eca07fbd2560397ac52dcc2ee65b22741dc2e7
memory: Factor out common ram region initialization

Introduce internal helper function to remove duplicated code from
different memory_region_init_*ram functions. Remove local err and
error_propagate and pass errp and check return value instead.
Also shorten some function prototypes while at it.

Signed-off-by: BALATON Zoltan <balaton@eik.bme.hu>
Reviewed-by: Akihiko Odaki <odaki@rsg.ci.i.u-tokyo.ac.jp>
Link: https://lore.kernel.org/r/d6db01c283149b46023ffeb9c5b368c67f6acc8d.1772924151.git.balaton@eik.bme.hu
Signed-off-by: Peter Xu <peterx@redhat.com>
system/memory.c