aboutsummaryrefslogtreecommitdiff
path: root/scripts/coverage
diff options
context:
space:
mode:
authorDavid Hildenbrand <david@redhat.com>2023-06-23 14:45:49 +0200
committerDavid Hildenbrand <david@redhat.com>2023-07-12 09:25:37 +0200
commit78732a765986d5270d6b3d88afeb9e4d33092360 (patch)
tree03dc4d76c9bfb11f074edfa82a20982edfdc34b4 /scripts/coverage
parentb13e115ff497581c60c94d4afca33225b1f69faf (diff)
downloadqemu-78732a765986d5270d6b3d88afeb9e4d33092360.zip
qemu-78732a765986d5270d6b3d88afeb9e4d33092360.tar.gz
qemu-78732a765986d5270d6b3d88afeb9e4d33092360.tar.bz2
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 'scripts/coverage')
0 files changed, 0 insertions, 0 deletions