Commit 98ce1fe5c0 for qemu.org
commit 98ce1fe5c030acdf0072d00958a7327b61f94517
Author: Marc-André Lureau <marcandre.lureau@redhat.com>
Date: Sun May 10 17:24:32 2026 +0400
system/memory: fix "priority" property typename
The value and the getter are int32.
Fixes: d33382da9ab ("memory: MemoryRegion: Add may-overlap and priority props")
Reviewed-by: Mark Cave-Ayland <mark.caveayland@nutanix.com>
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
diff --git a/system/memory.c b/system/memory.c
index 9760721e45..d4a0a5b818 100644
--- a/system/memory.c
+++ b/system/memory.c
@@ -1318,7 +1318,7 @@ static void memory_region_initfn(Object *obj)
object_property_add_uint64_ptr(OBJECT(mr), "addr",
&mr->addr, OBJ_PROP_FLAG_READ);
- object_property_add(OBJECT(mr), "priority", "uint32",
+ object_property_add(OBJECT(mr), "priority", "int32",
memory_region_get_priority,
NULL, /* memory_region_set_priority */
NULL, NULL);