diff options
author | David Hildenbrand <david@redhat.com> | 2023-06-23 14:45:47 +0200 |
---|---|---|
committer | David Hildenbrand <david@redhat.com> | 2023-07-12 09:25:37 +0200 |
commit | c0ce7b4acb61c6a8376ff9e0d5cae2d58ac3bf1b (patch) | |
tree | 3d0f753744f5645b1f477e8caaf6ae2f08dfea97 /hw/loongarch/virt.c | |
parent | 176d073029083dd52e28e92c5712d0535a83c34d (diff) | |
download | qemu-c0ce7b4acb61c6a8376ff9e0d5cae2d58ac3bf1b.zip qemu-c0ce7b4acb61c6a8376ff9e0d5cae2d58ac3bf1b.tar.gz qemu-c0ce7b4acb61c6a8376ff9e0d5cae2d58ac3bf1b.tar.bz2 |
hw/ppc/spapr: Use machine_memory_devices_init()
Let's use our new helper and stop always allocating ms->device_memory.
There is no difference in common memory-device code anymore between
ms->device_memory being NULL or the size being 0. So we only have to
teach spapr code that ms->device_memory isn't always around.
We can now modify two maxram_size checks to rely on ms->device_memory
for detecting whether we have memory devices.
Cc: Daniel Henrique Barboza <danielhb413@gmail.com>
Cc: "Cédric Le Goater" <clg@kaod.org>
Cc: David Gibson <david@gibson.dropbear.id.au>
Cc: Greg Kurz <groug@kaod.org>
Cc: Harsh Prateek Bora <harshpb@linux.ibm.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Cédric Le Goater <clg@kaod.org>
Signed-off-by: David Hildenbrand <david@redhat.com>
Message-Id: <20230623124553.400585-5-david@redhat.com>
Signed-off-by: David Hildenbrand <david@redhat.com>
Diffstat (limited to 'hw/loongarch/virt.c')
0 files changed, 0 insertions, 0 deletions