]> git.proxmox.com Git - mirror_qemu.git/commit
memory-device: Introduce machine_memory_devices_init()
authorDavid Hildenbrand <david@redhat.com>
Fri, 23 Jun 2023 12:45:45 +0000 (14:45 +0200)
committerDavid Hildenbrand <david@redhat.com>
Wed, 12 Jul 2023 07:25:35 +0000 (09:25 +0200)
commitcc0afd8a72996352e9f3f11b1cdde49b08aa11b6
treee20f32bdda208ee2862f760ec094188925c2dfb4
parent99d88de6eb577ff70cc1b1ed59f1a50f16038c2e
memory-device: Introduce machine_memory_devices_init()

Let's intrduce a new helper that we will use to replace existing memory
device setup code during machine initialization. We'll enforce that the
size has to be > 0.

Once all machines were converted, we'll only allocate ms->device_memory
if the size > 0.

Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Signed-off-by: David Hildenbrand <david@redhat.com>
Message-Id: <20230623124553.400585-3-david@redhat.com>
Signed-off-by: David Hildenbrand <david@redhat.com>
hw/mem/memory-device.c
include/hw/boards.h