Commit b1df6b0458 for qemu.org
commit b1df6b04586198294d201cad14a63c4ac212da82
Author: Pierrick Bouvier <pierrick.bouvier@oss.qualcomm.com>
Date: Wed Oct 21 11:12:27 2026 -0700
include/qemu/typedefs: add GuestPhysBlockList
This allows to use a forward declaration instead of including
system/memory_mapping.h.
Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@oss.qualcomm.com>
Link: https://lore.kernel.org/qemu-devel/20261021181244.867840-5-pierrick.bouvier@oss.qualcomm.com
Signed-off-by: Pierrick Bouvier <pierrick.bouvier@oss.qualcomm.com>
diff --git a/include/qemu/typedefs.h b/include/qemu/typedefs.h
index 8fa7f752da..488d255667 100644
--- a/include/qemu/typedefs.h
+++ b/include/qemu/typedefs.h
@@ -53,6 +53,7 @@ typedef struct Error Error;
typedef struct EventNotifier EventNotifier;
typedef struct FlatView FlatView;
typedef struct FWCfgState FWCfgState;
+typedef struct GuestPhysBlockList GuestPhysBlockList;
typedef struct HostMemoryBackend HostMemoryBackend;
typedef struct I2CBus I2CBus;
typedef struct I2SCodec I2SCodec;
diff --git a/include/system/memory_mapping.h b/include/system/memory_mapping.h
index 4c770bf0b8..3bdf9badb5 100644
--- a/include/system/memory_mapping.h
+++ b/include/system/memory_mapping.h
@@ -36,10 +36,10 @@ typedef struct GuestPhysBlock {
} GuestPhysBlock;
/* point-in-time snapshot of guest-visible physical mappings */
-typedef struct GuestPhysBlockList {
+struct GuestPhysBlockList {
unsigned num;
QTAILQ_HEAD(, GuestPhysBlock) head;
-} GuestPhysBlockList;
+};
/* The physical and virtual address in the memory mapping are contiguous. */
typedef struct MemoryMapping {