diff options
author | Eric Auger <eric.auger@redhat.com> | 2023-10-19 15:45:07 +0200 |
---|---|---|
committer | Cédric Le Goater <clg@redhat.com> | 2023-11-03 09:20:31 +0100 |
commit | e8f433f80e831ecd81989ae0246f3f1e2d3ac480 (patch) | |
tree | 3d25679190dc2c1f7bcdcedfa82a1b873e7c496e /include | |
parent | d762bf97931b58839316b68a570eecc6143c9e3e (diff) | |
download | qemu-e8f433f80e831ecd81989ae0246f3f1e2d3ac480.zip qemu-e8f433f80e831ecd81989ae0246f3f1e2d3ac480.tar.gz qemu-e8f433f80e831ecd81989ae0246f3f1e2d3ac480.tar.bz2 |
memory: Let ReservedRegion use Range
A reserved region is a range tagged with a type. Let's directly use
the Range type in the prospect to reuse some of the library helpers
shipped with the Range type.
Signed-off-by: Eric Auger <eric.auger@redhat.com>
Reviewed-by: David Hildenbrand <david@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Cédric Le Goater <clg@redhat.com>
Reviewed-by: "Michael S. Tsirkin" <mst@redhat.com>
Signed-off-by: Cédric Le Goater <clg@redhat.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/exec/memory.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/exec/memory.h b/include/exec/memory.h index 9087d02..d94314d 100644 --- a/include/exec/memory.h +++ b/include/exec/memory.h @@ -24,6 +24,7 @@ #include "qemu/bswap.h" #include "qemu/queue.h" #include "qemu/int128.h" +#include "qemu/range.h" #include "qemu/notify.h" #include "qom/object.h" #include "qemu/rcu.h" @@ -79,8 +80,7 @@ extern unsigned int global_dirty_tracking; typedef struct MemoryRegionOps MemoryRegionOps; struct ReservedRegion { - hwaddr low; - hwaddr high; + Range range; unsigned type; }; |