]> git.proxmox.com Git - mirror_qemu.git/commit - include/hw/boards.h
memory-device: Track used region size in DeviceMemoryState
authorDavid Hildenbrand <david@redhat.com>
Fri, 23 Jun 2023 12:45:53 +0000 (14:45 +0200)
committerDavid Hildenbrand <david@redhat.com>
Wed, 12 Jul 2023 07:25:37 +0000 (09:25 +0200)
commitac23dd2f293c59a5cd2fb385162277b4a6aef769
tree170db45df4ef0797e91a4dbbec9522774d0f60e0
parentd7f4891c85886efde88e0893ec19f89a9d14138e
memory-device: Track used region size in DeviceMemoryState

Let's avoid iterating over all devices and simply track it in the
DeviceMemoryState.

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