diff options
| author | David Hildenbrand <david@redhat.com> | 2023-06-23 14:45:49 +0200 |
|---|---|---|
| committer | David Hildenbrand <david@redhat.com> | 2023-07-12 09:25:37 +0200 |
| commit | 78732a765986d5270d6b3d88afeb9e4d33092360 (patch) | |
| tree | 03dc4d76c9bfb11f074edfa82a20982edfdc34b4 /include/hw/boards.h | |
| parent | b13e115ff497581c60c94d4afca33225b1f69faf (diff) | |
| download | focaccia-qemu-78732a765986d5270d6b3d88afeb9e4d33092360.tar.gz focaccia-qemu-78732a765986d5270d6b3d88afeb9e4d33092360.zip | |
hw/i386/pc: Use machine_memory_devices_init()
Let's use our new helper and stop always allocating ms->device_memory. Once allcoated, we're sure that the size > 0 and that the base was initialized. Adjust the code in pc_memory_init() to check for machine->device_memory instead of pcmc->has_reserved_memory and machine->device_memory->base. Cc: Paolo Bonzini <pbonzini@redhat.com> Cc: Richard Henderson <richard.henderson@linaro.org> Cc: Eduardo Habkost <eduardo@habkost.net> Cc: "Michael S. Tsirkin" <mst@redhat.com> Cc: Marcel Apfelbaum <marcel.apfelbaum@gmail.com> Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org> Acked-by: Michael S. Tsirkin <mst@redhat.com> Signed-off-by: David Hildenbrand <david@redhat.com> Message-Id: <20230623124553.400585-7-david@redhat.com> Signed-off-by: David Hildenbrand <david@redhat.com>
Diffstat (limited to 'include/hw/boards.h')
0 files changed, 0 insertions, 0 deletions