diff options
author | David Hildenbrand <david@redhat.com> | 2023-06-23 14:45:52 +0200 |
---|---|---|
committer | David Hildenbrand <david@redhat.com> | 2023-07-12 09:25:37 +0200 |
commit | d7f4891c85886efde88e0893ec19f89a9d14138e (patch) | |
tree | 4721a4ca1a77aa46e8e33b0bbdf3f7b8fb666b28 /scripts/coverage | |
parent | a8e67ce35b74e8bec70d39f86886439208c7b645 (diff) | |
download | qemu-d7f4891c85886efde88e0893ec19f89a9d14138e.zip qemu-d7f4891c85886efde88e0893ec19f89a9d14138e.tar.gz qemu-d7f4891c85886efde88e0893ec19f89a9d14138e.tar.bz2 |
memory-device: Refactor memory_device_pre_plug()
Let's move memory_device_check_addable() and basic checks out of
memory_device_get_free_addr() directly into memory_device_pre_plug().
Separating basic checks from address assignment is cleaner and
prepares for further changes.
As all memory device users now use memory_devices_init(), and that
function enforces that the size is 0, we can drop the check for an empty
region.
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Signed-off-by: David Hildenbrand <david@redhat.com>
Message-Id: <20230623124553.400585-10-david@redhat.com>
Signed-off-by: David Hildenbrand <david@redhat.com>
Diffstat (limited to 'scripts/coverage')
0 files changed, 0 insertions, 0 deletions